{"library":{"annotation":[{"translatorVersion":"3.10.0","translatorOptions":"DisableListDemotion,DisableListPromotion","signatureLevel":"Overloads","type":"CqlToElmInfo"}],"identifier":{"id":"statin","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":[]},{"localIdentifier":"RF","path":"RiskFactors","version":"0.0.1","annotation":[]}]},"codeSystems":{"def":[{"name":"LOINC","id":"http://loinc.org","accessLevel":"Public","annotation":[]},{"name":"SNOMED-CT","id":"http://snomed.info/sct","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":"Cerebrovascular Disease","id":"https://snowstorm.ddns.net/fhir/ValueSet/369c8cde-49dd-4b37-b3b8-d8664424f630","accessLevel":"Public","annotation":[],"codeSystem":[]},{"name":"Diabetes Mellitus","id":"https://snowstorm.ddns.net/fhir/ValueSet/05102789-ac35-44f0-8bff-32a0b05a1b47","accessLevel":"Public","annotation":[],"codeSystem":[]}]},"codes":{"def":[{"name":"LDL Cholesterol code","id":"2089-1","display":"Cholesterol in LDL [Mass/volume] in Serum or Plasma","accessLevel":"Public","annotation":[],"codeSystem":{"name":"LOINC","annotation":[]}},{"name":"TC Cholesterol code","id":"2093-3","display":"Cholesterol [Mass/volume] in Serum or Plasma","accessLevel":"Public","annotation":[],"codeSystem":{"name":"LOINC","annotation":[]}},{"name":"Current every day smoker","id":"449868002","display":"Current every day smoker","accessLevel":"Public","annotation":[],"codeSystem":{"name":"SNOMED-CT","annotation":[]}},{"name":"Current some day smoker","id":"428041000124106","display":"Current some day smoker","accessLevel":"Public","annotation":[],"codeSystem":{"name":"SNOMED-CT","annotation":[]}},{"name":"Smoker","id":"77176002","display":"Smoker","accessLevel":"Public","annotation":[],"codeSystem":{"name":"SNOMED-CT","annotation":[]}},{"name":"Former smoker","id":"8517006","display":"Former smoker","accessLevel":"Public","annotation":[],"codeSystem":{"name":"SNOMED-CT","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":"Has Cardiovascular Disease","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Exists","annotation":[],"signature":[],"operand":{"name":"Confirmed","libraryName":"C3F","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"type":"Union","annotation":[],"signature":[],"operand":[{"dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"in","type":"Retrieve","annotation":[],"codes":{"name":"Coronary Heart Disease","preserve":true,"type":"ValueSetRef","annotation":[]},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},{"dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"in","type":"Retrieve","annotation":[],"codes":{"name":"Cerebrovascular Disease","preserve":true,"type":"ValueSetRef","annotation":[]},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}]}}},{"name":"Has Diabetes Mellitus","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":"in","type":"Retrieve","annotation":[],"codes":{"name":"Diabetes Mellitus","preserve":true,"type":"ValueSetRef","annotation":[]},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}}},{"name":"InclusionCriteria1","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Or","annotation":[],"signature":[],"operand":[{"name":"Has Cardiovascular Disease","type":"ExpressionRef","annotation":[]},{"name":"Has Diabetes Mellitus","type":"ExpressionRef","annotation":[]}]}},{"name":"Is High Risk","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"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":[{"name":"RiskFactorsMetCount","libraryName":"RF","type":"ExpressionRef","annotation":[]},{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"2","type":"Literal","annotation":[]}]}},{"name":"Is Moderate Risk","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Equal","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":[{"name":"RiskFactorsMetCount","libraryName":"RF","type":"ExpressionRef","annotation":[]},{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"1","type":"Literal","annotation":[]}]}},{"name":"Is Low Risk","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Equal","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":[{"name":"RiskFactorsMetCount","libraryName":"RF","type":"ExpressionRef","annotation":[]},{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"0","type":"Literal","annotation":[]}]}},{"name":"Latest LDL 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":"LDL Cholesterol code","type":"CodeRef","annotation":[]}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}},{"name":"Latest TC 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":"TC Cholesterol code","type":"CodeRef","annotation":[]}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}},{"name":"Cholesterol Info","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Case","annotation":[],"caseItem":[{"annotation":[],"when":{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}}},{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest TC Cholesterol","type":"ExpressionRef","annotation":[]}}}]},"then":{"type":"Concatenate","annotation":[],"signature":[],"operand":[{"type":"Concatenate","annotation":[],"signature":[],"operand":[{"type":"Concatenate","annotation":[],"signature":[],"operand":[{"type":"Concatenate","annotation":[],"signature":[],"operand":[{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"LDL: ","type":"Literal","annotation":[]},{"type":"ToString","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Decimal","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"name":"ToDecimal","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","annotation":[]}}}]}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"mg/dL, TC: ","type":"Literal","annotation":[]}]},{"type":"ToString","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Decimal","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"name":"ToDecimal","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest TC Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","annotation":[]}}}]}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"mg/dL","type":"Literal","annotation":[]}]}},{"annotation":[],"when":{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}}},"then":{"type":"Concatenate","annotation":[],"signature":[],"operand":[{"type":"Concatenate","annotation":[],"signature":[],"operand":[{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"LDL: ","type":"Literal","annotation":[]},{"type":"ToString","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Decimal","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"name":"ToDecimal","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","annotation":[]}}}]}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"mg/dL","type":"Literal","annotation":[]}]}},{"annotation":[],"when":{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest TC Cholesterol","type":"ExpressionRef","annotation":[]}}},"then":{"type":"Concatenate","annotation":[],"signature":[],"operand":[{"type":"Concatenate","annotation":[],"signature":[],"operand":[{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"TC: ","type":"Literal","annotation":[]},{"type":"ToString","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Decimal","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"name":"ToDecimal","libraryName":"FHIRHelpers","type":"FunctionRef","annotation":[],"signature":[],"operand":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest TC Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","annotation":[]}}}]}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"mg/dL","type":"Literal","annotation":[]}]}}],"else":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"無膽固醇檢測資料","type":"Literal","annotation":[]}}},{"name":"Risk Factors Details","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Case","annotation":[],"caseItem":[{"annotation":[],"when":{"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":[{"name":"RiskFactorsMetCount","libraryName":"RF","type":"ExpressionRef","annotation":[]},{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"2","type":"Literal","annotation":[]}]},"then":{"type":"Concatenate","annotation":[],"signature":[],"operand":[{"type":"Concatenate","annotation":[],"signature":[],"operand":[{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"高風險 (","type":"Literal","annotation":[]},{"type":"ToString","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"name":"RiskFactorsMetCount","libraryName":"RF","type":"ExpressionRef","annotation":[]}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"個風險因子)","type":"Literal","annotation":[]}]}},{"annotation":[],"when":{"type":"Equal","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":[{"name":"RiskFactorsMetCount","libraryName":"RF","type":"ExpressionRef","annotation":[]},{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"1","type":"Literal","annotation":[]}]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"中等風險 (1個風險因子)","type":"Literal","annotation":[]}},{"annotation":[],"when":{"type":"Equal","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":[{"name":"RiskFactorsMetCount","libraryName":"RF","type":"ExpressionRef","annotation":[]},{"valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"0","type":"Literal","annotation":[]}]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"低風險 (無風險因子)","type":"Literal","annotation":[]}}],"else":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"風險未知","type":"Literal","annotation":[]}}},{"name":"smoking","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 Smoking Status","libraryName":"RF","type":"ExpressionRef","annotation":[]}}},{"type":"Or","annotation":[],"signature":[],"operand":[{"type":"Or","annotation":[],"signature":[],"operand":[{"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":[{"asType":"{http://hl7.org/fhir}CodeableConcept","type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest Smoking Status","libraryName":"RF","type":"ExpressionRef","annotation":[]}}}]},{"type":"ToConcept","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"name":"Current every day smoker","type":"CodeRef","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":[{"asType":"{http://hl7.org/fhir}CodeableConcept","type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest Smoking Status","libraryName":"RF","type":"ExpressionRef","annotation":[]}}}]},{"type":"ToConcept","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"name":"Current some day smoker","type":"CodeRef","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":[{"asType":"{http://hl7.org/fhir}CodeableConcept","type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest Smoking Status","libraryName":"RF","type":"ExpressionRef","annotation":[]}}}]},{"type":"ToConcept","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"name":"Smoker","type":"CodeRef","annotation":[]}}]}]}]},{"type":"Not","annotation":[],"signature":[],"operand":{"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":[{"asType":"{http://hl7.org/fhir}CodeableConcept","type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest Smoking Status","libraryName":"RF","type":"ExpressionRef","annotation":[]}}}]},{"type":"ToConcept","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier","annotation":[]}],"operand":{"name":"Former smoker","type":"CodeRef","annotation":[]}}]}}]}},{"name":"TC Cholesterol Check","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 TC Cholesterol","type":"ExpressionRef","annotation":[]}}},{"type":"GreaterOrEqual","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":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest TC Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","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":"160","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":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest TC Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","annotation":[]}}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"mg/dL","type":"Literal","annotation":[]}]}]}},{"name":"LDL Cholesterol Check","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 LDL Cholesterol","type":"ExpressionRef","annotation":[]}}},{"type":"GreaterOrEqual","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":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","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":"100","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":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","annotation":[]}}}]},{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"mg/dL","type":"Literal","annotation":[]}]}]}},{"name":"Cholesterol Criteria Met","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Or","annotation":[],"signature":[],"operand":[{"name":"TC Cholesterol Check","type":"ExpressionRef","annotation":[]},{"name":"LDL Cholesterol Check","type":"ExpressionRef","annotation":[]}]}},{"name":"Recommendation","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"If","annotation":[],"condition":{"name":"InclusionCriteria1","type":"ExpressionRef","annotation":[]},"then":{"type":"If","annotation":[],"condition":{"type":"Or","annotation":[],"signature":[],"operand":[{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest TC Cholesterol","type":"ExpressionRef","annotation":[]}}},{"type":"GreaterOrEqual","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":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest TC Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","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":"160","type":"Literal","annotation":[]}}]}]},{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}}},{"type":"GreaterOrEqual","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":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","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":"100","type":"Literal","annotation":[]}}]}]}]},"then":{"type":"If","annotation":[],"condition":{"name":"smoking","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"建議自費治療 - 目前吸菸","type":"Literal","annotation":[]},"else":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"健保給付XXX點","type":"Literal","annotation":[]}},"else":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"不得申報健保給付 - 膽固醇數值未達標準","type":"Literal","annotation":[]}},"else":{"type":"If","annotation":[],"condition":{"name":"Is High Risk","type":"ExpressionRef","annotation":[]},"then":{"type":"If","annotation":[],"condition":{"type":"Or","annotation":[],"signature":[],"operand":[{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest TC Cholesterol","type":"ExpressionRef","annotation":[]}}},{"type":"GreaterOrEqual","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":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest TC Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","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":"200","type":"Literal","annotation":[]}}]}]},{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}}},{"type":"GreaterOrEqual","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":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","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":"130","type":"Literal","annotation":[]}}]}]}]},"then":{"type":"If","annotation":[],"condition":{"name":"smoking","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"建議自費治療 - 目前吸菸","type":"Literal","annotation":[]},"else":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"健保給付XXX點","type":"Literal","annotation":[]}},"else":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"不得申報健保給付 - 高風險群但膽固醇數值未達標準","type":"Literal","annotation":[]}},"else":{"type":"If","annotation":[],"condition":{"name":"Is Moderate Risk","type":"ExpressionRef","annotation":[]},"then":{"type":"If","annotation":[],"condition":{"type":"Or","annotation":[],"signature":[],"operand":[{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest TC Cholesterol","type":"ExpressionRef","annotation":[]}}},{"type":"GreaterOrEqual","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":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest TC Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","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":"240","type":"Literal","annotation":[]}}]}]},{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}}},{"type":"GreaterOrEqual","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":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","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":"160","type":"Literal","annotation":[]}}]}]}]},"then":{"type":"If","annotation":[],"condition":{"name":"smoking","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"建議自費治療 - 目前吸菸","type":"Literal","annotation":[]},"else":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"健保給付XXX點","type":"Literal","annotation":[]}},"else":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"不得申報健保給付 - 中等風險群但膽固醇數值未達標準","type":"Literal","annotation":[]}},"else":{"type":"If","annotation":[],"condition":{"name":"Is Low Risk","type":"ExpressionRef","annotation":[]},"then":{"type":"If","annotation":[],"condition":{"type":"And","annotation":[],"signature":[],"operand":[{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}}},{"type":"GreaterOrEqual","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":[{"path":"value","type":"Property","annotation":[],"source":{"strict":false,"type":"As","annotation":[],"signature":[],"operand":{"path":"value","type":"Property","annotation":[],"source":{"name":"Latest LDL Cholesterol","type":"ExpressionRef","annotation":[]}},"asTypeSpecifier":{"name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier","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":"190","type":"Literal","annotation":[]}}]}]},"then":{"type":"If","annotation":[],"condition":{"name":"smoking","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"建議自費治療 - 目前吸菸","type":"Literal","annotation":[]},"else":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"健保給付XXX點","type":"Literal","annotation":[]}},"else":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"不得申報健保給付 - 低風險群且膽固醇數值未達標準","type":"Literal","annotation":[]}},"else":{"asType":"{urn:hl7-org:elm-types:r1}String","type":"As","annotation":[],"signature":[],"operand":{"type":"Null","annotation":[]}}}}}}}]}}}