{"library":{"annotation":[{"translatorVersion":"3.10.0","translatorOptions":"DisableListDemotion,DisableListPromotion","signatureLevel":"Overloads","type":"CqlToElmInfo"}],"identifier":{"id":"USPSTFStatinUseForPrimaryPreventionOfCVDInAdultsFHIRv401","version":"2.0.0"},"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":"SharedLogic","path":"USPSTFStatinUseForPrimaryPreventionOfCVDInAdultsSharedLogicFHIRv401","version":"2.0.0","annotation":[]}]},"parameters":{"def":[{"name":"GradeCRecommendationEnabled","accessLevel":"Public","annotation":[],"default":{"valueType":"{urn:hl7-org:elm-types:r1}Boolean","value":"true","type":"Literal","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":"MeetsInclusionCriteria","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"And","annotation":[],"signature":[],"operand":[{"type":"And","annotation":[],"signature":[],"operand":[{"name":"InDemographic","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]},{"name":"HasCVDRiskFactors","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}]},{"type":"Or","annotation":[],"signature":[],"operand":[{"type":"GreaterOrEqual","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"MostRecentValidCVDRiskAssessmentResult","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]},{"value":10,"unit":"%","type":"Quantity","annotation":[]}]},{"type":"And","annotation":[],"signature":[],"operand":[{"name":"GradeCRecommendationEnabled","type":"ParameterRef","annotation":[]},{"type":"GreaterOrEqual","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"MostRecentValidCVDRiskAssessmentResult","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]},{"value":7.5,"unit":"%","type":"Quantity","annotation":[]}]}]}]}]}},{"name":"MeetsExclusionCriteria","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"MeetsExclusionCriteria","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"InPopulation","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"And","annotation":[],"signature":[],"operand":[{"name":"MeetsInclusionCriteria","type":"ExpressionRef","annotation":[]},{"type":"Not","annotation":[],"signature":[],"operand":{"name":"MeetsExclusionCriteria","type":"ExpressionRef","annotation":[]}}]}},{"name":"ShouldStartStatin","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"If","annotation":[],"condition":{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsTrue","annotation":[],"signature":[],"operand":{"name":"InPopulation","type":"ExpressionRef","annotation":[]}}},"then":{"asType":"{urn:hl7-org:elm-types:r1}Boolean","type":"As","annotation":[],"signature":[],"operand":{"type":"Null","annotation":[]}},"else":{"type":"GreaterOrEqual","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"MostRecentValidCVDRiskAssessmentResult","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]},{"value":10,"unit":"%","type":"Quantity","annotation":[]}]}}},{"name":"ShouldDiscussStatin","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"If","annotation":[],"condition":{"type":"Not","annotation":[],"signature":[],"operand":{"type":"IsTrue","annotation":[],"signature":[],"operand":{"name":"InPopulation","type":"ExpressionRef","annotation":[]}}},"then":{"asType":"{urn:hl7-org:elm-types:r1}Boolean","type":"As","annotation":[],"signature":[],"operand":{"type":"Null","annotation":[]}},"else":{"type":"And","annotation":[],"signature":[],"operand":[{"type":"And","annotation":[],"signature":[],"operand":[{"name":"GradeCRecommendationEnabled","type":"ParameterRef","annotation":[]},{"type":"GreaterOrEqual","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"MostRecentValidCVDRiskAssessmentResult","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]},{"value":7.5,"unit":"%","type":"Quantity","annotation":[]}]}]},{"type":"Less","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"MostRecentValidCVDRiskAssessmentResult","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]},{"value":10,"unit":"%","type":"Quantity","annotation":[]}]}]}}},{"name":"RecommendationGrade","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Case","annotation":[],"caseItem":[{"annotation":[],"when":{"name":"ShouldStartStatin","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"B","type":"Literal","annotation":[]}},{"annotation":[],"when":{"name":"ShouldDiscussStatin","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"C","type":"Literal","annotation":[]}}],"else":{"asType":"{urn:hl7-org:elm-types:r1}String","type":"As","annotation":[],"signature":[],"operand":{"type":"Null","annotation":[]}}}},{"name":"Recommendation","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Case","annotation":[],"caseItem":[{"annotation":[],"when":{"name":"ShouldStartStatin","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"Start low to moderate intensity lipid lowering therapy based on outcome of shared decision making between patient and provider","type":"Literal","annotation":[]}},{"annotation":[],"when":{"name":"ShouldDiscussStatin","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"Discuss initiation of low to moderate intensity lipid lowering therapy","type":"Literal","annotation":[]}},{"annotation":[],"when":{"type":"Not","annotation":[],"signature":[],"operand":{"name":"MeetsInclusionCriteria","type":"ExpressionRef","annotation":[]}},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"No USPSTF recommendation provided, as patient does not meet inclusion criteria","type":"Literal","annotation":[]}},{"annotation":[],"when":{"name":"MeetsExclusionCriteria","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"No USPSTF recommendation provided, as patient meets exclusion criteria","type":"Literal","annotation":[]}}],"else":{"asType":"{urn:hl7-org:elm-types:r1}String","type":"As","annotation":[],"signature":[],"operand":{"type":"Null","annotation":[]}}}},{"name":"Rationale","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Case","annotation":[],"caseItem":[{"annotation":[],"when":{"name":"ShouldStartStatin","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"The USPSTF found adequate evidence that use of low- to moderate-dose statins reduces the probability of CVD events (MI or ischemic stroke) and mortality by at least a moderate amount in adults aged 40 to 75 years who have 1 or more CVD risk factors (dyslipidemia, diabetes, hypertension, or smoking) and a calculated 10-year CVD event risk of 10% or greater.","type":"Literal","annotation":[]}},{"annotation":[],"when":{"name":"ShouldDiscussStatin","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"The USPSTF found adequate evidence that use of low- to moderate-dose statins reduces the probability of  CVD events and mortality by at least a small amount in adults aged 40 to 75 years who have 1 or more CVD risk factors (dyslipidemia, diabetes, hypertension, or smoking) and a calculated 10-year CVD event risk of 7.5% to 10%.","type":"Literal","annotation":[]}},{"annotation":[],"when":{"type":"Not","annotation":[],"signature":[],"operand":{"name":"MeetsInclusionCriteria","type":"ExpressionRef","annotation":[]}},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"The USPSTF guideline applies to adults aged 40 to 75 years who have 1 or more CVD risk factors (dyslipidemia, as evidenced by LDL > 130 mg/dL or HDL < 40 mg/dL, diabetes, hypertension, or smoking) and a calculated 10-year CVD event risk >= 7.5% (grade C) or >= 10% (grade B).","type":"Literal","annotation":[]}},{"annotation":[],"when":{"name":"MeetsExclusionCriteria","type":"ExpressionRef","annotation":[]},"then":{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"This USPSTF guideline should not be used for patients with any of the following: LDL > 190 mg/dL, a previous CVD diagnosis or procedure, familial hypercholesterolemia, end stage renal disease, cirrhosis, recent dialysis, or patients who are pregnant, breastfeeding, or currently on a statin.","type":"Literal","annotation":[]}}],"else":{"asType":"{urn:hl7-org:elm-types:r1}String","type":"As","annotation":[],"signature":[],"operand":{"type":"Null","annotation":[]}}}},{"name":"Errors","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"If","annotation":[],"condition":{"name":"HasMissingOrOldData","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]},"then":{"type":"If","annotation":[],"condition":{"type":"IsNull","annotation":[],"signature":[],"operand":{"name":"Recommendation","type":"ExpressionRef","annotation":[]}},"then":{"type":"List","annotation":[],"element":[{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"ERROR: Inadequate data to process CDS, as one of the following items is missing or more than 6 years old: LDL, HDL, smoking status, or CVD risk score.","type":"Literal","annotation":[]}]},"else":{"type":"List","annotation":[],"element":[{"valueType":"{urn:hl7-org:elm-types:r1}String","value":"WARNING: Adequate data to process CDS, but one of the following items is missing or more than 6 years old: LDL, HDL, smoking status, or CVD risk score.","type":"Literal","annotation":[]}]}},"else":{"type":"As","annotation":[],"signature":[],"operand":{"type":"Null","annotation":[]},"asTypeSpecifier":{"type":"ListTypeSpecifier","annotation":[],"elementType":{"name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier","annotation":[]}}}}},{"name":"HasCVDRiskFactors","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"HasCVDRiskFactors","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"MostRecentValidLDLResultIsAbove130","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Greater","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"MostRecentValidLDLResult","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]},{"value":130,"unit":"mg/dL","type":"Quantity","annotation":[]}]}},{"name":"MostRecentValidHDLResultIsBelow40","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Less","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"MostRecentValidHDLResult","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]},{"value":40,"unit":"mg/dL","type":"Quantity","annotation":[]}]}},{"name":"HasDiabetes","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"HasDiabetes","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"HasHypertension","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"HasHypertension","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"IsSmoker","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"IsSmoker","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"HasCVD","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"HasCVD","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"HasHadCVDProcedures","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"HasHadCVDProcedures","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"MostRecentValidLDLResultIsAbove190","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"type":"Greater","annotation":[],"signature":[{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]},{"name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier","annotation":[]}],"operand":[{"name":"MostRecentValidLDLResult","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]},{"value":190,"unit":"mg/dL","type":"Quantity","annotation":[]}]}},{"name":"HasFamilialHypercholesterolemia","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"HasFamilialHypercholesterolemia","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"IsPregnant","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"IsPregnant","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"IsBreastfeeding","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"IsBreastfeeding","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"HasEndStageRenalDisease","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"HasEndStageRenalDisease","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"HasHadRecentEndStageRenalDiseaseEncounter","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"HasHadRecentEndStageRenalDiseaseEncounter","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"OnDialysis","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"OnDialysis","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"DependentUponDialysis","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"DependentUponDialysis","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"HasCirrhosis","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"DependentUponDialysis","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"OnStatinTherapy","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"OnStatinTherapy","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}},{"name":"HasRhabdomyolysis","context":"Patient","accessLevel":"Public","annotation":[],"expression":{"name":"HasRhabdomyolysis","libraryName":"SharedLogic","type":"ExpressionRef","annotation":[]}}]}}}