{"library":{"localId":"0","annotation":[{"translatorVersion":"3.22.0","translatorOptions":"EnableDateRangeOptimization,EnableAnnotations,EnableLocators,EnableResultTypes,DisableListDemotion,DisableListPromotion,DisableMethodInvocation","signatureLevel":"All","type":"CqlToElmInfo"},{"type":"Annotation","s":{"r":"1242","s":[{"value":["","library \"TIA-Secondary-Prevention\" version '1.0.0'"]}]}}],"identifier":{"id":"TIA-Secondary-Prevention","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'"]}]}}]},{"localId":"209","locator":"8:1-8:59","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"ICD-10-CM","id":"http://hl7.org/fhir/sid/icd-10-cm","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"209","s":[{"value":["","codesystem ","\"ICD-10-CM\"",": ","'http://hl7.org/fhir/sid/icd-10-cm'"]}]}}]},{"localId":"210","locator":"9:1-9:38","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"LOINC","id":"http://loinc.org","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"210","s":[{"value":["","codesystem ","\"LOINC\"",": ","'http://loinc.org'"]}]}}]},{"localId":"211","locator":"10:1-10:66","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"RXNORM","id":"http://www.nlm.nih.gov/research/umls/rxnorm","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"211","s":[{"value":["","codesystem ","\"RXNORM\"",": ","'http://www.nlm.nih.gov/research/umls/rxnorm'"]}]}}]},{"localId":"212","locator":"11:1-11:88","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"CONDVERSTATUS","id":"http://terminology.hl7.org/CodeSystem/condition-ver-status","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"212","s":[{"value":["","codesystem ","\"CONDVERSTATUS\"",": ","'http://terminology.hl7.org/CodeSystem/condition-ver-status'"]}]}}]},{"localId":"213","locator":"12:1-12:94","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"AICLINSTATUS","id":"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"213","s":[{"value":["","codesystem ","\"AICLINSTATUS\"",": ","'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical'"]}]}}]},{"localId":"214","locator":"13:1-13:97","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"AIVERSTATUS","id":"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"214","s":[{"value":["","codesystem ","\"AIVERSTATUS\"",": ","'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification'"]}]}}]}]},"codes":{"def":[{"localId":"215","locator":"15:1-15:122","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Transient ischemic attack (disorder) code","id":"266257000","display":"Transient ischemic attack (disorder)","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"215","s":[{"value":["","code ","\"Transient ischemic attack (disorder) code\"",": ","'266257000'"," from "]},{"r":"216","s":[{"value":["\"SNOMED\""]}]},{"value":[" display ","'Transient ischemic attack (disorder)'"]}]}}],"codeSystem":{"localId":"216","locator":"15:68-15:75","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"SNOMED"}},{"localId":"217","locator":"16:1-16:143","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Transient cerebral ischemic attack, unspecified code","id":"G45.9","display":"Transient cerebral ischemic attack, unspecified","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"217","s":[{"value":["","code ","\"Transient cerebral ischemic attack, unspecified code\"",": ","'G45.9'"," from "]},{"r":"218","s":[{"value":["\"ICD-10-CM\""]}]},{"value":[" display ","'Transient cerebral ischemic attack, unspecified'"]}]}}],"codeSystem":{"localId":"218","locator":"16:75-16:85","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"ICD-10-CM"}},{"localId":"219","locator":"17:1-17:123","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Carotid artery syndrome (hemispheric) code","id":"G45.1","display":"Carotid artery syndrome (hemispheric)","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"219","s":[{"value":["","code ","\"Carotid artery syndrome (hemispheric) code\"",": ","'G45.1'"," from "]},{"r":"220","s":[{"value":["\"ICD-10-CM\""]}]},{"value":[" display ","'Carotid artery syndrome (hemispheric)'"]}]}}],"codeSystem":{"localId":"220","locator":"17:65-17:75","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"ICD-10-CM"}},{"localId":"221","locator":"18:1-18:117","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"G45.8 code","id":"G45.8","display":"Other transient cerebral ischemic attacks and related syndromes","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"221","s":[{"value":["","code ","\"G45.8 code\"",": ","'G45.8'"," from "]},{"r":"222","s":[{"value":["\"ICD-10-CM\""]}]},{"value":[" display ","'Other transient cerebral ischemic attacks and related syndromes'"]}]}}],"codeSystem":{"localId":"222","locator":"18:33-18:43","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"ICD-10-CM"}},{"localId":"223","locator":"19:1-19:107","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Total score [NIH Stroke Scale] code","id":"72089-6","display":"Total score [NIH Stroke Scale]","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"223","s":[{"value":["","code ","\"Total score [NIH Stroke Scale] code\"",": ","'72089-6'"," from "]},{"r":"224","s":[{"value":["\"LOINC\""]}]},{"value":[" display ","'Total score [NIH Stroke Scale]'"]}]}}],"codeSystem":{"localId":"224","locator":"19:60-19:66","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"LOINC"}},{"localId":"225","locator":"20:1-20:149","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Nontraumatic intracerebral hemorrhage, unspecified code","id":"I61.9","display":"Nontraumatic intracerebral hemorrhage, unspecified","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"225","s":[{"value":["","code ","\"Nontraumatic intracerebral hemorrhage, unspecified code\"",": ","'I61.9'"," from "]},{"r":"226","s":[{"value":["\"ICD-10-CM\""]}]},{"value":[" display ","'Nontraumatic intracerebral hemorrhage, unspecified'"]}]}}],"codeSystem":{"localId":"226","locator":"20:78-20:88","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"ICD-10-CM"}},{"localId":"227","locator":"21:1-21:147","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Nontraumatic intracranial hemorrhage, unspecified code","id":"I62.9","display":"Nontraumatic intracranial hemorrhage, unspecified","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"227","s":[{"value":["","code ","\"Nontraumatic intracranial hemorrhage, unspecified code\"",": ","'I62.9'"," from "]},{"r":"228","s":[{"value":["\"ICD-10-CM\""]}]},{"value":[" display ","'Nontraumatic intracranial hemorrhage, unspecified'"]}]}}],"codeSystem":{"localId":"228","locator":"21:77-21:87","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"ICD-10-CM"}},{"localId":"229","locator":"22:1-22:110","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Cerebral hemorrhage (disorder) code","id":"274100004","display":"Cerebral hemorrhage (disorder)","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"229","s":[{"value":["","code ","\"Cerebral hemorrhage (disorder) code\"",": ","'274100004'"," from "]},{"r":"230","s":[{"value":["\"SNOMED\""]}]},{"value":[" display ","'Cerebral hemorrhage (disorder)'"]}]}}],"codeSystem":{"localId":"230","locator":"22:62-22:69","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"SNOMED"}},{"localId":"231","locator":"23:1-23:64","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"apixaban code","id":"1364430","display":"apixaban","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"231","s":[{"value":["","code ","\"apixaban code\"",": ","'1364430'"," from "]},{"r":"232","s":[{"value":["\"RXNORM\""]}]},{"value":[" display ","'apixaban'"]}]}}],"codeSystem":{"localId":"232","locator":"23:38-23:45","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"RXNORM"}},{"localId":"233","locator":"24:1-24:62","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"warfarin code","id":"11289","display":"warfarin","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"233","s":[{"value":["","code ","\"warfarin code\"",": ","'11289'"," from "]},{"r":"234","s":[{"value":["\"RXNORM\""]}]},{"value":[" display ","'warfarin'"]}]}}],"codeSystem":{"localId":"234","locator":"24:36-24:43","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"RXNORM"}},{"localId":"235","locator":"25:1-25:70","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"rivaroxaban code","id":"1114195","display":"rivaroxaban","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"235","s":[{"value":["","code ","\"rivaroxaban code\"",": ","'1114195'"," from "]},{"r":"236","s":[{"value":["\"RXNORM\""]}]},{"value":[" display ","'rivaroxaban'"]}]}}],"codeSystem":{"localId":"236","locator":"25:41-25:48","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"RXNORM"}},{"localId":"237","locator":"26:1-26:64","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"edoxaban code","id":"1599538","display":"edoxaban","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"237","s":[{"value":["","code ","\"edoxaban code\"",": ","'1599538'"," from "]},{"r":"238","s":[{"value":["\"RXNORM\""]}]},{"value":[" display ","'edoxaban'"]}]}}],"codeSystem":{"localId":"238","locator":"26:38-26:45","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"RXNORM"}},{"localId":"239","locator":"27:1-27:128","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"dabigatran etexilate 150 MG Oral Capsule code","id":"1037045","display":"dabigatran etexilate 150 MG Oral Capsule","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"239","s":[{"value":["","code ","\"dabigatran etexilate 150 MG Oral Capsule code\"",": ","'1037045'"," from "]},{"r":"240","s":[{"value":["\"RXNORM\""]}]},{"value":[" display ","'dabigatran etexilate 150 MG Oral Capsule'"]}]}}],"codeSystem":{"localId":"240","locator":"27:70-27:77","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"RXNORM"}},{"localId":"241","locator":"28:1-28:126","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"dabigatran etexilate 75 MG Oral Capsule code","id":"1037179","display":"dabigatran etexilate 75 MG Oral Capsule","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"241","s":[{"value":["","code ","\"dabigatran etexilate 75 MG Oral Capsule code\"",": ","'1037179'"," from "]},{"r":"242","s":[{"value":["\"RXNORM\""]}]},{"value":[" display ","'dabigatran etexilate 75 MG Oral Capsule'"]}]}}],"codeSystem":{"localId":"242","locator":"28:69-28:76","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"RXNORM"}},{"localId":"243","locator":"29:1-29:128","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"dabigatran etexilate 110 MG Oral Capsule code","id":"1723476","display":"dabigatran etexilate 110 MG Oral Capsule","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"243","s":[{"value":["","code ","\"dabigatran etexilate 110 MG Oral Capsule code\"",": ","'1723476'"," from "]},{"r":"244","s":[{"value":["\"RXNORM\""]}]},{"value":[" display ","'dabigatran etexilate 110 MG Oral Capsule'"]}]}}],"codeSystem":{"localId":"244","locator":"29:70-29:77","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"RXNORM"}},{"localId":"245","locator":"30:1-30:59","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"aspirin code","id":"1191","display":"aspirin","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"245","s":[{"value":["","code ","\"aspirin code\"",": ","'1191'"," from "]},{"r":"246","s":[{"value":["\"RXNORM\""]}]},{"value":[" display ","'aspirin'"]}]}}],"codeSystem":{"localId":"246","locator":"30:34-30:41","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"RXNORM"}},{"localId":"247","locator":"31:1-31:68","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"clopidogrel code","id":"32968","display":"clopidogrel","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"247","s":[{"value":["","code ","\"clopidogrel code\"",": ","'32968'"," from "]},{"r":"248","s":[{"value":["\"RXNORM\""]}]},{"value":[" display ","'clopidogrel'"]}]}}],"codeSystem":{"localId":"248","locator":"31:39-31:46","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"RXNORM"}},{"localId":"249","locator":"32:1-32:85","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Condition Confirmed code","id":"confirmed","display":"Confirmed","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"249","s":[{"value":["","code ","\"Condition Confirmed code\"",": ","'confirmed'"," from "]},{"r":"250","s":[{"value":["\"CONDVERSTATUS\""]}]},{"value":[" display ","'Confirmed'"]}]}}],"codeSystem":{"localId":"250","locator":"32:51-32:65","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"CONDVERSTATUS"}},{"localId":"251","locator":"33:1-33:84","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"AllergyIntolerance Active code","id":"active","display":"Active","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"251","s":[{"value":["","code ","\"AllergyIntolerance Active code\"",": ","'active'"," from "]},{"r":"252","s":[{"value":["\"AICLINSTATUS\""]}]},{"value":[" display ","'Active'"]}]}}],"codeSystem":{"localId":"252","locator":"33:54-33:67","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"AICLINSTATUS"}},{"localId":"253","locator":"34:1-34:92","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"AllergyIntolerance Confirmed code","id":"confirmed","display":"Confirmed","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"253","s":[{"value":["","code ","\"AllergyIntolerance Confirmed code\"",": ","'confirmed'"," from "]},{"r":"254","s":[{"value":["\"AIVERSTATUS\""]}]},{"value":[" display ","'Confirmed'"]}]}}],"codeSystem":{"localId":"254","locator":"34:60-34:72","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"AIVERSTATUS"}}]},"concepts":{"def":[{"localId":"255","locator":"36:1-36:81","resultTypeName":"{urn:hl7-org:elm-types:r1}Concept","name":"Condition Confirmed","display":"Confirmed","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"255","s":[{"value":["","concept ","\"Condition Confirmed\"",": { "]},{"r":"256","s":[{"value":["\"Condition Confirmed code\""]}]},{"value":[" } display ","'Confirmed'"]}]}}],"code":[{"localId":"256","locator":"36:34-36:59","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Condition Confirmed code"}]},{"localId":"257","locator":"37:1-37:90","resultTypeName":"{urn:hl7-org:elm-types:r1}Concept","name":"AllergyIntolerance Active","display":"Active","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"257","s":[{"value":["","concept ","\"AllergyIntolerance Active\"",": { "]},{"r":"258","s":[{"value":["\"AllergyIntolerance Active code\""]}]},{"value":[" } display ","'Active'"]}]}}],"code":[{"localId":"258","locator":"37:40-37:71","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"AllergyIntolerance Active code"}]},{"localId":"259","locator":"38:1-38:99","resultTypeName":"{urn:hl7-org:elm-types:r1}Concept","name":"AllergyIntolerance Confirmed","display":"Confirmed","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"259","s":[{"value":["","concept ","\"AllergyIntolerance Confirmed\"",": { "]},{"r":"260","s":[{"value":["\"AllergyIntolerance Confirmed code\""]}]},{"value":[" } display ","'Confirmed'"]}]}}],"code":[{"localId":"260","locator":"38:43-38:77","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"AllergyIntolerance Confirmed code"}]}]},"contexts":{"def":[{"localId":"264","locator":"40:1-40:15","name":"Patient"}]},"statements":{"def":[{"localId":"262","locator":"40:1-40:15","name":"Patient","context":"Patient","expression":{"localId":"263","type":"SingletonFrom","signature":[],"operand":{"localId":"261","locator":"40:1-40:15","dataType":"{http://hl7.org/fhir}Patient","templateId":"http://hl7.org/fhir/StructureDefinition/Patient","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}},{"localId":"266","locator":"42:1-46:35","name":"generic_condition_concepts","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"266","s":[{"value":["","define ","\"generic_condition_concepts\"",":\n  "]},{"r":"342","s":[{"r":"316","s":[{"r":"295","s":[{"r":"269","s":[{"value":["[","Condition",": "]},{"s":[{"value":["\"Transient ischemic attack (disorder) code\""]}]},{"value":["]"]}]},{"value":["\n    union "]},{"r":"283","s":[{"value":["[","Condition",": "]},{"s":[{"value":["\"Transient cerebral ischemic attack, unspecified code\""]}]},{"value":["]"]}]}]},{"value":["\n    union "]},{"r":"304","s":[{"value":["[","Condition",": "]},{"s":[{"value":["\"Carotid artery syndrome (hemispheric) code\""]}]},{"value":["]"]}]}]},{"value":["\n    union "]},{"r":"325","s":[{"value":["[","Condition",": "]},{"s":[{"value":["\"G45.8 code\""]}]},{"value":["]"]}]}]}]}}],"resultTypeSpecifier":{"localId":"349","type":"ListTypeSpecifier","elementType":{"localId":"350","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"expression":{"localId":"342","locator":"43:3-46:35","type":"Union","resultTypeSpecifier":{"localId":"347","type":"ListTypeSpecifier","elementType":{"localId":"348","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"signature":[{"localId":"343","type":"ListTypeSpecifier","elementType":{"localId":"344","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},{"localId":"345","type":"ListTypeSpecifier","elementType":{"localId":"346","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"295","locator":"43:3-44:77","type":"Union","resultTypeSpecifier":{"localId":"300","type":"ListTypeSpecifier","elementType":{"localId":"301","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"signature":[{"localId":"296","type":"ListTypeSpecifier","elementType":{"localId":"297","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},{"localId":"298","type":"ListTypeSpecifier","elementType":{"localId":"299","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"269","locator":"43:3-43:58","dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"279","type":"ListTypeSpecifier","elementType":{"localId":"280","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"codes":{"localId":"278","type":"ToList","signature":[],"operand":{"localId":"268","locator":"43:15-43:57","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Transient ischemic attack (disorder) code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},{"localId":"283","locator":"44:11-44:77","dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"293","type":"ListTypeSpecifier","elementType":{"localId":"294","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"codes":{"localId":"292","type":"ToList","signature":[],"operand":{"localId":"282","locator":"44:23-44:76","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Transient cerebral ischemic attack, unspecified code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]},{"localId":"337","type":"Union","signature":[{"localId":"338","type":"ListTypeSpecifier","elementType":{"localId":"339","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},{"localId":"340","type":"ListTypeSpecifier","elementType":{"localId":"341","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"304","locator":"45:11-45:67","dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"314","type":"ListTypeSpecifier","elementType":{"localId":"315","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"codes":{"localId":"313","type":"ToList","signature":[],"operand":{"localId":"303","locator":"45:23-45:66","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Carotid artery syndrome (hemispheric) code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},{"localId":"325","locator":"46:11-46:35","dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"335","type":"ListTypeSpecifier","elementType":{"localId":"336","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"codes":{"localId":"334","type":"ToList","signature":[],"operand":{"localId":"324","locator":"46:23-46:34","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"G45.8 code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}]}},{"localId":"352","locator":"48:1-51:60","name":"generic_condition_concepts_1","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"352","s":[{"value":["","define ","\"generic_condition_concepts_1\"",":\n  "]},{"r":"402","s":[{"r":"381","s":[{"r":"355","s":[{"value":["[","Condition",": "]},{"s":[{"value":["\"Nontraumatic intracerebral hemorrhage, unspecified code\""]}]},{"value":["]"]}]},{"value":["\n    union "]},{"r":"369","s":[{"value":["[","Condition",": "]},{"s":[{"value":["\"Nontraumatic intracranial hemorrhage, unspecified code\""]}]},{"value":["]"]}]}]},{"value":["\n    union "]},{"r":"390","s":[{"value":["[","Condition",": "]},{"s":[{"value":["\"Cerebral hemorrhage (disorder) code\""]}]},{"value":["]"]}]}]}]}}],"resultTypeSpecifier":{"localId":"409","type":"ListTypeSpecifier","elementType":{"localId":"410","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"expression":{"localId":"402","locator":"49:3-51:60","type":"Union","resultTypeSpecifier":{"localId":"407","type":"ListTypeSpecifier","elementType":{"localId":"408","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"signature":[{"localId":"403","type":"ListTypeSpecifier","elementType":{"localId":"404","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},{"localId":"405","type":"ListTypeSpecifier","elementType":{"localId":"406","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"381","locator":"49:3-50:79","type":"Union","resultTypeSpecifier":{"localId":"386","type":"ListTypeSpecifier","elementType":{"localId":"387","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"signature":[{"localId":"382","type":"ListTypeSpecifier","elementType":{"localId":"383","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},{"localId":"384","type":"ListTypeSpecifier","elementType":{"localId":"385","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"355","locator":"49:3-49:72","dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"365","type":"ListTypeSpecifier","elementType":{"localId":"366","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"codes":{"localId":"364","type":"ToList","signature":[],"operand":{"localId":"354","locator":"49:15-49:71","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Nontraumatic intracerebral hemorrhage, unspecified code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},{"localId":"369","locator":"50:11-50:79","dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"379","type":"ListTypeSpecifier","elementType":{"localId":"380","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"codes":{"localId":"378","type":"ToList","signature":[],"operand":{"localId":"368","locator":"50:23-50:78","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Nontraumatic intracranial hemorrhage, unspecified code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]},{"localId":"390","locator":"51:11-51:60","dataType":"{http://hl7.org/fhir}Condition","templateId":"http://hl7.org/fhir/StructureDefinition/Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"400","type":"ListTypeSpecifier","elementType":{"localId":"401","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"codes":{"localId":"399","type":"ToList","signature":[],"operand":{"localId":"389","locator":"51:23-51:59","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Cerebral hemorrhage (disorder) code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}},{"localId":"412","locator":"53:1-60:78","name":"generic_medication_request_concepts","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"412","s":[{"value":["","define ","\"generic_medication_request_concepts\"",":\n  "]},{"r":"833","s":[{"r":"771","s":[{"r":"709","s":[{"r":"647","s":[{"r":"585","s":[{"r":"523","s":[{"r":"461","s":[{"value":["[","MedicationRequest",": "]},{"s":[{"value":["\"apixaban code\""]}]},{"value":["]"]}]},{"value":["\n    union "]},{"r":"516","s":[{"value":["[","MedicationRequest",": "]},{"s":[{"value":["\"warfarin code\""]}]},{"value":["]"]}]}]},{"value":["\n    union "]},{"r":"578","s":[{"value":["[","MedicationRequest",": "]},{"s":[{"value":["\"rivaroxaban code\""]}]},{"value":["]"]}]}]},{"value":["\n    union "]},{"r":"640","s":[{"value":["[","MedicationRequest",": "]},{"s":[{"value":["\"edoxaban code\""]}]},{"value":["]"]}]}]},{"value":["\n    union "]},{"r":"702","s":[{"value":["[","MedicationRequest",": "]},{"s":[{"value":["\"dabigatran etexilate 150 MG Oral Capsule code\""]}]},{"value":["]"]}]}]},{"value":["\n    union "]},{"r":"764","s":[{"value":["[","MedicationRequest",": "]},{"s":[{"value":["\"dabigatran etexilate 75 MG Oral Capsule code\""]}]},{"value":["]"]}]}]},{"value":["\n    union "]},{"r":"826","s":[{"value":["[","MedicationRequest",": "]},{"s":[{"value":["\"dabigatran etexilate 110 MG Oral Capsule code\""]}]},{"value":["]"]}]}]}]}}],"resultTypeSpecifier":{"localId":"840","type":"ListTypeSpecifier","elementType":{"localId":"841","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"expression":{"localId":"833","locator":"54:3-60:78","type":"Union","resultTypeSpecifier":{"localId":"838","type":"ListTypeSpecifier","elementType":{"localId":"839","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"834","type":"ListTypeSpecifier","elementType":{"localId":"835","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"836","type":"ListTypeSpecifier","elementType":{"localId":"837","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"771","locator":"54:3-59:77","type":"Union","resultTypeSpecifier":{"localId":"776","type":"ListTypeSpecifier","elementType":{"localId":"777","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"772","type":"ListTypeSpecifier","elementType":{"localId":"773","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"774","type":"ListTypeSpecifier","elementType":{"localId":"775","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"709","locator":"54:3-58:78","type":"Union","resultTypeSpecifier":{"localId":"714","type":"ListTypeSpecifier","elementType":{"localId":"715","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"710","type":"ListTypeSpecifier","elementType":{"localId":"711","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"712","type":"ListTypeSpecifier","elementType":{"localId":"713","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"647","locator":"54:3-57:46","type":"Union","resultTypeSpecifier":{"localId":"652","type":"ListTypeSpecifier","elementType":{"localId":"653","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"648","type":"ListTypeSpecifier","elementType":{"localId":"649","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"650","type":"ListTypeSpecifier","elementType":{"localId":"651","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"585","locator":"54:3-56:49","type":"Union","resultTypeSpecifier":{"localId":"590","type":"ListTypeSpecifier","elementType":{"localId":"591","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"586","type":"ListTypeSpecifier","elementType":{"localId":"587","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"588","type":"ListTypeSpecifier","elementType":{"localId":"589","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"523","locator":"54:3-55:46","type":"Union","resultTypeSpecifier":{"localId":"528","type":"ListTypeSpecifier","elementType":{"localId":"529","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"524","type":"ListTypeSpecifier","elementType":{"localId":"525","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"526","type":"ListTypeSpecifier","elementType":{"localId":"527","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"461","locator":"54:3-54:38","type":"Union","resultTypeSpecifier":{"localId":"466","type":"ListTypeSpecifier","elementType":{"localId":"467","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"462","type":"ListTypeSpecifier","elementType":{"localId":"463","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"464","type":"ListTypeSpecifier","elementType":{"localId":"465","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"415","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","codeProperty":"medication","codeComparator":"~","type":"Retrieve","codes":{"localId":"425","type":"ToList","signature":[],"operand":{"localId":"414","locator":"54:23-54:37","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"apixaban code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},{"localId":"428","locator":"54:3-54:38","type":"Query","resultTypeSpecifier":{"localId":"459","type":"ListTypeSpecifier","elementType":{"localId":"460","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"source":[{"localId":"429","locator":"54:3-54:38","alias":"MR","expression":{"localId":"426","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}],"let":[],"relationship":[{"localId":"430","locator":"54:3-54:38","alias":"M","type":"With","expression":{"localId":"427","dataType":"{http://hl7.org/fhir}Medication","templateId":"http://hl7.org/fhir/StructureDefinition/Medication","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},"suchThat":{"localId":"456","type":"And","signature":[{"localId":"457","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"458","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"442","type":"Equal","signature":[{"localId":"445","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"446","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"operand":[{"localId":"443","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"444","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"431","path":"id","scope":"M","type":"Property"}]},{"localId":"439","type":"Last","signature":[{"localId":"440","type":"ListTypeSpecifier","elementType":{"localId":"441","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}}],"source":{"localId":"433","type":"Split","signature":[{"localId":"437","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"438","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"stringToSplit":{"localId":"435","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"436","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"432","path":"medication.reference","scope":"MR","type":"Property"}]},"separator":{"localId":"434","valueType":"{urn:hl7-org:elm-types:r1}String","value":"/","type":"Literal"}}}]},{"localId":"448","type":"Equivalent","signature":[{"localId":"454","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"},{"localId":"455","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"449","name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"450","name":"{http://hl7.org/fhir}CodeableConcept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"447","path":"code","scope":"M","type":"Property"}]},{"localId":"452","type":"ToConcept","signature":[{"localId":"453","name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier"}],"operand":{"localId":"414","locator":"54:23-54:37","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"apixaban code","type":"CodeRef"}}]}]}}]}]},{"localId":"516","locator":"55:11-55:46","type":"Union","resultTypeSpecifier":{"localId":"521","type":"ListTypeSpecifier","elementType":{"localId":"522","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"517","type":"ListTypeSpecifier","elementType":{"localId":"518","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"519","type":"ListTypeSpecifier","elementType":{"localId":"520","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"470","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","codeProperty":"medication","codeComparator":"~","type":"Retrieve","codes":{"localId":"480","type":"ToList","signature":[],"operand":{"localId":"469","locator":"55:31-55:45","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"warfarin code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},{"localId":"483","locator":"55:11-55:46","type":"Query","resultTypeSpecifier":{"localId":"514","type":"ListTypeSpecifier","elementType":{"localId":"515","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"source":[{"localId":"484","locator":"55:11-55:46","alias":"MR","expression":{"localId":"481","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}],"let":[],"relationship":[{"localId":"485","locator":"55:11-55:46","alias":"M","type":"With","expression":{"localId":"482","dataType":"{http://hl7.org/fhir}Medication","templateId":"http://hl7.org/fhir/StructureDefinition/Medication","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},"suchThat":{"localId":"511","type":"And","signature":[{"localId":"512","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"513","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"497","type":"Equal","signature":[{"localId":"500","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"501","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"operand":[{"localId":"498","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"499","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"486","path":"id","scope":"M","type":"Property"}]},{"localId":"494","type":"Last","signature":[{"localId":"495","type":"ListTypeSpecifier","elementType":{"localId":"496","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}}],"source":{"localId":"488","type":"Split","signature":[{"localId":"492","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"493","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"stringToSplit":{"localId":"490","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"491","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"487","path":"medication.reference","scope":"MR","type":"Property"}]},"separator":{"localId":"489","valueType":"{urn:hl7-org:elm-types:r1}String","value":"/","type":"Literal"}}}]},{"localId":"503","type":"Equivalent","signature":[{"localId":"509","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"},{"localId":"510","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"504","name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"505","name":"{http://hl7.org/fhir}CodeableConcept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"502","path":"code","scope":"M","type":"Property"}]},{"localId":"507","type":"ToConcept","signature":[{"localId":"508","name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier"}],"operand":{"localId":"469","locator":"55:31-55:45","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"warfarin code","type":"CodeRef"}}]}]}}]}]}]},{"localId":"578","locator":"56:11-56:49","type":"Union","resultTypeSpecifier":{"localId":"583","type":"ListTypeSpecifier","elementType":{"localId":"584","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"579","type":"ListTypeSpecifier","elementType":{"localId":"580","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"581","type":"ListTypeSpecifier","elementType":{"localId":"582","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"532","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","codeProperty":"medication","codeComparator":"~","type":"Retrieve","codes":{"localId":"542","type":"ToList","signature":[],"operand":{"localId":"531","locator":"56:31-56:48","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"rivaroxaban code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},{"localId":"545","locator":"56:11-56:49","type":"Query","resultTypeSpecifier":{"localId":"576","type":"ListTypeSpecifier","elementType":{"localId":"577","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"source":[{"localId":"546","locator":"56:11-56:49","alias":"MR","expression":{"localId":"543","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}],"let":[],"relationship":[{"localId":"547","locator":"56:11-56:49","alias":"M","type":"With","expression":{"localId":"544","dataType":"{http://hl7.org/fhir}Medication","templateId":"http://hl7.org/fhir/StructureDefinition/Medication","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},"suchThat":{"localId":"573","type":"And","signature":[{"localId":"574","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"575","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"559","type":"Equal","signature":[{"localId":"562","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"563","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"operand":[{"localId":"560","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"561","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"548","path":"id","scope":"M","type":"Property"}]},{"localId":"556","type":"Last","signature":[{"localId":"557","type":"ListTypeSpecifier","elementType":{"localId":"558","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}}],"source":{"localId":"550","type":"Split","signature":[{"localId":"554","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"555","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"stringToSplit":{"localId":"552","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"553","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"549","path":"medication.reference","scope":"MR","type":"Property"}]},"separator":{"localId":"551","valueType":"{urn:hl7-org:elm-types:r1}String","value":"/","type":"Literal"}}}]},{"localId":"565","type":"Equivalent","signature":[{"localId":"571","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"},{"localId":"572","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"566","name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"567","name":"{http://hl7.org/fhir}CodeableConcept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"564","path":"code","scope":"M","type":"Property"}]},{"localId":"569","type":"ToConcept","signature":[{"localId":"570","name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier"}],"operand":{"localId":"531","locator":"56:31-56:48","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"rivaroxaban code","type":"CodeRef"}}]}]}}]}]}]},{"localId":"640","locator":"57:11-57:46","type":"Union","resultTypeSpecifier":{"localId":"645","type":"ListTypeSpecifier","elementType":{"localId":"646","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"641","type":"ListTypeSpecifier","elementType":{"localId":"642","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"643","type":"ListTypeSpecifier","elementType":{"localId":"644","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"594","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","codeProperty":"medication","codeComparator":"~","type":"Retrieve","codes":{"localId":"604","type":"ToList","signature":[],"operand":{"localId":"593","locator":"57:31-57:45","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"edoxaban code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},{"localId":"607","locator":"57:11-57:46","type":"Query","resultTypeSpecifier":{"localId":"638","type":"ListTypeSpecifier","elementType":{"localId":"639","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"source":[{"localId":"608","locator":"57:11-57:46","alias":"MR","expression":{"localId":"605","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}],"let":[],"relationship":[{"localId":"609","locator":"57:11-57:46","alias":"M","type":"With","expression":{"localId":"606","dataType":"{http://hl7.org/fhir}Medication","templateId":"http://hl7.org/fhir/StructureDefinition/Medication","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},"suchThat":{"localId":"635","type":"And","signature":[{"localId":"636","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"637","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"621","type":"Equal","signature":[{"localId":"624","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"625","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"operand":[{"localId":"622","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"623","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"610","path":"id","scope":"M","type":"Property"}]},{"localId":"618","type":"Last","signature":[{"localId":"619","type":"ListTypeSpecifier","elementType":{"localId":"620","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}}],"source":{"localId":"612","type":"Split","signature":[{"localId":"616","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"617","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"stringToSplit":{"localId":"614","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"615","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"611","path":"medication.reference","scope":"MR","type":"Property"}]},"separator":{"localId":"613","valueType":"{urn:hl7-org:elm-types:r1}String","value":"/","type":"Literal"}}}]},{"localId":"627","type":"Equivalent","signature":[{"localId":"633","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"},{"localId":"634","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"628","name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"629","name":"{http://hl7.org/fhir}CodeableConcept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"626","path":"code","scope":"M","type":"Property"}]},{"localId":"631","type":"ToConcept","signature":[{"localId":"632","name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier"}],"operand":{"localId":"593","locator":"57:31-57:45","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"edoxaban code","type":"CodeRef"}}]}]}}]}]}]},{"localId":"702","locator":"58:11-58:78","type":"Union","resultTypeSpecifier":{"localId":"707","type":"ListTypeSpecifier","elementType":{"localId":"708","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"703","type":"ListTypeSpecifier","elementType":{"localId":"704","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"705","type":"ListTypeSpecifier","elementType":{"localId":"706","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"656","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","codeProperty":"medication","codeComparator":"~","type":"Retrieve","codes":{"localId":"666","type":"ToList","signature":[],"operand":{"localId":"655","locator":"58:31-58:77","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"dabigatran etexilate 150 MG Oral Capsule code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},{"localId":"669","locator":"58:11-58:78","type":"Query","resultTypeSpecifier":{"localId":"700","type":"ListTypeSpecifier","elementType":{"localId":"701","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"source":[{"localId":"670","locator":"58:11-58:78","alias":"MR","expression":{"localId":"667","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}],"let":[],"relationship":[{"localId":"671","locator":"58:11-58:78","alias":"M","type":"With","expression":{"localId":"668","dataType":"{http://hl7.org/fhir}Medication","templateId":"http://hl7.org/fhir/StructureDefinition/Medication","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},"suchThat":{"localId":"697","type":"And","signature":[{"localId":"698","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"699","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"683","type":"Equal","signature":[{"localId":"686","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"687","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"operand":[{"localId":"684","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"685","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"672","path":"id","scope":"M","type":"Property"}]},{"localId":"680","type":"Last","signature":[{"localId":"681","type":"ListTypeSpecifier","elementType":{"localId":"682","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}}],"source":{"localId":"674","type":"Split","signature":[{"localId":"678","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"679","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"stringToSplit":{"localId":"676","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"677","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"673","path":"medication.reference","scope":"MR","type":"Property"}]},"separator":{"localId":"675","valueType":"{urn:hl7-org:elm-types:r1}String","value":"/","type":"Literal"}}}]},{"localId":"689","type":"Equivalent","signature":[{"localId":"695","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"},{"localId":"696","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"690","name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"691","name":"{http://hl7.org/fhir}CodeableConcept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"688","path":"code","scope":"M","type":"Property"}]},{"localId":"693","type":"ToConcept","signature":[{"localId":"694","name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier"}],"operand":{"localId":"655","locator":"58:31-58:77","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"dabigatran etexilate 150 MG Oral Capsule code","type":"CodeRef"}}]}]}}]}]}]},{"localId":"764","locator":"59:11-59:77","type":"Union","resultTypeSpecifier":{"localId":"769","type":"ListTypeSpecifier","elementType":{"localId":"770","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"765","type":"ListTypeSpecifier","elementType":{"localId":"766","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"767","type":"ListTypeSpecifier","elementType":{"localId":"768","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"718","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","codeProperty":"medication","codeComparator":"~","type":"Retrieve","codes":{"localId":"728","type":"ToList","signature":[],"operand":{"localId":"717","locator":"59:31-59:76","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"dabigatran etexilate 75 MG Oral Capsule code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},{"localId":"731","locator":"59:11-59:77","type":"Query","resultTypeSpecifier":{"localId":"762","type":"ListTypeSpecifier","elementType":{"localId":"763","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"source":[{"localId":"732","locator":"59:11-59:77","alias":"MR","expression":{"localId":"729","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}],"let":[],"relationship":[{"localId":"733","locator":"59:11-59:77","alias":"M","type":"With","expression":{"localId":"730","dataType":"{http://hl7.org/fhir}Medication","templateId":"http://hl7.org/fhir/StructureDefinition/Medication","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},"suchThat":{"localId":"759","type":"And","signature":[{"localId":"760","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"761","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"745","type":"Equal","signature":[{"localId":"748","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"749","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"operand":[{"localId":"746","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"747","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"734","path":"id","scope":"M","type":"Property"}]},{"localId":"742","type":"Last","signature":[{"localId":"743","type":"ListTypeSpecifier","elementType":{"localId":"744","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}}],"source":{"localId":"736","type":"Split","signature":[{"localId":"740","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"741","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"stringToSplit":{"localId":"738","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"739","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"735","path":"medication.reference","scope":"MR","type":"Property"}]},"separator":{"localId":"737","valueType":"{urn:hl7-org:elm-types:r1}String","value":"/","type":"Literal"}}}]},{"localId":"751","type":"Equivalent","signature":[{"localId":"757","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"},{"localId":"758","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"752","name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"753","name":"{http://hl7.org/fhir}CodeableConcept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"750","path":"code","scope":"M","type":"Property"}]},{"localId":"755","type":"ToConcept","signature":[{"localId":"756","name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier"}],"operand":{"localId":"717","locator":"59:31-59:76","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"dabigatran etexilate 75 MG Oral Capsule code","type":"CodeRef"}}]}]}}]}]}]},{"localId":"826","locator":"60:11-60:78","type":"Union","resultTypeSpecifier":{"localId":"831","type":"ListTypeSpecifier","elementType":{"localId":"832","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"827","type":"ListTypeSpecifier","elementType":{"localId":"828","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},{"localId":"829","type":"ListTypeSpecifier","elementType":{"localId":"830","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"780","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","codeProperty":"medication","codeComparator":"~","type":"Retrieve","codes":{"localId":"790","type":"ToList","signature":[],"operand":{"localId":"779","locator":"60:31-60:77","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"dabigatran etexilate 110 MG Oral Capsule code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},{"localId":"793","locator":"60:11-60:78","type":"Query","resultTypeSpecifier":{"localId":"824","type":"ListTypeSpecifier","elementType":{"localId":"825","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"source":[{"localId":"794","locator":"60:11-60:78","alias":"MR","expression":{"localId":"791","dataType":"{http://hl7.org/fhir}MedicationRequest","templateId":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}],"let":[],"relationship":[{"localId":"795","locator":"60:11-60:78","alias":"M","type":"With","expression":{"localId":"792","dataType":"{http://hl7.org/fhir}Medication","templateId":"http://hl7.org/fhir/StructureDefinition/Medication","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},"suchThat":{"localId":"821","type":"And","signature":[{"localId":"822","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"823","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"807","type":"Equal","signature":[{"localId":"810","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"811","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"operand":[{"localId":"808","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"809","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"796","path":"id","scope":"M","type":"Property"}]},{"localId":"804","type":"Last","signature":[{"localId":"805","type":"ListTypeSpecifier","elementType":{"localId":"806","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}}],"source":{"localId":"798","type":"Split","signature":[{"localId":"802","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"803","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"stringToSplit":{"localId":"800","name":"ToString","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"801","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"}],"operand":[{"localId":"797","path":"medication.reference","scope":"MR","type":"Property"}]},"separator":{"localId":"799","valueType":"{urn:hl7-org:elm-types:r1}String","value":"/","type":"Literal"}}}]},{"localId":"813","type":"Equivalent","signature":[{"localId":"819","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"},{"localId":"820","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"814","name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"815","name":"{http://hl7.org/fhir}CodeableConcept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"812","path":"code","scope":"M","type":"Property"}]},{"localId":"817","type":"ToConcept","signature":[{"localId":"818","name":"{urn:hl7-org:elm-types:r1}Code","type":"NamedTypeSpecifier"}],"operand":{"localId":"779","locator":"60:31-60:77","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"dabigatran etexilate 110 MG Oral Capsule code","type":"CodeRef"}}]}]}}]}]}]}},{"localId":"843","locator":"62:1-64:50","name":"generic_allergyIntolerance_concepts","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"843","s":[{"value":["","define ","\"generic_allergyIntolerance_concepts\"",":\n  "]},{"r":"872","s":[{"r":"846","s":[{"value":["[","AllergyIntolerance",": "]},{"s":[{"value":["\"aspirin code\""]}]},{"value":["]"]}]},{"value":["\n    union "]},{"r":"860","s":[{"value":["[","AllergyIntolerance",": "]},{"s":[{"value":["\"clopidogrel code\""]}]},{"value":["]"]}]}]}]}}],"resultTypeSpecifier":{"localId":"879","type":"ListTypeSpecifier","elementType":{"localId":"880","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}},"expression":{"localId":"872","locator":"63:3-64:50","type":"Union","resultTypeSpecifier":{"localId":"877","type":"ListTypeSpecifier","elementType":{"localId":"878","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}},"signature":[{"localId":"873","type":"ListTypeSpecifier","elementType":{"localId":"874","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}},{"localId":"875","type":"ListTypeSpecifier","elementType":{"localId":"876","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"846","locator":"63:3-63:38","dataType":"{http://hl7.org/fhir}AllergyIntolerance","templateId":"http://hl7.org/fhir/StructureDefinition/AllergyIntolerance","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"856","type":"ListTypeSpecifier","elementType":{"localId":"857","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}},"codes":{"localId":"855","type":"ToList","signature":[],"operand":{"localId":"845","locator":"63:24-63:37","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"aspirin code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]},{"localId":"860","locator":"64:11-64:50","dataType":"{http://hl7.org/fhir}AllergyIntolerance","templateId":"http://hl7.org/fhir/StructureDefinition/AllergyIntolerance","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"870","type":"ListTypeSpecifier","elementType":{"localId":"871","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}},"codes":{"localId":"869","type":"ToList","signature":[],"operand":{"localId":"859","locator":"64:32-64:49","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"clopidogrel code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}},{"localId":"882","locator":"66:1-67:20","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Is 18+ Years Old","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"882","s":[{"value":["","define ","\"Is 18+ Years Old\"",":\n  "]},{"r":"883","s":[{"r":"888","s":[{"value":["AgeInYears","()"]}]},{"r":"890","value":[" ",">="," ","18"]}]}]}}],"expression":{"localId":"883","locator":"67:3-67:20","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"GreaterOrEqual","signature":[{"localId":"891","name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier"},{"localId":"892","name":"{urn:hl7-org:elm-types:r1}Integer","type":"NamedTypeSpecifier"}],"operand":[{"localId":"888","locator":"67:3-67:14","resultTypeName":"{urn:hl7-org:elm-types:r1}Integer","precision":"Year","type":"CalculateAge","signature":[{"localId":"889","name":"{urn:hl7-org:elm-types:r1}Date","type":"NamedTypeSpecifier"}],"operand":{"localId":"887","path":"birthDate.value","type":"Property","source":{"localId":"886","name":"Patient","type":"ExpressionRef"}}},{"localId":"890","locator":"67:19-67:20","resultTypeName":"{urn:hl7-org:elm-types:r1}Integer","valueType":"{urn:hl7-org:elm-types:r1}Integer","value":"18","type":"Literal"}]}},{"localId":"899","locator":"136:1-138:54","name":"Confirmed","context":"Patient","accessLevel":"Public","type":"FunctionDef","annotation":[{"type":"Annotation","s":{"r":"899","s":[{"value":["","define function Confirmed(CondList List<Condition>):\n  "]},{"r":"1540","s":[{"r":"1540","s":[{"s":[{"r":"1526","s":[{"r":"1527","s":[{"s":[{"value":["CondList"]}]}]},{"value":[" ","C"]}]}]},{"value":["\n    "]},{"r":"1532","s":[{"value":["where "]},{"r":"1532","s":[{"r":"1534","s":[{"r":"1533","s":[{"value":["C"]}]},{"value":["."]},{"r":"1534","s":[{"value":["verificationStatus"]}]}]},{"value":[" ","~"," "]},{"r":"1535","s":[{"value":["\"Condition Confirmed\""]}]}]}]}]}]}]}}],"resultTypeSpecifier":{"localId":"1545","type":"ListTypeSpecifier","elementType":{"localId":"1546","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"expression":{"localId":"1540","locator":"137:3-138:54","type":"Query","resultTypeSpecifier":{"localId":"1543","type":"ListTypeSpecifier","elementType":{"localId":"1544","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"source":[{"localId":"1526","locator":"137:3-137:12","alias":"C","resultTypeSpecifier":{"localId":"1530","type":"ListTypeSpecifier","elementType":{"localId":"1531","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"expression":{"localId":"1527","locator":"137:3-137:10","name":"CondList","type":"OperandRef","resultTypeSpecifier":{"localId":"1528","type":"ListTypeSpecifier","elementType":{"localId":"1529","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}}}],"let":[],"relationship":[],"where":{"localId":"1532","locator":"138:5-138:54","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Equivalent","signature":[{"localId":"1538","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"},{"localId":"1539","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1536","name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"1537","name":"{http://hl7.org/fhir}CodeableConcept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1534","locator":"138:11-138:30","resultTypeName":"{http://hl7.org/fhir}CodeableConcept","path":"verificationStatus","scope":"C","type":"Property"}]},{"localId":"1535","locator":"138:34-138:54","resultTypeName":"{urn:hl7-org:elm-types:r1}Concept","name":"Condition Confirmed","type":"ConceptRef"}]}},"operand":[{"localId":"904","name":"CondList","operandTypeSpecifier":{"localId":"900","locator":"136:36-136:50","type":"ListTypeSpecifier","resultTypeSpecifier":{"localId":"902","type":"ListTypeSpecifier","elementType":{"localId":"903","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"elementType":{"localId":"901","locator":"136:41-136:49","resultTypeName":"{http://hl7.org/fhir}Condition","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}}]},{"localId":"894","locator":"72:1-73:52","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Has TIA or Minor Ischemic Stroke","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"894","s":[{"value":["// Has TIA or Minor Ischemic Stroke\n\n\n","define ","\"Has TIA or Minor Ischemic Stroke\"",":\n  "]},{"r":"895","s":[{"value":["exists "]},{"r":"905","s":[{"value":["( "]},{"r":"905","s":[{"value":["Confirmed","("]},{"r":"896","s":[{"value":["\"generic_condition_concepts\""]}]},{"value":[")"]}]},{"value":[" )"]}]}]}]}}],"expression":{"localId":"895","locator":"73:3-73:52","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Exists","signature":[{"localId":"931","type":"ListTypeSpecifier","elementType":{"localId":"932","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":{"localId":"905","locator":"73:10-73:52","name":"Confirmed","type":"FunctionRef","resultTypeSpecifier":{"localId":"929","type":"ListTypeSpecifier","elementType":{"localId":"930","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"signature":[{"localId":"906","type":"ListTypeSpecifier","elementType":{"localId":"907","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"896","locator":"73:22-73:49","name":"generic_condition_concepts","type":"ExpressionRef","resultTypeSpecifier":{"localId":"897","type":"ListTypeSpecifier","elementType":{"localId":"898","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}}]}}},{"localId":"950","locator":"124:1-126:63","name":"Verified","context":"Patient","accessLevel":"Public","type":"FunctionDef","annotation":[{"type":"Annotation","s":{"r":"950","s":[{"value":["","define function Verified(ObsList List<Observation>):\n  "]},{"r":"1369","s":[{"r":"1369","s":[{"s":[{"r":"1350","s":[{"r":"1351","s":[{"s":[{"value":["ObsList"]}]}]},{"value":[" ","O"]}]}]},{"value":["\n    "]},{"r":"1365","s":[{"value":["where "]},{"r":"1365","s":[{"r":"1358","s":[{"r":"1357","s":[{"r":"1356","s":[{"value":["O"]}]},{"value":["."]},{"r":"1357","s":[{"value":["status"]}]}]},{"value":["."]},{"r":"1358","s":[{"value":["value"]}]}]},{"value":[" in "]},{"r":"1359","s":[{"value":["{ "]},{"r":"1360","s":[{"value":["'final'"]}]},{"value":[", "]},{"r":"1361","s":[{"value":["'corrected'"]}]},{"value":[", "]},{"r":"1362","s":[{"value":["'amended'"]}]},{"value":[" }"]}]}]}]}]}]}]}}],"resultTypeSpecifier":{"localId":"1374","type":"ListTypeSpecifier","elementType":{"localId":"1375","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"expression":{"localId":"1369","locator":"125:3-126:63","type":"Query","resultTypeSpecifier":{"localId":"1372","type":"ListTypeSpecifier","elementType":{"localId":"1373","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"source":[{"localId":"1350","locator":"125:3-125:11","alias":"O","resultTypeSpecifier":{"localId":"1354","type":"ListTypeSpecifier","elementType":{"localId":"1355","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"expression":{"localId":"1351","locator":"125:3-125:9","name":"ObsList","type":"OperandRef","resultTypeSpecifier":{"localId":"1352","type":"ListTypeSpecifier","elementType":{"localId":"1353","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}}}],"let":[],"relationship":[],"where":{"localId":"1365","locator":"126:5-126:63","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"In","signature":[{"localId":"1366","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"1367","type":"ListTypeSpecifier","elementType":{"localId":"1368","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"1358","locator":"126:11-126:24","resultTypeName":"{urn:hl7-org:elm-types:r1}String","path":"value","type":"Property","source":{"localId":"1357","locator":"126:11-126:18","resultTypeName":"{http://hl7.org/fhir}ObservationStatus","path":"status","scope":"O","type":"Property"}},{"localId":"1359","locator":"126:29-126:63","type":"List","resultTypeSpecifier":{"localId":"1363","type":"ListTypeSpecifier","elementType":{"localId":"1364","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}},"element":[{"localId":"1360","locator":"126:31-126:37","resultTypeName":"{urn:hl7-org:elm-types:r1}String","valueType":"{urn:hl7-org:elm-types:r1}String","value":"final","type":"Literal"},{"localId":"1361","locator":"126:40-126:50","resultTypeName":"{urn:hl7-org:elm-types:r1}String","valueType":"{urn:hl7-org:elm-types:r1}String","value":"corrected","type":"Literal"},{"localId":"1362","locator":"126:53-126:61","resultTypeName":"{urn:hl7-org:elm-types:r1}String","valueType":"{urn:hl7-org:elm-types:r1}String","value":"amended","type":"Literal"}]}]}},"operand":[{"localId":"955","name":"ObsList","operandTypeSpecifier":{"localId":"951","locator":"124:34-124:50","type":"ListTypeSpecifier","resultTypeSpecifier":{"localId":"953","type":"ListTypeSpecifier","elementType":{"localId":"954","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"elementType":{"localId":"952","locator":"124:39-124:49","resultTypeName":"{http://hl7.org/fhir}Observation","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}}]},{"localId":"985","locator":"128:1-131:3","resultTypeName":"{http://hl7.org/fhir}Observation","name":"MostRecent","context":"Patient","accessLevel":"Public","type":"FunctionDef","annotation":[{"type":"Annotation","s":{"r":"985","s":[{"value":["","define function MostRecent(ObsList List<Observation>):\n  "]},{"r":"1492","s":[{"r":"1492","s":[{"value":["Last","("]},{"r":"1485","s":[{"s":[{"r":"1376","s":[{"r":"1377","s":[{"s":[{"value":["ObsList"]}]}]},{"value":[" ","O"]}]}]},{"value":["\n      "]},{"r":"1479","s":[{"value":["sort by "]},{"r":"1478","s":[{"r":"1472","s":[{"value":["Coalesce","("]},{"r":"1433","s":[{"r":"1425","s":[{"value":["("]},{"r":"1425","s":[{"r":"1426","s":[{"value":["effective"]}]},{"value":[" as "]},{"r":"1432","s":[{"value":["FHIR",".","dateTime"]}]}]},{"value":[")"]}]},{"value":["."]},{"r":"1433","s":[{"value":["value"]}]}]},{"value":[","]},{"r":"1442","s":[{"r":"1434","s":[{"value":["("]},{"r":"1434","s":[{"r":"1435","s":[{"value":["effective"]}]},{"value":[" as "]},{"r":"1441","s":[{"value":["FHIR",".","instant"]}]}]},{"value":[")"]}]},{"value":["."]},{"r":"1442","s":[{"value":["value"]}]}]},{"value":[","]},{"r":"1452","s":[{"r":"1451","s":[{"r":"1443","s":[{"value":["("]},{"r":"1443","s":[{"r":"1444","s":[{"value":["effective"]}]},{"value":[" as "]},{"r":"1450","s":[{"value":["FHIR",".","Period"]}]}]},{"value":[")"]}]},{"value":["."]},{"r":"1451","s":[{"value":["\"end\""]}]}]},{"value":["."]},{"r":"1452","s":[{"value":["value"]}]}]},{"value":[","]},{"r":"1462","s":[{"r":"1461","s":[{"r":"1453","s":[{"value":["("]},{"r":"1453","s":[{"r":"1454","s":[{"value":["effective"]}]},{"value":[" as "]},{"r":"1460","s":[{"value":["FHIR",".","Period"]}]}]},{"value":[")"]}]},{"value":["."]},{"r":"1461","s":[{"value":["\"start\""]}]}]},{"value":["."]},{"r":"1462","s":[{"value":["value"]}]}]},{"value":[", "]},{"r":"1464","s":[{"r":"1463","s":[{"value":["issued"]}]},{"value":["."]},{"r":"1464","s":[{"value":["value"]}]}]},{"value":[")"]}]}]}]}]},{"value":["\n  )"]}]}]}]}}],"expression":{"localId":"1492","locator":"129:3-131:3","resultTypeName":"{http://hl7.org/fhir}Observation","type":"Last","signature":[{"localId":"1493","type":"ListTypeSpecifier","elementType":{"localId":"1494","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}],"source":{"localId":"1485","locator":"129:8-130:186","type":"Query","resultTypeSpecifier":{"localId":"1486","type":"ListTypeSpecifier","elementType":{"localId":"1487","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"source":[{"localId":"1376","locator":"129:8-129:16","alias":"O","resultTypeSpecifier":{"localId":"1380","type":"ListTypeSpecifier","elementType":{"localId":"1381","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"expression":{"localId":"1377","locator":"129:8-129:14","name":"ObsList","type":"OperandRef","resultTypeSpecifier":{"localId":"1378","type":"ListTypeSpecifier","elementType":{"localId":"1379","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}}}],"let":[],"relationship":[],"sort":{"localId":"1479","locator":"130:7-130:186","by":[{"localId":"1478","locator":"130:15-130:186","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","direction":"asc","type":"ByExpression","expression":{"localId":"1472","locator":"130:15-130:186","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","type":"Coalesce","signature":[{"localId":"1473","name":"{urn:hl7-org:elm-types:r1}DateTime","type":"NamedTypeSpecifier"},{"localId":"1474","name":"{urn:hl7-org:elm-types:r1}DateTime","type":"NamedTypeSpecifier"},{"localId":"1475","name":"{urn:hl7-org:elm-types:r1}DateTime","type":"NamedTypeSpecifier"},{"localId":"1476","name":"{urn:hl7-org:elm-types:r1}DateTime","type":"NamedTypeSpecifier"},{"localId":"1477","name":"{urn:hl7-org:elm-types:r1}DateTime","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1433","locator":"130:24-130:57","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","path":"value","type":"Property","source":{"localId":"1425","locator":"130:24-130:51","resultTypeName":"{http://hl7.org/fhir}dateTime","strict":false,"type":"As","signature":[],"operand":{"localId":"1426","locator":"130:25-130:33","name":"effective","type":"IdentifierRef","resultTypeSpecifier":{"localId":"1427","type":"ChoiceTypeSpecifier","choice":[{"localId":"1428","name":"{http://hl7.org/fhir}dateTime","type":"NamedTypeSpecifier"},{"localId":"1429","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"},{"localId":"1430","name":"{http://hl7.org/fhir}Timing","type":"NamedTypeSpecifier"},{"localId":"1431","name":"{http://hl7.org/fhir}instant","type":"NamedTypeSpecifier"}]}},"asTypeSpecifier":{"localId":"1432","locator":"130:38-130:50","resultTypeName":"{http://hl7.org/fhir}dateTime","name":"{http://hl7.org/fhir}dateTime","type":"NamedTypeSpecifier"}}},{"localId":"1442","locator":"130:59-130:91","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","path":"value","type":"Property","source":{"localId":"1434","locator":"130:59-130:85","resultTypeName":"{http://hl7.org/fhir}instant","strict":false,"type":"As","signature":[],"operand":{"localId":"1435","locator":"130:60-130:68","name":"effective","type":"IdentifierRef","resultTypeSpecifier":{"localId":"1436","type":"ChoiceTypeSpecifier","choice":[{"localId":"1437","name":"{http://hl7.org/fhir}dateTime","type":"NamedTypeSpecifier"},{"localId":"1438","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"},{"localId":"1439","name":"{http://hl7.org/fhir}Timing","type":"NamedTypeSpecifier"},{"localId":"1440","name":"{http://hl7.org/fhir}instant","type":"NamedTypeSpecifier"}]}},"asTypeSpecifier":{"localId":"1441","locator":"130:73-130:84","resultTypeName":"{http://hl7.org/fhir}instant","name":"{http://hl7.org/fhir}instant","type":"NamedTypeSpecifier"}}},{"localId":"1452","locator":"130:93-130:130","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","path":"value","type":"Property","source":{"localId":"1451","locator":"130:93-130:124","resultTypeName":"{http://hl7.org/fhir}dateTime","path":"end","type":"Property","source":{"localId":"1443","locator":"130:93-130:118","resultTypeName":"{http://hl7.org/fhir}Period","strict":false,"type":"As","signature":[],"operand":{"localId":"1444","locator":"130:94-130:102","name":"effective","type":"IdentifierRef","resultTypeSpecifier":{"localId":"1445","type":"ChoiceTypeSpecifier","choice":[{"localId":"1446","name":"{http://hl7.org/fhir}dateTime","type":"NamedTypeSpecifier"},{"localId":"1447","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"},{"localId":"1448","name":"{http://hl7.org/fhir}Timing","type":"NamedTypeSpecifier"},{"localId":"1449","name":"{http://hl7.org/fhir}instant","type":"NamedTypeSpecifier"}]}},"asTypeSpecifier":{"localId":"1450","locator":"130:107-130:117","resultTypeName":"{http://hl7.org/fhir}Period","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"}}}},{"localId":"1462","locator":"130:132-130:171","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","path":"value","type":"Property","source":{"localId":"1461","locator":"130:132-130:165","resultTypeName":"{http://hl7.org/fhir}dateTime","path":"start","type":"Property","source":{"localId":"1453","locator":"130:132-130:157","resultTypeName":"{http://hl7.org/fhir}Period","strict":false,"type":"As","signature":[],"operand":{"localId":"1454","locator":"130:133-130:141","name":"effective","type":"IdentifierRef","resultTypeSpecifier":{"localId":"1455","type":"ChoiceTypeSpecifier","choice":[{"localId":"1456","name":"{http://hl7.org/fhir}dateTime","type":"NamedTypeSpecifier"},{"localId":"1457","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"},{"localId":"1458","name":"{http://hl7.org/fhir}Timing","type":"NamedTypeSpecifier"},{"localId":"1459","name":"{http://hl7.org/fhir}instant","type":"NamedTypeSpecifier"}]}},"asTypeSpecifier":{"localId":"1460","locator":"130:146-130:156","resultTypeName":"{http://hl7.org/fhir}Period","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"}}}},{"localId":"1464","locator":"130:174-130:185","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","path":"value","type":"Property","source":{"localId":"1463","locator":"130:174-130:179","resultTypeName":"{http://hl7.org/fhir}instant","name":"issued","type":"IdentifierRef"}}]}}]}}},"operand":[{"localId":"990","name":"ObsList","operandTypeSpecifier":{"localId":"986","locator":"128:36-128:52","type":"ListTypeSpecifier","resultTypeSpecifier":{"localId":"988","type":"ListTypeSpecifier","elementType":{"localId":"989","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"elementType":{"localId":"987","locator":"128:41-128:51","resultTypeName":"{http://hl7.org/fhir}Observation","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}}]},{"localId":"1113","locator":"133:1-134:55","resultTypeName":"{urn:hl7-org:elm-types:r1}Quantity","name":"QuantityValue","context":"Patient","accessLevel":"Public","type":"FunctionDef","annotation":[{"type":"Annotation","s":{"r":"1113","s":[{"value":["","define function QuantityValue(Obs Observation):\n  "]},{"r":"1524","s":[{"r":"1524","s":[{"r":"1495","s":[{"value":["FHIRHelpers"]}]},{"value":["."]},{"r":"1524","s":[{"value":["ToQuantity"," ( "]},{"r":"1496","s":[{"r":"1498","s":[{"r":"1497","s":[{"value":["Obs"]}]},{"value":["."]},{"r":"1498","s":[{"value":["value"]}]}]},{"value":[" as "]},{"r":"1523","s":[{"value":["FHIR",".","Quantity"]}]}]},{"value":[" )"]}]}]}]}]}}],"expression":{"localId":"1524","locator":"134:3-134:55","resultTypeName":"{urn:hl7-org:elm-types:r1}Quantity","name":"ToQuantity","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"1525","name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1496","locator":"134:28-134:53","resultTypeName":"{http://hl7.org/fhir}Quantity","strict":false,"type":"As","signature":[],"operand":{"localId":"1498","locator":"134:28-134:36","path":"value","type":"Property","resultTypeSpecifier":{"localId":"1511","type":"ChoiceTypeSpecifier","choice":[{"localId":"1512","name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier"},{"localId":"1513","name":"{http://hl7.org/fhir}CodeableConcept","type":"NamedTypeSpecifier"},{"localId":"1514","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"},{"localId":"1515","name":"{http://hl7.org/fhir}boolean","type":"NamedTypeSpecifier"},{"localId":"1516","name":"{http://hl7.org/fhir}integer","type":"NamedTypeSpecifier"},{"localId":"1517","name":"{http://hl7.org/fhir}Range","type":"NamedTypeSpecifier"},{"localId":"1518","name":"{http://hl7.org/fhir}Ratio","type":"NamedTypeSpecifier"},{"localId":"1519","name":"{http://hl7.org/fhir}SampledData","type":"NamedTypeSpecifier"},{"localId":"1520","name":"{http://hl7.org/fhir}time","type":"NamedTypeSpecifier"},{"localId":"1521","name":"{http://hl7.org/fhir}dateTime","type":"NamedTypeSpecifier"},{"localId":"1522","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"}]},"source":{"localId":"1497","locator":"134:28-134:30","resultTypeName":"{http://hl7.org/fhir}Observation","name":"Obs","type":"OperandRef"}},"asTypeSpecifier":{"localId":"1523","locator":"134:41-134:53","resultTypeName":"{http://hl7.org/fhir}Quantity","name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier"}}]},"operand":[{"localId":"1115","name":"Obs","operandTypeSpecifier":{"localId":"1114","locator":"133:35-133:45","resultTypeName":"{http://hl7.org/fhir}Observation","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}]},{"localId":"934","locator":"75:1-76:99","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"NIHSS Score Is 3 or Less","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"934","s":[{"value":["","define ","\"NIHSS Score Is 3 or Less\"",":\n  "]},{"r":"935","s":[{"r":"1116","s":[{"value":["QuantityValue","("]},{"r":"991","s":[{"value":["MostRecent","("]},{"r":"956","s":[{"value":["Verified","("]},{"r":"938","s":[{"value":["[","Observation",": "]},{"s":[{"value":["\"Total score [NIH Stroke Scale] code\""]}]},{"value":["]"]}]},{"value":[")"]}]},{"value":[")"]}]},{"value":[")"]}]},{"value":[" ","<="," "]},{"r":"1149","s":[{"value":["3 ","''"]}]}]}]}}],"expression":{"localId":"935","locator":"76:3-76:99","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"LessOrEqual","signature":[{"localId":"1150","name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier"},{"localId":"1151","name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1116","locator":"76:3-76:91","resultTypeName":"{urn:hl7-org:elm-types:r1}Quantity","name":"QuantityValue","type":"FunctionRef","signature":[{"localId":"1117","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}],"operand":[{"localId":"991","locator":"76:17-76:90","resultTypeName":"{http://hl7.org/fhir}Observation","name":"MostRecent","type":"FunctionRef","signature":[{"localId":"992","type":"ListTypeSpecifier","elementType":{"localId":"993","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"956","locator":"76:28-76:89","name":"Verified","type":"FunctionRef","resultTypeSpecifier":{"localId":"983","type":"ListTypeSpecifier","elementType":{"localId":"984","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"signature":[{"localId":"957","type":"ListTypeSpecifier","elementType":{"localId":"958","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"938","locator":"76:37-76:88","dataType":"{http://hl7.org/fhir}Observation","templateId":"http://hl7.org/fhir/StructureDefinition/Observation","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"948","type":"ListTypeSpecifier","elementType":{"localId":"949","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"codes":{"localId":"947","type":"ToList","signature":[],"operand":{"localId":"937","locator":"76:51-76:87","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Total score [NIH Stroke Scale] code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}]}]},{"localId":"1149","locator":"76:96-76:99","resultTypeName":"{urn:hl7-org:elm-types:r1}Quantity","value":3,"unit":"","type":"Quantity"}]}},{"localId":"1153","locator":"78:1-79:54","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Has Intracranial Hemorrhage","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"1153","s":[{"value":["","define ","\"Has Intracranial Hemorrhage\"",":\n  "]},{"r":"1154","s":[{"value":["exists "]},{"r":"1158","s":[{"value":["( "]},{"r":"1158","s":[{"value":["Confirmed","("]},{"r":"1155","s":[{"value":["\"generic_condition_concepts_1\""]}]},{"value":[")"]}]},{"value":[" )"]}]}]}]}}],"expression":{"localId":"1154","locator":"79:3-79:54","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Exists","signature":[{"localId":"1165","type":"ListTypeSpecifier","elementType":{"localId":"1166","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":{"localId":"1158","locator":"79:10-79:54","name":"Confirmed","type":"FunctionRef","resultTypeSpecifier":{"localId":"1163","type":"ListTypeSpecifier","elementType":{"localId":"1164","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"signature":[{"localId":"1159","type":"ListTypeSpecifier","elementType":{"localId":"1160","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"1155","locator":"79:22-79:51","name":"generic_condition_concepts_1","type":"ExpressionRef","resultTypeSpecifier":{"localId":"1156","type":"ListTypeSpecifier","elementType":{"localId":"1157","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}}]}}},{"localId":"1168","locator":"81:1-82:98","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"NIHSS Score Greater Than 3","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"1168","s":[{"value":["","define ","\"NIHSS Score Greater Than 3\"",":\n  "]},{"r":"1169","s":[{"r":"1192","s":[{"value":["QuantityValue","("]},{"r":"1189","s":[{"value":["MostRecent","("]},{"r":"1184","s":[{"value":["Verified","("]},{"r":"1172","s":[{"value":["[","Observation",": "]},{"s":[{"value":["\"Total score [NIH Stroke Scale] code\""]}]},{"value":["]"]}]},{"value":[")"]}]},{"value":[")"]}]},{"value":[")"]}]},{"value":[" ",">"," "]},{"r":"1194","s":[{"value":["3 ","''"]}]}]}]}}],"expression":{"localId":"1169","locator":"82:3-82:98","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Greater","signature":[{"localId":"1195","name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier"},{"localId":"1196","name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1192","locator":"82:3-82:91","resultTypeName":"{urn:hl7-org:elm-types:r1}Quantity","name":"QuantityValue","type":"FunctionRef","signature":[{"localId":"1193","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1189","locator":"82:17-82:90","resultTypeName":"{http://hl7.org/fhir}Observation","name":"MostRecent","type":"FunctionRef","signature":[{"localId":"1190","type":"ListTypeSpecifier","elementType":{"localId":"1191","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"1184","locator":"82:28-82:89","name":"Verified","type":"FunctionRef","resultTypeSpecifier":{"localId":"1187","type":"ListTypeSpecifier","elementType":{"localId":"1188","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"signature":[{"localId":"1185","type":"ListTypeSpecifier","elementType":{"localId":"1186","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"1172","locator":"82:37-82:88","dataType":"{http://hl7.org/fhir}Observation","templateId":"http://hl7.org/fhir/StructureDefinition/Observation","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"1182","type":"ListTypeSpecifier","elementType":{"localId":"1183","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"codes":{"localId":"1181","type":"ToList","signature":[],"operand":{"localId":"1171","locator":"82:51-82:87","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Total score [NIH Stroke Scale] code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}]}]},{"localId":"1194","locator":"82:95-82:98","resultTypeName":"{urn:hl7-org:elm-types:r1}Quantity","value":3,"unit":"","type":"Quantity"}]}},{"localId":"1203","locator":"140:1-142:35","name":"ActiveMedicationRequest","context":"Patient","accessLevel":"Public","type":"FunctionDef","annotation":[{"type":"Annotation","s":{"r":"1203","s":[{"value":["","define function ActiveMedicationRequest(MedList List<MedicationRequest>):\n  "]},{"r":"1560","s":[{"r":"1560","s":[{"s":[{"r":"1547","s":[{"r":"1548","s":[{"s":[{"value":["MedList"]}]}]},{"value":[" ","M"]}]}]},{"value":["\n    "]},{"r":"1553","s":[{"value":["where "]},{"r":"1553","s":[{"r":"1556","s":[{"r":"1555","s":[{"r":"1554","s":[{"value":["M"]}]},{"value":["."]},{"r":"1555","s":[{"value":["status"]}]}]},{"value":["."]},{"r":"1556","s":[{"value":["value"]}]}]},{"value":[" ","="," "]},{"r":"1557","s":[{"value":["'active'"]}]}]}]}]}]}]}}],"resultTypeSpecifier":{"localId":"1565","type":"ListTypeSpecifier","elementType":{"localId":"1566","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"expression":{"localId":"1560","locator":"141:3-142:35","type":"Query","resultTypeSpecifier":{"localId":"1563","type":"ListTypeSpecifier","elementType":{"localId":"1564","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"source":[{"localId":"1547","locator":"141:3-141:11","alias":"M","resultTypeSpecifier":{"localId":"1551","type":"ListTypeSpecifier","elementType":{"localId":"1552","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"expression":{"localId":"1548","locator":"141:3-141:9","name":"MedList","type":"OperandRef","resultTypeSpecifier":{"localId":"1549","type":"ListTypeSpecifier","elementType":{"localId":"1550","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}}}],"let":[],"relationship":[],"where":{"localId":"1553","locator":"142:5-142:35","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Equal","signature":[{"localId":"1558","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"},{"localId":"1559","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1556","locator":"142:11-142:24","resultTypeName":"{urn:hl7-org:elm-types:r1}String","path":"value","type":"Property","source":{"localId":"1555","locator":"142:11-142:18","resultTypeName":"{http://hl7.org/fhir}MedicationRequestStatus","path":"status","scope":"M","type":"Property"}},{"localId":"1557","locator":"142:28-142:35","resultTypeName":"{urn:hl7-org:elm-types:r1}String","valueType":"{urn:hl7-org:elm-types:r1}String","value":"active","type":"Literal"}]}},"operand":[{"localId":"1208","name":"MedList","operandTypeSpecifier":{"localId":"1204","locator":"140:49-140:71","type":"ListTypeSpecifier","resultTypeSpecifier":{"localId":"1206","type":"ListTypeSpecifier","elementType":{"localId":"1207","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"elementType":{"localId":"1205","locator":"140:54-140:70","resultTypeName":"{http://hl7.org/fhir}MedicationRequest","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}}]},{"localId":"1198","locator":"84:1-85:75","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"On Anticoagulation Therapy","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"1198","s":[{"value":["","define ","\"On Anticoagulation Therapy\"",":\n  "]},{"r":"1199","s":[{"value":["exists "]},{"r":"1209","s":[{"value":["( "]},{"r":"1209","s":[{"value":["ActiveMedicationRequest","("]},{"r":"1200","s":[{"value":["\"generic_medication_request_concepts\""]}]},{"value":[")"]}]},{"value":[" )"]}]}]}]}}],"expression":{"localId":"1199","locator":"85:3-85:75","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Exists","signature":[{"localId":"1234","type":"ListTypeSpecifier","elementType":{"localId":"1235","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":{"localId":"1209","locator":"85:10-85:75","name":"ActiveMedicationRequest","type":"FunctionRef","resultTypeSpecifier":{"localId":"1232","type":"ListTypeSpecifier","elementType":{"localId":"1233","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}},"signature":[{"localId":"1210","type":"ListTypeSpecifier","elementType":{"localId":"1211","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"1200","locator":"85:36-85:72","name":"generic_medication_request_concepts","type":"ExpressionRef","resultTypeSpecifier":{"localId":"1201","type":"ListTypeSpecifier","elementType":{"localId":"1202","name":"{http://hl7.org/fhir}MedicationRequest","type":"NamedTypeSpecifier"}}}]}}},{"localId":"1242","locator":"144:1-147:62","name":"ActiveOrConfirmedAllergyIntolerance","context":"Patient","accessLevel":"Public","type":"FunctionDef","annotation":[{"type":"Annotation","s":{"r":"1242","s":[{"value":["","define function ActiveOrConfirmedAllergyIntolerance(AllergyIntolList List<AllergyIntolerance>):\n  "]},{"r":"1592","s":[{"r":"1592","s":[{"s":[{"r":"1567","s":[{"r":"1568","s":[{"s":[{"value":["AllergyIntolList"]}]}]},{"value":[" ","A"]}]}]},{"value":["\n    "]},{"r":"1573","s":[{"value":["where "]},{"r":"1573","s":[{"r":"1574","s":[{"r":"1576","s":[{"r":"1575","s":[{"value":["A"]}]},{"value":["."]},{"r":"1576","s":[{"value":["clinicalStatus"]}]}]},{"value":[" ","~"," "]},{"r":"1577","s":[{"value":["\"AllergyIntolerance Active\""]}]}]},{"value":["\n      or "]},{"r":"1582","s":[{"r":"1584","s":[{"r":"1583","s":[{"value":["A"]}]},{"value":["."]},{"r":"1584","s":[{"value":["verificationStatus"]}]}]},{"value":[" ","~"," "]},{"r":"1585","s":[{"value":["\"AllergyIntolerance Confirmed\""]}]}]}]}]}]}]}]}}],"resultTypeSpecifier":{"localId":"1597","type":"ListTypeSpecifier","elementType":{"localId":"1598","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}},"expression":{"localId":"1592","locator":"145:3-147:62","type":"Query","resultTypeSpecifier":{"localId":"1595","type":"ListTypeSpecifier","elementType":{"localId":"1596","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}},"source":[{"localId":"1567","locator":"145:3-145:20","alias":"A","resultTypeSpecifier":{"localId":"1571","type":"ListTypeSpecifier","elementType":{"localId":"1572","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}},"expression":{"localId":"1568","locator":"145:3-145:18","name":"AllergyIntolList","type":"OperandRef","resultTypeSpecifier":{"localId":"1569","type":"ListTypeSpecifier","elementType":{"localId":"1570","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}}}}],"let":[],"relationship":[],"where":{"localId":"1573","locator":"146:5-147:62","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Or","signature":[{"localId":"1590","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"1591","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1574","locator":"146:11-146:56","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Equivalent","signature":[{"localId":"1580","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"},{"localId":"1581","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1578","name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"1579","name":"{http://hl7.org/fhir}CodeableConcept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1576","locator":"146:11-146:26","resultTypeName":"{http://hl7.org/fhir}CodeableConcept","path":"clinicalStatus","scope":"A","type":"Property"}]},{"localId":"1577","locator":"146:30-146:56","resultTypeName":"{urn:hl7-org:elm-types:r1}Concept","name":"AllergyIntolerance Active","type":"ConceptRef"}]},{"localId":"1582","locator":"147:10-147:62","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Equivalent","signature":[{"localId":"1588","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"},{"localId":"1589","name":"{urn:hl7-org:elm-types:r1}Concept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1586","name":"ToConcept","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"1587","name":"{http://hl7.org/fhir}CodeableConcept","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1584","locator":"147:10-147:29","resultTypeName":"{http://hl7.org/fhir}CodeableConcept","path":"verificationStatus","scope":"A","type":"Property"}]},{"localId":"1585","locator":"147:33-147:62","resultTypeName":"{urn:hl7-org:elm-types:r1}Concept","name":"AllergyIntolerance Confirmed","type":"ConceptRef"}]}]}},"operand":[{"localId":"1247","name":"AllergyIntolList","operandTypeSpecifier":{"localId":"1243","locator":"144:70-144:93","type":"ListTypeSpecifier","resultTypeSpecifier":{"localId":"1245","type":"ListTypeSpecifier","elementType":{"localId":"1246","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}},"elementType":{"localId":"1244","locator":"144:75-144:92","resultTypeName":"{http://hl7.org/fhir}AllergyIntolerance","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}}}]},{"localId":"1237","locator":"87:1-88:87","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Contraindication to Antiplatelet","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"1237","s":[{"value":["","define ","\"Contraindication to Antiplatelet\"",":\n  "]},{"r":"1238","s":[{"value":["exists "]},{"r":"1248","s":[{"value":["( "]},{"r":"1248","s":[{"value":["ActiveOrConfirmedAllergyIntolerance","("]},{"r":"1239","s":[{"value":["\"generic_allergyIntolerance_concepts\""]}]},{"value":[")"]}]},{"value":[" )"]}]}]}]}}],"expression":{"localId":"1238","locator":"88:3-88:87","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Exists","signature":[{"localId":"1285","type":"ListTypeSpecifier","elementType":{"localId":"1286","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}}],"operand":{"localId":"1248","locator":"88:10-88:87","name":"ActiveOrConfirmedAllergyIntolerance","type":"FunctionRef","resultTypeSpecifier":{"localId":"1283","type":"ListTypeSpecifier","elementType":{"localId":"1284","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}},"signature":[{"localId":"1249","type":"ListTypeSpecifier","elementType":{"localId":"1250","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"1239","locator":"88:48-88:84","name":"generic_allergyIntolerance_concepts","type":"ExpressionRef","resultTypeSpecifier":{"localId":"1240","type":"ListTypeSpecifier","elementType":{"localId":"1241","name":"{http://hl7.org/fhir}AllergyIntolerance","type":"NamedTypeSpecifier"}}}]}}},{"localId":"1288","locator":"90:1-93:34","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"MeetsInclusionCriteria","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"1288","s":[{"value":["","define ","\"MeetsInclusionCriteria\"",":\n  "]},{"r":"1289","s":[{"r":"1290","s":[{"r":"1291","s":[{"value":["\"Is 18+ Years Old\""]}]},{"value":["\n    and "]},{"r":"1292","s":[{"value":["\"Has TIA or Minor Ischemic Stroke\""]}]}]},{"value":["\n    and "]},{"r":"1295","s":[{"value":["\"NIHSS Score Is 3 or Less\""]}]}]}]}}],"expression":{"localId":"1289","locator":"91:3-93:34","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"And","signature":[{"localId":"1296","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"1297","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1290","locator":"91:3-92:42","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"And","signature":[{"localId":"1293","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"1294","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1291","locator":"91:3-91:20","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Is 18+ Years Old","type":"ExpressionRef"},{"localId":"1292","locator":"92:9-92:42","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Has TIA or Minor Ischemic Stroke","type":"ExpressionRef"}]},{"localId":"1295","locator":"93:9-93:34","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"NIHSS Score Is 3 or Less","type":"ExpressionRef"}]}},{"localId":"1299","locator":"95:1-99:41","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"MeetsExclusionCriteria","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"1299","s":[{"value":["","define ","\"MeetsExclusionCriteria\"",":\n  "]},{"r":"1300","s":[{"r":"1301","s":[{"r":"1302","s":[{"r":"1303","s":[{"value":["\"Has Intracranial Hemorrhage\""]}]},{"value":["\n    or "]},{"r":"1304","s":[{"value":["\"NIHSS Score Greater Than 3\""]}]}]},{"value":["\n    or "]},{"r":"1307","s":[{"value":["\"On Anticoagulation Therapy\""]}]}]},{"value":["\n    or "]},{"r":"1310","s":[{"value":["\"Contraindication to Antiplatelet\""]}]}]}]}}],"expression":{"localId":"1300","locator":"96:3-99:41","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Or","signature":[{"localId":"1311","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"1312","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1301","locator":"96:3-98:35","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Or","signature":[{"localId":"1308","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"1309","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1302","locator":"96:3-97:35","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Or","signature":[{"localId":"1305","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"1306","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1303","locator":"96:3-96:31","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Has Intracranial Hemorrhage","type":"ExpressionRef"},{"localId":"1304","locator":"97:8-97:35","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"NIHSS Score Greater Than 3","type":"ExpressionRef"}]},{"localId":"1307","locator":"98:8-98:35","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"On Anticoagulation Therapy","type":"ExpressionRef"}]},{"localId":"1310","locator":"99:8-99:41","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Contraindication to Antiplatelet","type":"ExpressionRef"}]}},{"localId":"1314","locator":"101:1-103:36","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"1314","s":[{"value":["","define ","\"InPopulation\"",":\n  "]},{"r":"1315","s":[{"r":"1316","s":[{"value":["\"MeetsInclusionCriteria\""]}]},{"value":["\n    and "]},{"r":"1317","s":[{"value":["not "]},{"r":"1318","s":[{"value":["\"MeetsExclusionCriteria\""]}]}]}]}]}}],"expression":{"localId":"1315","locator":"102:3-103:36","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"And","signature":[{"localId":"1320","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"1321","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"1316","locator":"102:3-102:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"MeetsInclusionCriteria","type":"ExpressionRef"},{"localId":"1317","locator":"103:9-103:36","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Not","signature":[{"localId":"1319","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":{"localId":"1318","locator":"103:13-103:36","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"MeetsExclusionCriteria","type":"ExpressionRef"}}]}},{"localId":"1323","locator":"105:1-107:13","resultTypeName":"{urn:hl7-org:elm-types:r1}String","name":"Recommendation","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"1323","s":[{"value":["","define ","\"Recommendation\"",":\n  "]},{"r":"1324","s":[{"value":["if "]},{"r":"1325","s":[{"value":["\"InPopulation\""]}]},{"value":[" then "]},{"r":"1326","s":[{"value":["'Initiate dual antiplatelet therapy for secondary stroke prevention. Use aspirin (50–325 mg daily) together with clopidogrel (75 mg daily), preferably after a loading dose of 300–600 mg. Continue dual therapy for 21 days, then transition to single antiplatelet therapy. (AHA/ASA 2021, Class I, Level A)'"]}]},{"r":"1327","value":[" \n    else ","null"]}]}]}}],"expression":{"localId":"1324","locator":"106:3-107:13","resultTypeName":"{urn:hl7-org:elm-types:r1}String","type":"If","condition":{"localId":"1325","locator":"106:6-106:19","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","type":"ExpressionRef"},"then":{"localId":"1326","locator":"106:26-106:328","resultTypeName":"{urn:hl7-org:elm-types:r1}String","valueType":"{urn:hl7-org:elm-types:r1}String","value":"Initiate dual antiplatelet therapy for secondary stroke prevention. Use aspirin (50–325 mg daily) together with clopidogrel (75 mg daily), preferably after a loading dose of 300–600 mg. Continue dual therapy for 21 days, then transition to single antiplatelet therapy. (AHA/ASA 2021, Class I, Level A)","type":"Literal"},"else":{"localId":"1328","asType":"{urn:hl7-org:elm-types:r1}String","type":"As","signature":[],"operand":{"localId":"1327","locator":"107:10-107:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}}},{"localId":"1330","locator":"109:1-111:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Rationale","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"1330","s":[{"value":["","define ","\"Rationale\"",":\n  "]},{"r":"1331","s":[{"value":["if "]},{"r":"1332","s":[{"value":["\"InPopulation\""]}]},{"r":"1333","value":[" then ","null"," \n    else ","null"]}]}]}}],"expression":{"localId":"1331","locator":"110:3-111:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"If","condition":{"localId":"1332","locator":"110:6-110:19","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","type":"ExpressionRef"},"then":{"localId":"1333","locator":"110:26-110:29","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"},"else":{"localId":"1334","locator":"111:10-111:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}},{"localId":"1336","locator":"113:1-115:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Links","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"1336","s":[{"value":["","define ","\"Links\"",":\n  "]},{"r":"1337","s":[{"value":["if "]},{"r":"1338","s":[{"value":["\"InPopulation\""]}]},{"r":"1339","value":[" then ","null"," \n    else ","null"]}]}]}}],"expression":{"localId":"1337","locator":"114:3-115:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"If","condition":{"localId":"1338","locator":"114:6-114:19","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","type":"ExpressionRef"},"then":{"localId":"1339","locator":"114:26-114:29","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"},"else":{"localId":"1340","locator":"115:10-115:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}},{"localId":"1342","locator":"117:1-119:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Suggestions","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"1342","s":[{"value":["","define ","\"Suggestions\"",":\n  "]},{"r":"1343","s":[{"value":["if "]},{"r":"1344","s":[{"value":["\"InPopulation\""]}]},{"r":"1345","value":[" then ","null"," \n    else ","null"]}]}]}}],"expression":{"localId":"1343","locator":"118:3-119:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"If","condition":{"localId":"1344","locator":"118:6-118:19","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","type":"ExpressionRef"},"then":{"localId":"1345","locator":"118:26-118:29","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"},"else":{"localId":"1346","locator":"119:10-119:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}},{"localId":"1348","locator":"121:1-122:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Errors","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"1348","s":[{"r":"1349","value":["","define ","\"Errors\"",":\n  ","null"]}]}}],"expression":{"localId":"1349","locator":"122:3-122:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}]}}}