{"library":{"localId":"0","annotation":[{"translatorVersion":"3.22.0","translatorOptions":"EnableDateRangeOptimization,EnableAnnotations,EnableLocators,EnableResultTypes,DisableListDemotion,DisableListPromotion,DisableMethodInvocation","signatureLevel":"All","type":"CqlToElmInfo"},{"type":"Annotation","s":{"r":"295","s":[{"value":["","library \"Deafblindness-Management\" version '1.0.0'"]}]}}],"identifier":{"id":"Deafblindness-Management","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.1","annotation":[{"type":"Annotation","s":{"r":"206","s":[{"value":["","using "]},{"s":[{"value":["FHIR"]}]},{"value":[" version '4.0.1'"]}]}}]}]},"includes":{"def":[{"localId":"207","locator":"5:1-5:56","localIdentifier":"FHIRHelpers","path":"FHIRHelpers","version":"4.0.1","annotation":[{"type":"Annotation","s":{"r":"207","s":[{"value":["","include "]},{"s":[{"value":["\"FHIRHelpers\""]}]},{"value":[" version ","'4.0.1'"," called ","FHIRHelpers"]}]}}]}]},"codeSystems":{"def":[{"localId":"208","locator":"7:1-7:45","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"SNOMED","id":"http://snomed.info/sct","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"208","s":[{"value":["","codesystem ","\"SNOMED\"",": ","'http://snomed.info/sct'"]}]}}]}]},"codes":{"def":[{"localId":"209","locator":"9:1-9:152","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Blindness AND/OR vision impairment level (disorder) code","id":"105597003","display":"Blindness AND/OR vision impairment level (disorder)","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"209","s":[{"value":["","code ","\"Blindness AND/OR vision impairment level (disorder) code\"",": ","'105597003'"," from "]},{"r":"210","s":[{"value":["\"SNOMED\""]}]},{"value":[" display ","'Blindness AND/OR vision impairment level (disorder)'"]}]}}],"codeSystem":{"localId":"210","locator":"9:83-9:90","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"SNOMED"}},{"localId":"211","locator":"10:1-10:95","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Hearing loss (disorder) code","id":"15188001","display":"Hearing loss (disorder)","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"211","s":[{"value":["","code ","\"Hearing loss (disorder) code\"",": ","'15188001'"," from "]},{"r":"212","s":[{"value":["\"SNOMED\""]}]},{"value":[" display ","'Hearing loss (disorder)'"]}]}}],"codeSystem":{"localId":"212","locator":"10:54-10:61","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"SNOMED"}}]},"contexts":{"def":[{"localId":"216","locator":"12:1-12:15","name":"Patient"}]},"statements":{"def":[{"localId":"214","locator":"12:1-12:15","name":"Patient","context":"Patient","expression":{"localId":"215","type":"SingletonFrom","signature":[],"operand":{"localId":"213","locator":"12:1-12:15","dataType":"{http://hl7.org/fhir}Patient","templateId":"http://hl7.org/fhir/StructureDefinition/Patient","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}},{"localId":"218","locator":"14:1-15:84","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Blindness AND/OR vision impairment level (disorder)","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"218","s":[{"value":["","define ","\"Blindness AND/OR vision impairment level (disorder)\"",":\n  "]},{"r":"219","s":[{"value":["exists "]},{"r":"222","s":[{"value":["( "]},{"r":"222","s":[{"value":["[","Condition",": "]},{"s":[{"value":["\"Blindness AND/OR vision impairment level (disorder) code\""]}]},{"value":["]"]}]},{"value":[" )"]}]}]}]}}],"expression":{"localId":"219","locator":"15:3-15:84","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Exists","signature":[{"localId":"236","type":"ListTypeSpecifier","elementType":{"localId":"237","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":{"localId":"222","locator":"15:10-15:84","dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"234","type":"ListTypeSpecifier","elementType":{"localId":"235","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"codes":{"localId":"231","type":"ToList","signature":[],"operand":{"localId":"221","locator":"15:24-15:81","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Blindness AND/OR vision impairment level (disorder) code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}},{"localId":"239","locator":"17:1-18:56","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Hearing loss (disorder)","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"239","s":[{"value":["","define ","\"Hearing loss (disorder)\"",":\n  "]},{"r":"240","s":[{"value":["exists "]},{"r":"243","s":[{"value":["( "]},{"r":"243","s":[{"value":["[","Condition",": "]},{"s":[{"value":["\"Hearing loss (disorder) code\""]}]},{"value":["]"]}]},{"value":[" )"]}]}]}]}}],"expression":{"localId":"240","locator":"18:3-18:56","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Exists","signature":[{"localId":"257","type":"ListTypeSpecifier","elementType":{"localId":"258","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":{"localId":"243","locator":"18:10-18:56","dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"255","type":"ListTypeSpecifier","elementType":{"localId":"256","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"codes":{"localId":"252","type":"ToList","signature":[],"operand":{"localId":"242","locator":"18:24-18:53","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Hearing loss (disorder) code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}},{"localId":"260","locator":"20:1-22:33","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"MeetsInclusionCriteria","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"260","s":[{"value":["","define ","\"MeetsInclusionCriteria\"",":\n  "]},{"r":"261","s":[{"r":"262","s":[{"value":["\"Blindness AND/OR vision impairment level (disorder)\""]}]},{"value":["\n    and "]},{"r":"263","s":[{"value":["\"Hearing loss (disorder)\""]}]}]}]}}],"expression":{"localId":"261","locator":"21:3-22:33","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"And","signature":[{"localId":"264","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"265","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"262","locator":"21:3-21:55","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Blindness AND/OR vision impairment level (disorder)","type":"ExpressionRef"},{"localId":"263","locator":"22:9-22:33","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Hearing loss (disorder)","type":"ExpressionRef"}]}},{"localId":"267","locator":"24:1-25:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"267","s":[{"value":["","define ","\"InPopulation\"",":\n  "]},{"r":"268","s":[{"value":["\"MeetsInclusionCriteria\""]}]}]}}],"expression":{"localId":"268","locator":"25:3-25:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"MeetsInclusionCriteria","type":"ExpressionRef"}},{"localId":"270","locator":"27:1-29:13","resultTypeName":"{urn:hl7-org:elm-types:r1}String","name":"Recommendation","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"270","s":[{"value":["","define ","\"Recommendation\"",":\n  "]},{"r":"271","s":[{"value":["if "]},{"r":"272","s":[{"value":["\"InPopulation\""]}]},{"value":[" then "]},{"r":"273","s":[{"value":["'Initiate specialist deafblind assessment and referral to multidisciplinary deafblind rehabilitation servicess.'"]}]},{"r":"274","value":[" \n    else ","null"]}]}]}}],"expression":{"localId":"271","locator":"28:3-29:13","resultTypeName":"{urn:hl7-org:elm-types:r1}String","type":"If","condition":{"localId":"272","locator":"28:6-28:19","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","type":"ExpressionRef"},"then":{"localId":"273","locator":"28:26-28:137","resultTypeName":"{urn:hl7-org:elm-types:r1}String","valueType":"{urn:hl7-org:elm-types:r1}String","value":"Initiate specialist deafblind assessment and referral to multidisciplinary deafblind rehabilitation servicess.","type":"Literal"},"else":{"localId":"275","asType":"{urn:hl7-org:elm-types:r1}String","type":"As","signature":[],"operand":{"localId":"274","locator":"29:10-29:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}}},{"localId":"277","locator":"31:1-33:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Rationale","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"277","s":[{"value":["","define ","\"Rationale\"",":\n  "]},{"r":"278","s":[{"value":["if "]},{"r":"279","s":[{"value":["\"InPopulation\""]}]},{"r":"280","value":[" then ","null"," \n    else ","null"]}]}]}}],"expression":{"localId":"278","locator":"32:3-33:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"If","condition":{"localId":"279","locator":"32:6-32:19","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","type":"ExpressionRef"},"then":{"localId":"280","locator":"32:26-32:29","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"},"else":{"localId":"281","locator":"33:10-33:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}},{"localId":"283","locator":"35:1-37:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Links","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"283","s":[{"value":["","define ","\"Links\"",":\n  "]},{"r":"284","s":[{"value":["if "]},{"r":"285","s":[{"value":["\"InPopulation\""]}]},{"r":"286","value":[" then ","null"," \n    else ","null"]}]}]}}],"expression":{"localId":"284","locator":"36:3-37:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"If","condition":{"localId":"285","locator":"36:6-36:19","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","type":"ExpressionRef"},"then":{"localId":"286","locator":"36:26-36:29","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"},"else":{"localId":"287","locator":"37:10-37:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}},{"localId":"289","locator":"39:1-41:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Suggestions","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"289","s":[{"value":["","define ","\"Suggestions\"",":\n  "]},{"r":"290","s":[{"value":["if "]},{"r":"291","s":[{"value":["\"InPopulation\""]}]},{"r":"292","value":[" then ","null"," \n    else ","null"]}]}]}}],"expression":{"localId":"290","locator":"40:3-41:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"If","condition":{"localId":"291","locator":"40:6-40:19","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","type":"ExpressionRef"},"then":{"localId":"292","locator":"40:26-40:29","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"},"else":{"localId":"293","locator":"41:10-41:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}},{"localId":"295","locator":"43:1-44:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Errors","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"295","s":[{"r":"296","value":["","define ","\"Errors\"",":\n  ","null"]}]}}],"expression":{"localId":"296","locator":"44:3-44:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}]}}}