{"library":{"localId":"0","annotation":[{"translatorVersion":"3.22.0","translatorOptions":"EnableDateRangeOptimization,EnableAnnotations,EnableLocators,EnableResultTypes,DisableListDemotion,DisableListPromotion,DisableMethodInvocation","signatureLevel":"All","type":"CqlToElmInfo"},{"type":"Annotation","s":{"r":"261","s":[{"value":["","library \"Healthy-Diet-Tutorial\" version '1.0.0'"]}]}}],"identifier":{"id":"Healthy-Diet-Tutorial","version":"1.0.0"},"schemaIdentifier":{"id":"urn:hl7-org:elm","version":"r1"},"usings":{"def":[{"localId":"1","localIdentifier":"System","uri":"urn:hl7-org:elm-types:r1"},{"localId":"206","locator":"3:1-3:26","localIdentifier":"FHIR","uri":"http://hl7.org/fhir","version":"4.0.0","annotation":[{"type":"Annotation","s":{"r":"206","s":[{"value":["","using "]},{"s":[{"value":["FHIR"]}]},{"value":[" version '4.0.0'"]}]}}]}]},"includes":{"def":[{"localId":"207","locator":"5:1-5:56","localIdentifier":"FHIRHelpers","path":"FHIRHelpers","version":"4.0.0","annotation":[{"type":"Annotation","s":{"r":"207","s":[{"value":["","include "]},{"s":[{"value":["\"FHIRHelpers\""]}]},{"value":[" version ","'4.0.0'"," called ","FHIRHelpers"]}]}}]}]},"contexts":{"def":[{"localId":"211","locator":"7:1-7:15","name":"Patient"}]},"statements":{"def":[{"localId":"209","locator":"7:1-7:15","name":"Patient","context":"Patient","expression":{"localId":"210","type":"SingletonFrom","signature":[],"operand":{"localId":"208","locator":"7:1-7:15","dataType":"{http://hl7.org/fhir}Patient","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}},{"localId":"215","locator":"12:1-14:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"__ageRange_for_age min","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"215","s":[{"value":["","define ","\"__ageRange_for_age min\"",":\n  "]},{"r":"216","s":[{"r":"217","s":[{"r":"222","s":[{"value":["AgeInYears","()"]}]},{"r":"224","value":[" ",">="," ","18"]}]},{"value":["\n    and "]},{"r":"227","s":[{"r":"232","s":[{"value":["AgeInYears","()"]}]},{"r":"234","value":[" ","<="," ","27"]}]}]}]}}],"expression":{"localId":"216","locator":"13:3-14:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"And","signature":[{"localId":"237","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"238","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"217","locator":"13:3-13:20","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"GreaterOrEqual","signature":[{"localId":"225","name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier"},{"localId":"226","name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier"}],"operand":[{"localId":"222","locator":"13:3-13:14","resultTypeName":"{urn:hl7-org:elm-types:r1}Integer","precision":"Year","type":"CalculateAge","signature":[{"localId":"223","name":"{urn:hl7-org:elm-types:r1}Date","type":"NamedTypeSpecifier"}],"operand":{"localId":"221","path":"birthDate.value","type":"Property","source":{"localId":"220","name":"Patient","type":"ExpressionRef"}}},{"localId":"224","locator":"13:19-13:20","resultTypeName":"{urn:hl7-org:elm-types:r1}Integer","valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"18","type":"Literal"}]},{"localId":"227","locator":"14:9-14:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"LessOrEqual","signature":[{"localId":"235","name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier"},{"localId":"236","name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier"}],"operand":[{"localId":"232","locator":"14:9-14:20","resultTypeName":"{urn:hl7-org:elm-types:r1}Integer","precision":"Year","type":"CalculateAge","signature":[{"localId":"233","name":"{urn:hl7-org:elm-types:r1}Date","type":"NamedTypeSpecifier"}],"operand":{"localId":"231","path":"birthDate.value","type":"Property","source":{"localId":"230","name":"Patient","type":"ExpressionRef"}}},{"localId":"234","locator":"14:25-14:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Integer","valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"27","type":"Literal"}]}]}},{"localId":"213","locator":"9:1-10:34","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"age min","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"213","s":[{"value":["","define ","\"age min\"",":\n  "]},{"r":"240","s":[{"r":"239","s":[{"value":["\"__ageRange_for_age min\""]}]},{"value":[" is null"]}]}]}}],"expression":{"localId":"240","locator":"10:3-10:34","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"IsNull","signature":[{"localId":"241","name":"{urn:hl7-org:elm-types:r1}Any","type":"NamedTypeSpecifier"}],"operand":{"localId":"239","locator":"10:3-10:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"__ageRange_for_age min","type":"ExpressionRef"}}},{"localId":"243","locator":"16:1-17:11","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"MeetsInclusionCriteria","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"243","s":[{"value":["","define ","\"MeetsInclusionCriteria\"",":\n  "]},{"r":"244","s":[{"value":["\"age min\""]}]}]}}],"expression":{"localId":"244","locator":"17:3-17:11","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"age min","type":"ExpressionRef"}},{"localId":"246","locator":"19:1-20:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"246","s":[{"value":["","define ","\"InPopulation\"",":\n  "]},{"r":"247","s":[{"value":["\"MeetsInclusionCriteria\""]}]}]}}],"expression":{"localId":"247","locator":"20:3-20:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"MeetsInclusionCriteria","type":"ExpressionRef"}},{"localId":"249","locator":"22:1-23:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Recommendation","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"249","s":[{"r":"250","value":["","define ","\"Recommendation\"",":\n  ","null"]}]}}],"expression":{"localId":"250","locator":"23:3-23:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}},{"localId":"252","locator":"25:1-26:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Rationale","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"252","s":[{"r":"253","value":["","define ","\"Rationale\"",":\n  ","null"]}]}}],"expression":{"localId":"253","locator":"26:3-26:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}},{"localId":"255","locator":"28:1-29:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Links","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"255","s":[{"r":"256","value":["","define ","\"Links\"",":\n  ","null"]}]}}],"expression":{"localId":"256","locator":"29:3-29:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}},{"localId":"258","locator":"31:1-32:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Suggestions","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"258","s":[{"r":"259","value":["","define ","\"Suggestions\"",":\n  ","null"]}]}}],"expression":{"localId":"259","locator":"32:3-32:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}},{"localId":"261","locator":"34:1-35:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Errors","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"261","s":[{"r":"262","value":["","define ","\"Errors\"",":\n  ","null"]}]}}],"expression":{"localId":"262","locator":"35:3-35:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}]}}}