{"library":{"annotation":[{"translatorVersion":"3.10.0","translatorOptions":"DisableListDemotion,DisableListPromotion","signatureLevel":"Overloads","type":"CqlToElmInfo"}],"identifier":{"id":"RiskFactors","version":"0.0.1"},"schemaIdentifier":{"id":"urn:hl7-org:elm","version":"r1"},"usings":{"def":[{"localIdentifier":"System","uri":"urn:hl7-org:elm-types:r1","annotation":[]},{"localIdentifier":"FHIR","uri":"http://hl7.org/fhir","version":"4.0.1","annotation":[]}]},"includes":{"def":[{"localIdentifier":"FHIRHelpers","path":"FHIRHelpers","version":"4.0.1","annotation":[]},{"localIdentifier":"C3F","path":"CDSConnectCommonsForFHIRv401","version":"2.1.0","annotation":[]}]},"codeSystems":{"def":[{"name":"ICD-10-CM","id":"http://hl7.org/fhir/sid/icd-10-cm","accessLevel":"Public","annotation":[]},{"name":"AdministrativeGender","id":"http://hl7.org/fhir/administrative-gender","accessLevel":"Public","annotation":[]},{"name":"LOINC","id":"http://loinc.org","accessLevel":"Public","annotation":[]}]},"valueSets":{"def":[{"name":"Coronary Heart Disease","id":"https://snowstorm.ddns.net/fhir/ValueSet/f77b8e44-8db0-46dc-b84f-9e2d45ec2711","accessLevel":"Public","annotation":[],"codeSystem":[]},{"name":"Smoking Status","id":"https://snowstorm.ddns.net/fhir/ValueSet/b74c015c-7241-4cf5-949a-89d5c7d84579","accessLevel":"Public","annotation":[],"codeSystem":[]}]},"codes":{"def":[{"name":"Hypertension code","id":"I10","display":"Essential (primary) hypertension","accessLevel":"Public","annotation":[],"codeSystem":{"name":"ICD-10-CM","annotation":[]}},{"name":"Menopause code","id":"N95.1","display":"Menopausal and female climacteric states","accessLevel":"Public","annotation":[],"codeSystem":{"name":"ICD-10-CM","annotation":[]}},{"name":"HDL Cholesterol code","id":"2085-9","display":"Cholesterol in HDL [Mass/volume] in Serum or Plasma","accessLevel":"Public","annotation":[],"codeSystem":{"name":"LOINC","annotation":[]}},{"name":"Smoking status code","id":"72166-2","display":"Tobacco smoking status","accessLevel":"Public","annotation":[],"codeSystem":{"name":"LOINC","annotation":[]}},{"name":"Male","id":"male","display":"Male","accessLevel":"Public","annotation":[],"codeSystem":{"name":"AdministrativeGender","annotation":[]}},{"name":"Female","id":"female","display":"Female","accessLevel":"Public","annotation":[],"codeSystem":{"name":"AdministrativeGender","annotation":[]}}]},"contexts":{"def":[{"name":"Patient","annotation":[]}]},"statements":{"def":[{"name":"Patient","context":"Patient","annotation":[],"expression":{"type":"SingletonFrom","annotation":[],"signature":[],"operand":{"dataType":"{http://hl7.org/fhir}Patient","templateId":"http://hl7.org/fhir/StructureDefinition/Patient","type":"Retrieve","annotation":[],"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}},{"name":"Hypertension","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Exists","annotation":[],"signature":[],"operand":{"name":"Confirmed","libraryName":"C3F","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","annotation":[],"codes":{"type":"ToList","annotation":[],"signature":[],"operand":{"name":"Hypertension code","type":"CodeRef","annotation":[]}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}}},{"name":"Is Male 45 or Older","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Equal","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[{"name":"{http://hl7.org/fhir}AdministrativeGender","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"path":"gender","type":"Property","annotation":[],"source":{"name":"Patient","type":"ExpressionRef","annotation":[]}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"male","type":"Literal","annotation":[]}]},{"type":"GreaterOrEqual","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"precision":"Year","type":"CalculateAge","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Date","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"path":"birthDate.value","type":"Property","annotation":[],"source":{"name":"Patient","type":"ExpressionRef","annotation":[]}}},{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"45","type":"Literal","annotation":[]}]}]}},{"name":"Has Menopause History","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Exists","annotation":[],"signature":[],"operand":{"name":"Confirmed","libraryName":"C3F","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","annotation":[],"codes":{"type":"ToList","annotation":[],"signature":[],"operand":{"name":"Menopause code","type":"CodeRef","annotation":[]}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}}},{"name":"Is Female 55 or Older or Menopausal","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Equal","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[{"name":"{http://hl7.org/fhir}AdministrativeGender","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"path":"gender","type":"Property","annotation":[],"source":{"name":"Patient","type":"ExpressionRef","annotation":[]}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"female","type":"Literal","annotation":[]}]},{"type":"Or","annotation":[],"signature":[],"operand":[{"type":"GreaterOrEqual","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"precision":"Year","type":"CalculateAge","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Date","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"path":"birthDate.value","type":"Property","annotation":[],"source":{"name":"Patient","type":"ExpressionRef","annotation":[]}}},{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"55","type":"Literal","annotation":[]}]},{"name":"Has Menopause History","type":"ExpressionRef","annotation":[]}]}]}},{"name":"RiskFactor2","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Or","annotation":[],"signature":[],"operand":[{"name":"Is Male 45 or Older","type":"ExpressionRef","annotation":[]},{"name":"Is Female 55 or Older or Menopausal","type":"ExpressionRef","annotation":[]}]}},{"name":"Family History of Early Onset CHD in Males","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Exists","annotation":[],"signature":[{"type":"ListTypeSpecifier","annotation":[],"elementType":{"name":"{http://hl7.org/fhir}FamilyMemberHistory","type":"NamedTypeSpecifier","annotation":[]}}],"operand":{"type":"Query","annotation":[],"source":[{"alias":"F","annotation":[],"expression":{"dataType":"{http://hl7.org/fhir}FamilyMemberHistory","templateId":"http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory","type":"Retrieve","annotation":[],"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}],"let":[],"relationship":[],"where":{"type":"And","annotation":[],"signature":[],"operand":[{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Exists","annotation":[],"signature":[{"type":"ListTypeSpecifier","annotation":[],"elementType":{"name":"{http://hl7.org/fhir}FamilyMemberHistory.Condition","type":"NamedTypeSpecifier","annotation":[]}}],"operand":{"type":"Query","annotation":[],"source":[{"alias":"C","annotation":[],"expression":{"path":"condition","scope":"F","type":"Property","annotation":[]}}],"let":[],"relationship":[],"where":{"type":"InValueSet","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier","annotation":[]}],"code":{"name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"path":"code","scope":"C","type":"Property","annotation":[]}]},"valueset":{"name":"Coronary Heart Disease","preserve":true,"annotation":[]}}}},{"type":"Equivalent","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"path":"sex","scope":"F","type":"Property","annotation":[]}]},{"type":"ToConcept","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"name":"Male","type":"CodeRef","annotation":[]}}]}]},{"type":"Or","annotation":[],"signature":[],"operand":[{"type":"And","annotation":[],"signature":[],"operand":[{"type":"LessOrEqual","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Decimal","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Decimal","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToDecimal","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"asType":"{http://hl7.org/fhir}decimal","type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"path":"age","scope":"F","type":"Property","annotation":[]}}}]},{"type":"ToDecimal","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"55","type":"Literal","annotation":[]}}]},{"type":"Equal","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[{"name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"path":"unit","type":"Property","annotation":[],"source":{"path":"age","scope":"F","type":"Property","annotation":[]}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"a","type":"Literal","annotation":[]}]}]},{"type":"And","annotation":[],"signature":[],"operand":[{"type":"LessOrEqual","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Decimal","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Decimal","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToDecimal","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"asType":"{http://hl7.org/fhir}decimal","type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"path":"deceased","scope":"F","type":"Property","annotation":[]}}}]},{"type":"ToDecimal","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"55","type":"Literal","annotation":[]}}]},{"type":"Equal","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[{"name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"path":"unit","type":"Property","annotation":[],"source":{"path":"deceased","scope":"F","type":"Property","annotation":[]}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"a","type":"Literal","annotation":[]}]}]}]}]}}}},{"name":"Family History of Early Onset CHD in Females","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Exists","annotation":[],"signature":[{"type":"ListTypeSpecifier","annotation":[],"elementType":{"name":"{http://hl7.org/fhir}FamilyMemberHistory","type":"NamedTypeSpecifier","annotation":[]}}],"operand":{"type":"Query","annotation":[],"source":[{"alias":"F","annotation":[],"expression":{"dataType":"{http://hl7.org/fhir}FamilyMemberHistory","templateId":"http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory","type":"Retrieve","annotation":[],"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}],"let":[],"relationship":[],"where":{"type":"And","annotation":[],"signature":[],"operand":[{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Exists","annotation":[],"signature":[{"type":"ListTypeSpecifier","annotation":[],"elementType":{"name":"{http://hl7.org/fhir}FamilyMemberHistory.Condition","type":"NamedTypeSpecifier","annotation":[]}}],"operand":{"type":"Query","annotation":[],"source":[{"alias":"C","annotation":[],"expression":{"path":"condition","scope":"F","type":"Property","annotation":[]}}],"let":[],"relationship":[],"where":{"type":"InValueSet","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier","annotation":[]}],"code":{"name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"path":"code","scope":"C","type":"Property","annotation":[]}]},"valueset":{"name":"Coronary Heart Disease","preserve":true,"annotation":[]}}}},{"type":"Equivalent","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"path":"sex","scope":"F","type":"Property","annotation":[]}]},{"type":"ToConcept","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"name":"Female","type":"CodeRef","annotation":[]}}]}]},{"type":"Or","annotation":[],"signature":[],"operand":[{"type":"And","annotation":[],"signature":[],"operand":[{"type":"LessOrEqual","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Decimal","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Decimal","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToDecimal","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"asType":"{http://hl7.org/fhir}decimal","type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"path":"age","scope":"F","type":"Property","annotation":[]}}}]},{"type":"ToDecimal","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"65","type":"Literal","annotation":[]}}]},{"type":"Equal","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[{"name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"path":"unit","type":"Property","annotation":[],"source":{"path":"age","scope":"F","type":"Property","annotation":[]}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"a","type":"Literal","annotation":[]}]}]},{"type":"And","annotation":[],"signature":[],"operand":[{"type":"LessOrEqual","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Decimal","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Decimal","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToDecimal","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"asType":"{http://hl7.org/fhir}decimal","type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"path":"deceased","scope":"F","type":"Property","annotation":[]}}}]},{"type":"ToDecimal","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"65","type":"Literal","annotation":[]}}]},{"type":"Equal","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[{"name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"path":"unit","type":"Property","annotation":[],"source":{"path":"deceased","scope":"F","type":"Property","annotation":[]}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"a","type":"Literal","annotation":[]}]}]}]}]}}}},{"name":"RiskFactor3","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Or","annotation":[],"signature":[],"operand":[{"name":"Family History of Early Onset CHD in Males","type":"ExpressionRef","annotation":[]},{"name":"Family History of Early Onset CHD in Females","type":"ExpressionRef","annotation":[]}]}},{"name":"Latest HDL Cholesterol","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"MostRecent","libraryName":"C3F","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"dataType":"{http://hl7.org/fhir}Observation","templateId":"http://hl7.org/fhir/StructureDefinition/Observation","codeProperty":"code","codeComparator":"~","type":"Retrieve","annotation":[],"codes":{"type":"ToList","annotation":[],"signature":[],"operand":{"name":"HDL Cholesterol code","type":"CodeRef","annotation":[]}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}},{"name":"HDL-C","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"And","annotation":[],"signature":[],"operand":[{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest HDL Cholesterol","type":"ExpressionRef","annotation":[]}}},{"type":"Less","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"asType":"{urn:hl7-org:elm-types:r1}Integer","type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest HDL Cholesterol","type":"ExpressionRef","annotation":[]}}}},{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"40","type":"Literal","annotation":[]}]}]},{"type":"Equal","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[{"name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"path":"unit","type":"Property","annotation":[],"source":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest HDL Cholesterol","type":"ExpressionRef","annotation":[]}}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"mg/dL","type":"Literal","annotation":[]}]}]}},{"name":"Latest Smoking Status","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"MostRecent","libraryName":"C3F","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"dataType":"{http://hl7.org/fhir}Observation","templateId":"http://hl7.org/fhir/StructureDefinition/Observation","codeProperty":"code","codeComparator":"~","type":"Retrieve","annotation":[],"codes":{"type":"ToList","annotation":[],"signature":[],"operand":{"name":"Smoking status code","type":"CodeRef","annotation":[]}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}},{"name":"Smoked","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest Smoking Status","type":"ExpressionRef","annotation":[]}}},{"type":"InValueSet","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]}],"code":{"name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[{"name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"asType":"{http://hl7.org/fhir}string","type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest Smoking Status","type":"ExpressionRef","annotation":[]}}}]},"valueset":{"name":"Smoking Status","preserve":true,"annotation":[]}}]}},{"name":"RiskFactorsMetCount","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Add","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"type":"Add","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"type":"Add","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"type":"Add","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"type":"If","annotation":[],"condition":{"name":"Hypertension","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"1","type":"Literal","annotation":[]},"else":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"0","type":"Literal","annotation":[]}},{"type":"If","annotation":[],"condition":{"name":"RiskFactor2","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"1","type":"Literal","annotation":[]},"else":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"0","type":"Literal","annotation":[]}}]},{"type":"If","annotation":[],"condition":{"name":"RiskFactor3","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"1","type":"Literal","annotation":[]},"else":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"0","type":"Literal","annotation":[]}}]},{"type":"If","annotation":[],"condition":{"name":"HDL-C","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"1","type":"Literal","annotation":[]},"else":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"0","type":"Literal","annotation":[]}}]},{"type":"If","annotation":[],"condition":{"name":"Smoked","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"1","type":"Literal","annotation":[]},"else":{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"0","type":"Literal","annotation":[]}}]}}]}}}