{"library":{"localId":"0","annotation":[{"translatorVersion":"3.22.0","translatorOptions":"EnableDateRangeOptimization,EnableAnnotations,EnableLocators,EnableResultTypes,DisableListDemotion,DisableListPromotion,DisableMethodInvocation","signatureLevel":"All","type":"CqlToElmInfo"},{"type":"Annotation","s":{"r":"393","s":[{"value":["","library \"Acute-Cholecystitis-Early-Surgery\" version '1.0.0'"]}]}}],"identifier":{"id":"Acute-Cholecystitis-Early-Surgery","version":"1.0.0"},"schemaIdentifier":{"id":"urn:hl7-org:elm","version":"r1"},"usings":{"def":[{"localId":"1","localIdentifier":"System","uri":"urn:hl7-org:elm-types:r1"},{"localId":"206","locator":"3:1-3:26","localIdentifier":"FHIR","uri":"http://hl7.org/fhir","version":"4.0.0","annotation":[{"type":"Annotation","s":{"r":"206","s":[{"value":["","using "]},{"s":[{"value":["FHIR"]}]},{"value":[" version '4.0.0'"]}]}}]}]},"includes":{"def":[{"localId":"207","locator":"5:1-5:56","localIdentifier":"FHIRHelpers","path":"FHIRHelpers","version":"4.0.0","annotation":[{"type":"Annotation","s":{"r":"207","s":[{"value":["","include "]},{"s":[{"value":["\"FHIRHelpers\""]}]},{"value":[" version ","'4.0.0'"," called ","FHIRHelpers"]}]}}]}]},"codeSystems":{"def":[{"localId":"208","locator":"7:1-7: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":"208","s":[{"value":["","codesystem ","\"ICD-10-CM\"",": ","'http://hl7.org/fhir/sid/icd-10-cm'"]}]}}]},{"localId":"209","locator":"8:1-8:38","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"LOINC","id":"http://loinc.org","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"209","s":[{"value":["","codesystem ","\"LOINC\"",": ","'http://loinc.org'"]}]}}]},{"localId":"210","locator":"9:1-9:45","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"SNOMED","id":"http://snomed.info/sct","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"210","s":[{"value":["","codesystem ","\"SNOMED\"",": ","'http://snomed.info/sct'"]}]}}]}]},"codes":{"def":[{"localId":"211","locator":"11:1-11:87","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Acute cholecystitis code","id":"K81.0","display":"Acute cholecystitis","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"211","s":[{"value":["","code ","\"Acute cholecystitis code\"",": ","'K81.0'"," from "]},{"r":"212","s":[{"value":["\"ICD-10-CM\""]}]},{"value":[" display ","'Acute cholecystitis'"]}]}}],"codeSystem":{"localId":"212","locator":"11:47-11:57","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"ICD-10-CM"}},{"localId":"213","locator":"12:1-12:144","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Leukocytes [#/volume] in Blood by Automated count code","id":"6690-2","display":"Leukocytes [#/volume] in Blood by Automated count","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"213","s":[{"value":["","code ","\"Leukocytes [#/volume] in Blood by Automated count code\"",": ","'6690-2'"," from "]},{"r":"214","s":[{"value":["\"LOINC\""]}]},{"value":[" display ","'Leukocytes [#/volume] in Blood by Automated count'"]}]}}],"codeSystem":{"localId":"214","locator":"12:78-12:84","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"LOINC"}},{"localId":"215","locator":"13:1-13:78","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Body temperature code","id":"8310-5","display":"Body temperature","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"215","s":[{"value":["","code ","\"Body temperature code\"",": ","'8310-5'"," from "]},{"r":"216","s":[{"value":["\"LOINC\""]}]},{"value":[" display ","'Body temperature'"]}]}}],"codeSystem":{"localId":"216","locator":"13:45-13:51","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"LOINC"}},{"localId":"217","locator":"14:1-14:146","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"273270000 code","id":"273270000","display":"American Society of Anesthesiologists physical status classification (assessment scale)","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"217","s":[{"value":["","code ","\"273270000 code\"",": ","'273270000'"," from "]},{"r":"218","s":[{"value":["\"SNOMED\""]}]},{"value":[" display ","'American Society of Anesthesiologists physical status classification (assessment scale)'"]}]}}],"codeSystem":{"localId":"218","locator":"14:41-14:48","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"SNOMED"}},{"localId":"219","locator":"15:1-15:140","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Charlson Comorbidity Index (assessment scale) code","id":"762713009","display":"Charlson Comorbidity Index (assessment scale)","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"219","s":[{"value":["","code ","\"Charlson Comorbidity Index (assessment scale) code\"",": ","'762713009'"," from "]},{"r":"220","s":[{"value":["\"SNOMED\""]}]},{"value":[" display ","'Charlson Comorbidity Index (assessment scale)'"]}]}}],"codeSystem":{"localId":"220","locator":"15:77-15:84","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"SNOMED"}},{"localId":"221","locator":"16:1-16:120","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Single organ dysfunction (disorder) code","id":"251526004","display":"Single organ dysfunction (disorder)","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"221","s":[{"value":["","code ","\"Single organ dysfunction (disorder) code\"",": ","'251526004'"," from "]},{"r":"222","s":[{"value":["\"SNOMED\""]}]},{"value":[" display ","'Single organ dysfunction (disorder)'"]}]}}],"codeSystem":{"localId":"222","locator":"16:67-16:74","resultTypeName":"{urn:hl7-org:elm-types:r1}CodeSystem","name":"SNOMED"}}]},"contexts":{"def":[{"localId":"226","locator":"18:1-18:15","name":"Patient"}]},"statements":{"def":[{"localId":"224","locator":"18:1-18:15","name":"Patient","context":"Patient","expression":{"localId":"225","type":"SingletonFrom","signature":[],"operand":{"localId":"223","locator":"18:1-18:15","dataType":"{http://hl7.org/fhir}Patient","type":"Retrieve","include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}},{"localId":"228","locator":"20:1-21:52","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Acute cholecystitis","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"228","s":[{"value":["","define ","\"Acute cholecystitis\"",":\n  "]},{"r":"229","s":[{"value":["exists "]},{"r":"232","s":[{"value":["( "]},{"r":"232","s":[{"value":["[","Condition",": "]},{"s":[{"value":["\"Acute cholecystitis code\""]}]},{"value":["]"]}]},{"value":[" )"]}]}]}]}}],"expression":{"localId":"229","locator":"21:3-21:52","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Exists","signature":[{"localId":"246","type":"ListTypeSpecifier","elementType":{"localId":"247","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":{"localId":"232","locator":"21:10-21:52","dataType":"{http://hl7.org/fhir}Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"244","type":"ListTypeSpecifier","elementType":{"localId":"245","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"codes":{"localId":"241","type":"ToList","signature":[],"operand":{"localId":"231","locator":"21:24-21:49","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Acute cholecystitis code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}},{"localId":"265","locator":"76:1-79:3","resultTypeName":"{http://hl7.org/fhir}Observation","name":"MostRecent","context":"Patient","accessLevel":"Public","type":"FunctionDef","annotation":[{"type":"Annotation","s":{"r":"265","s":[{"value":["","define function MostRecent(ObsList List<Observation>):\n  "]},{"r":"732","s":[{"r":"732","s":[{"value":["Last","("]},{"r":"725","s":[{"s":[{"r":"616","s":[{"r":"617","s":[{"s":[{"value":["ObsList"]}]}]},{"value":[" ","O"]}]}]},{"value":["\n      "]},{"r":"719","s":[{"value":["sort by "]},{"r":"718","s":[{"r":"712","s":[{"value":["Coalesce","("]},{"r":"673","s":[{"r":"665","s":[{"value":["("]},{"r":"665","s":[{"r":"666","s":[{"value":["effective"]}]},{"value":[" as "]},{"r":"672","s":[{"value":["FHIR",".","dateTime"]}]}]},{"value":[")"]}]},{"value":["."]},{"r":"673","s":[{"value":["value"]}]}]},{"value":[","]},{"r":"682","s":[{"r":"674","s":[{"value":["("]},{"r":"674","s":[{"r":"675","s":[{"value":["effective"]}]},{"value":[" as "]},{"r":"681","s":[{"value":["FHIR",".","instant"]}]}]},{"value":[")"]}]},{"value":["."]},{"r":"682","s":[{"value":["value"]}]}]},{"value":[","]},{"r":"692","s":[{"r":"691","s":[{"r":"683","s":[{"value":["("]},{"r":"683","s":[{"r":"684","s":[{"value":["effective"]}]},{"value":[" as "]},{"r":"690","s":[{"value":["FHIR",".","Period"]}]}]},{"value":[")"]}]},{"value":["."]},{"r":"691","s":[{"value":["\"end\""]}]}]},{"value":["."]},{"r":"692","s":[{"value":["value"]}]}]},{"value":[","]},{"r":"702","s":[{"r":"701","s":[{"r":"693","s":[{"value":["("]},{"r":"693","s":[{"r":"694","s":[{"value":["effective"]}]},{"value":[" as "]},{"r":"700","s":[{"value":["FHIR",".","Period"]}]}]},{"value":[")"]}]},{"value":["."]},{"r":"701","s":[{"value":["\"start\""]}]}]},{"value":["."]},{"r":"702","s":[{"value":["value"]}]}]},{"value":[", "]},{"r":"704","s":[{"r":"703","s":[{"value":["issued"]}]},{"value":["."]},{"r":"704","s":[{"value":["value"]}]}]},{"value":[")"]}]}]}]}]},{"value":["\n  )"]}]}]}]}}],"expression":{"localId":"732","locator":"77:3-79:3","resultTypeName":"{http://hl7.org/fhir}Observation","type":"Last","signature":[{"localId":"733","type":"ListTypeSpecifier","elementType":{"localId":"734","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}],"source":{"localId":"725","locator":"77:8-78:186","type":"Query","resultTypeSpecifier":{"localId":"726","type":"ListTypeSpecifier","elementType":{"localId":"727","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"source":[{"localId":"616","locator":"77:8-77:16","alias":"O","resultTypeSpecifier":{"localId":"620","type":"ListTypeSpecifier","elementType":{"localId":"621","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"expression":{"localId":"617","locator":"77:8-77:14","name":"ObsList","type":"OperandRef","resultTypeSpecifier":{"localId":"618","type":"ListTypeSpecifier","elementType":{"localId":"619","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}}}],"let":[],"relationship":[],"sort":{"localId":"719","locator":"78:7-78:186","by":[{"localId":"718","locator":"78:15-78:186","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","direction":"asc","type":"ByExpression","expression":{"localId":"712","locator":"78:15-78:186","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","type":"Coalesce","signature":[{"localId":"713","name":"{urn:hl7-org:elm-types:r1}DateTime","type":"NamedTypeSpecifier"},{"localId":"714","name":"{urn:hl7-org:elm-types:r1}DateTime","type":"NamedTypeSpecifier"},{"localId":"715","name":"{urn:hl7-org:elm-types:r1}DateTime","type":"NamedTypeSpecifier"},{"localId":"716","name":"{urn:hl7-org:elm-types:r1}DateTime","type":"NamedTypeSpecifier"},{"localId":"717","name":"{urn:hl7-org:elm-types:r1}DateTime","type":"NamedTypeSpecifier"}],"operand":[{"localId":"673","locator":"78:24-78:57","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","path":"value","type":"Property","source":{"localId":"665","locator":"78:24-78:51","resultTypeName":"{http://hl7.org/fhir}dateTime","strict":false,"type":"As","signature":[],"operand":{"localId":"666","locator":"78:25-78:33","name":"effective","type":"IdentifierRef","resultTypeSpecifier":{"localId":"667","type":"ChoiceTypeSpecifier","choice":[{"localId":"668","name":"{http://hl7.org/fhir}dateTime","type":"NamedTypeSpecifier"},{"localId":"669","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"},{"localId":"670","name":"{http://hl7.org/fhir}Timing","type":"NamedTypeSpecifier"},{"localId":"671","name":"{http://hl7.org/fhir}instant","type":"NamedTypeSpecifier"}]}},"asTypeSpecifier":{"localId":"672","locator":"78:38-78:50","resultTypeName":"{http://hl7.org/fhir}dateTime","name":"{http://hl7.org/fhir}dateTime","type":"NamedTypeSpecifier"}}},{"localId":"682","locator":"78:59-78:91","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","path":"value","type":"Property","source":{"localId":"674","locator":"78:59-78:85","resultTypeName":"{http://hl7.org/fhir}instant","strict":false,"type":"As","signature":[],"operand":{"localId":"675","locator":"78:60-78:68","name":"effective","type":"IdentifierRef","resultTypeSpecifier":{"localId":"676","type":"ChoiceTypeSpecifier","choice":[{"localId":"677","name":"{http://hl7.org/fhir}dateTime","type":"NamedTypeSpecifier"},{"localId":"678","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"},{"localId":"679","name":"{http://hl7.org/fhir}Timing","type":"NamedTypeSpecifier"},{"localId":"680","name":"{http://hl7.org/fhir}instant","type":"NamedTypeSpecifier"}]}},"asTypeSpecifier":{"localId":"681","locator":"78:73-78:84","resultTypeName":"{http://hl7.org/fhir}instant","name":"{http://hl7.org/fhir}instant","type":"NamedTypeSpecifier"}}},{"localId":"692","locator":"78:93-78:130","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","path":"value","type":"Property","source":{"localId":"691","locator":"78:93-78:124","resultTypeName":"{http://hl7.org/fhir}dateTime","path":"end","type":"Property","source":{"localId":"683","locator":"78:93-78:118","resultTypeName":"{http://hl7.org/fhir}Period","strict":false,"type":"As","signature":[],"operand":{"localId":"684","locator":"78:94-78:102","name":"effective","type":"IdentifierRef","resultTypeSpecifier":{"localId":"685","type":"ChoiceTypeSpecifier","choice":[{"localId":"686","name":"{http://hl7.org/fhir}dateTime","type":"NamedTypeSpecifier"},{"localId":"687","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"},{"localId":"688","name":"{http://hl7.org/fhir}Timing","type":"NamedTypeSpecifier"},{"localId":"689","name":"{http://hl7.org/fhir}instant","type":"NamedTypeSpecifier"}]}},"asTypeSpecifier":{"localId":"690","locator":"78:107-78:117","resultTypeName":"{http://hl7.org/fhir}Period","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"}}}},{"localId":"702","locator":"78:132-78:171","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","path":"value","type":"Property","source":{"localId":"701","locator":"78:132-78:165","resultTypeName":"{http://hl7.org/fhir}dateTime","path":"start","type":"Property","source":{"localId":"693","locator":"78:132-78:157","resultTypeName":"{http://hl7.org/fhir}Period","strict":false,"type":"As","signature":[],"operand":{"localId":"694","locator":"78:133-78:141","name":"effective","type":"IdentifierRef","resultTypeSpecifier":{"localId":"695","type":"ChoiceTypeSpecifier","choice":[{"localId":"696","name":"{http://hl7.org/fhir}dateTime","type":"NamedTypeSpecifier"},{"localId":"697","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"},{"localId":"698","name":"{http://hl7.org/fhir}Timing","type":"NamedTypeSpecifier"},{"localId":"699","name":"{http://hl7.org/fhir}instant","type":"NamedTypeSpecifier"}]}},"asTypeSpecifier":{"localId":"700","locator":"78:146-78:156","resultTypeName":"{http://hl7.org/fhir}Period","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"}}}},{"localId":"704","locator":"78:174-78:185","resultTypeName":"{urn:hl7-org:elm-types:r1}DateTime","path":"value","type":"Property","source":{"localId":"703","locator":"78:174-78:179","resultTypeName":"{http://hl7.org/fhir}instant","name":"issued","type":"IdentifierRef"}}]}}]}}},"operand":[{"localId":"270","name":"ObsList","operandTypeSpecifier":{"localId":"266","locator":"76:36-76:52","type":"ListTypeSpecifier","resultTypeSpecifier":{"localId":"268","type":"ListTypeSpecifier","elementType":{"localId":"269","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"elementType":{"localId":"267","locator":"76:41-76:51","resultTypeName":"{http://hl7.org/fhir}Observation","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}}]},{"localId":"393","locator":"81:1-82:55","resultTypeName":"{urn:hl7-org:elm-types:r1}Quantity","name":"QuantityValue","context":"Patient","accessLevel":"Public","type":"FunctionDef","annotation":[{"type":"Annotation","s":{"r":"393","s":[{"value":["","define function QuantityValue(Obs Observation):\n  "]},{"r":"764","s":[{"r":"764","s":[{"r":"735","s":[{"value":["FHIRHelpers"]}]},{"value":["."]},{"r":"764","s":[{"value":["ToQuantity"," ( "]},{"r":"736","s":[{"r":"738","s":[{"r":"737","s":[{"value":["Obs"]}]},{"value":["."]},{"r":"738","s":[{"value":["value"]}]}]},{"value":[" as "]},{"r":"763","s":[{"value":["FHIR",".","Quantity"]}]}]},{"value":[" )"]}]}]}]}]}}],"expression":{"localId":"764","locator":"82:3-82:55","resultTypeName":"{urn:hl7-org:elm-types:r1}Quantity","name":"ToQuantity","libraryName":"FHIRHelpers","type":"FunctionRef","signature":[{"localId":"765","name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier"}],"operand":[{"localId":"736","locator":"82:28-82:53","resultTypeName":"{http://hl7.org/fhir}Quantity","strict":false,"type":"As","signature":[],"operand":{"localId":"738","locator":"82:28-82:36","path":"value","type":"Property","resultTypeSpecifier":{"localId":"751","type":"ChoiceTypeSpecifier","choice":[{"localId":"752","name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier"},{"localId":"753","name":"{http://hl7.org/fhir}CodeableConcept","type":"NamedTypeSpecifier"},{"localId":"754","name":"{http://hl7.org/fhir}string","type":"NamedTypeSpecifier"},{"localId":"755","name":"{http://hl7.org/fhir}boolean","type":"NamedTypeSpecifier"},{"localId":"756","name":"{http://hl7.org/fhir}integer","type":"NamedTypeSpecifier"},{"localId":"757","name":"{http://hl7.org/fhir}Range","type":"NamedTypeSpecifier"},{"localId":"758","name":"{http://hl7.org/fhir}Ratio","type":"NamedTypeSpecifier"},{"localId":"759","name":"{http://hl7.org/fhir}SampledData","type":"NamedTypeSpecifier"},{"localId":"760","name":"{http://hl7.org/fhir}time","type":"NamedTypeSpecifier"},{"localId":"761","name":"{http://hl7.org/fhir}dateTime","type":"NamedTypeSpecifier"},{"localId":"762","name":"{http://hl7.org/fhir}Period","type":"NamedTypeSpecifier"}]},"source":{"localId":"737","locator":"82:28-82:30","resultTypeName":"{http://hl7.org/fhir}Observation","name":"Obs","type":"OperandRef"}},"asTypeSpecifier":{"localId":"763","locator":"82:41-82:53","resultTypeName":"{http://hl7.org/fhir}Quantity","name":"{http://hl7.org/fhir}Quantity","type":"NamedTypeSpecifier"}}]},"operand":[{"localId":"395","name":"Obs","operandTypeSpecifier":{"localId":"394","locator":"81:35-81:45","resultTypeName":"{http://hl7.org/fhir}Observation","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}]},{"localId":"249","locator":"23:1-24:115","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Leukocytes [#/volume] in Blood by Automated count","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"249","s":[{"value":["","define ","\"Leukocytes [#/volume] in Blood by Automated count\"",":\n  "]},{"r":"250","s":[{"r":"396","s":[{"value":["QuantityValue","("]},{"r":"271","s":[{"value":["MostRecent","("]},{"r":"253","s":[{"value":["[","Observation",": "]},{"s":[{"value":["\"Leukocytes [#/volume] in Blood by Automated count code\""]}]},{"value":["]"]}]},{"value":[")"]}]},{"value":[")"]}]},{"value":[" ",">"," "]},{"r":"429","s":[{"value":["10 ","'10*3/uL'"]}]}]}]}}],"expression":{"localId":"250","locator":"24:3-24:115","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Greater","signature":[{"localId":"430","name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier"},{"localId":"431","name":"{urn:hl7-org:elm-types:r1}Quantity","type":"NamedTypeSpecifier"}],"operand":[{"localId":"396","locator":"24:3-24:100","resultTypeName":"{urn:hl7-org:elm-types:r1}Quantity","name":"QuantityValue","type":"FunctionRef","signature":[{"localId":"397","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}],"operand":[{"localId":"271","locator":"24:17-24:99","resultTypeName":"{http://hl7.org/fhir}Observation","name":"MostRecent","type":"FunctionRef","signature":[{"localId":"272","type":"ListTypeSpecifier","elementType":{"localId":"273","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}],"operand":[{"localId":"253","locator":"24:28-24:98","dataType":"{http://hl7.org/fhir}Observation","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"263","type":"ListTypeSpecifier","elementType":{"localId":"264","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"codes":{"localId":"262","type":"ToList","signature":[],"operand":{"localId":"252","locator":"24:42-24:97","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Leukocytes [#/volume] in Blood by Automated count code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}]}]},{"localId":"429","locator":"24:104-24:115","resultTypeName":"{urn:hl7-org:elm-types:r1}Quantity","value":10,"unit":"10*3/uL","type":"Quantity"}]}},{"localId":"433","locator":"26:1-27:51","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Body temperature","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"433","s":[{"value":["","define ","\"Body temperature\"",":\n  "]},{"r":"434","s":[{"value":["exists "]},{"r":"437","s":[{"value":["( "]},{"r":"437","s":[{"value":["[","Observation",": "]},{"s":[{"value":["\"Body temperature code\""]}]},{"value":["]"]}]},{"value":[" )"]}]}]}]}}],"expression":{"localId":"434","locator":"27:3-27:51","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Exists","signature":[{"localId":"451","type":"ListTypeSpecifier","elementType":{"localId":"452","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}],"operand":{"localId":"437","locator":"27:10-27:51","dataType":"{http://hl7.org/fhir}Observation","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"449","type":"ListTypeSpecifier","elementType":{"localId":"450","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"codes":{"localId":"446","type":"ToList","signature":[],"operand":{"localId":"436","locator":"27:26-27:48","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Body temperature code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}},{"localId":"454","locator":"29:1-30:44","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"SNOMED 273270000","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"454","s":[{"value":["","define ","\"SNOMED 273270000\"",":\n  "]},{"r":"455","s":[{"value":["exists "]},{"r":"458","s":[{"value":["( "]},{"r":"458","s":[{"value":["[","Observation",": "]},{"s":[{"value":["\"273270000 code\""]}]},{"value":["]"]}]},{"value":[" )"]}]}]}]}}],"expression":{"localId":"455","locator":"30:3-30:44","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Exists","signature":[{"localId":"472","type":"ListTypeSpecifier","elementType":{"localId":"473","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}],"operand":{"localId":"458","locator":"30:10-30:44","dataType":"{http://hl7.org/fhir}Observation","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"470","type":"ListTypeSpecifier","elementType":{"localId":"471","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"codes":{"localId":"467","type":"ToList","signature":[],"operand":{"localId":"457","locator":"30:26-30:41","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"273270000 code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}},{"localId":"475","locator":"32:1-33:80","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Charlson Comorbidity Index (assessment scale)","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"475","s":[{"value":["","define ","\"Charlson Comorbidity Index (assessment scale)\"",":\n  "]},{"r":"476","s":[{"value":["exists "]},{"r":"479","s":[{"value":["( "]},{"r":"479","s":[{"value":["[","Observation",": "]},{"s":[{"value":["\"Charlson Comorbidity Index (assessment scale) code\""]}]},{"value":["]"]}]},{"value":[" )"]}]}]}]}}],"expression":{"localId":"476","locator":"33:3-33:80","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Exists","signature":[{"localId":"493","type":"ListTypeSpecifier","elementType":{"localId":"494","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}}],"operand":{"localId":"479","locator":"33:10-33:80","dataType":"{http://hl7.org/fhir}Observation","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"491","type":"ListTypeSpecifier","elementType":{"localId":"492","name":"{http://hl7.org/fhir}Observation","type":"NamedTypeSpecifier"}},"codes":{"localId":"488","type":"ToList","signature":[],"operand":{"localId":"478","locator":"33:26-33:77","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Charlson Comorbidity Index (assessment scale) code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}},{"localId":"496","locator":"35:1-36:68","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Single organ dysfunction (disorder)","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"496","s":[{"value":["","define ","\"Single organ dysfunction (disorder)\"",":\n  "]},{"r":"497","s":[{"value":["exists "]},{"r":"500","s":[{"value":["( "]},{"r":"500","s":[{"value":["[","Condition",": "]},{"s":[{"value":["\"Single organ dysfunction (disorder) code\""]}]},{"value":["]"]}]},{"value":[" )"]}]}]}]}}],"expression":{"localId":"497","locator":"36:3-36:68","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Exists","signature":[{"localId":"514","type":"ListTypeSpecifier","elementType":{"localId":"515","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}}],"operand":{"localId":"500","locator":"36:10-36:68","dataType":"{http://hl7.org/fhir}Condition","codeProperty":"code","codeComparator":"~","type":"Retrieve","resultTypeSpecifier":{"localId":"512","type":"ListTypeSpecifier","elementType":{"localId":"513","name":"{http://hl7.org/fhir}Condition","type":"NamedTypeSpecifier"}},"codes":{"localId":"509","type":"ToList","signature":[],"operand":{"localId":"499","locator":"36:24-36:65","resultTypeName":"{urn:hl7-org:elm-types:r1}Code","name":"Single organ dysfunction (disorder) code","type":"CodeRef"}},"include":[],"codeFilter":[],"dateFilter":[],"otherFilter":[]}}},{"localId":"517","locator":"38:1-43:55","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"MeetsInclusionCriteria","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"517","s":[{"value":["","define ","\"MeetsInclusionCriteria\"",":\n  "]},{"r":"518","s":[{"r":"519","s":[{"r":"520","s":[{"r":"521","s":[{"r":"522","s":[{"value":["\"Acute cholecystitis\""]}]},{"value":["\n    and "]},{"r":"523","s":[{"value":["\"Leukocytes [#/volume] in Blood by Automated count\""]}]}]},{"value":["\n    and "]},{"r":"526","s":[{"value":["\"Body temperature\""]}]}]},{"value":["\n    and "]},{"r":"529","s":[{"value":["\"SNOMED 273270000\""]}]}]},{"value":["\n    and "]},{"r":"532","s":[{"value":["\"Charlson Comorbidity Index (assessment scale)\""]}]}]}]}}],"expression":{"localId":"518","locator":"39:3-43:55","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"And","signature":[{"localId":"533","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"534","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"519","locator":"39:3-42:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"And","signature":[{"localId":"530","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"531","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"520","locator":"39:3-41:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"And","signature":[{"localId":"527","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"528","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"521","locator":"39:3-40:59","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"And","signature":[{"localId":"524","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"525","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"522","locator":"39:3-39:23","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Acute cholecystitis","type":"ExpressionRef"},{"localId":"523","locator":"40:9-40:59","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Leukocytes [#/volume] in Blood by Automated count","type":"ExpressionRef"}]},{"localId":"526","locator":"41:9-41:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Body temperature","type":"ExpressionRef"}]},{"localId":"529","locator":"42:9-42:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"SNOMED 273270000","type":"ExpressionRef"}]},{"localId":"532","locator":"43:9-43:55","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Charlson Comorbidity Index (assessment scale)","type":"ExpressionRef"}]}},{"localId":"536","locator":"45:1-46:39","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"MeetsExclusionCriteria","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"536","s":[{"value":["","define ","\"MeetsExclusionCriteria\"",":\n  "]},{"r":"537","s":[{"value":["\"Single organ dysfunction (disorder)\""]}]}]}}],"expression":{"localId":"537","locator":"46:3-46:39","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"Single organ dysfunction (disorder)","type":"ExpressionRef"}},{"localId":"539","locator":"48:1-50:36","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"539","s":[{"value":["","define ","\"InPopulation\"",":\n  "]},{"r":"540","s":[{"r":"541","s":[{"value":["\"MeetsInclusionCriteria\""]}]},{"value":["\n    and "]},{"r":"542","s":[{"value":["not "]},{"r":"543","s":[{"value":["\"MeetsExclusionCriteria\""]}]}]}]}]}}],"expression":{"localId":"540","locator":"49:3-50:36","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"And","signature":[{"localId":"545","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"},{"localId":"546","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":[{"localId":"541","locator":"49:3-49:26","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"MeetsInclusionCriteria","type":"ExpressionRef"},{"localId":"542","locator":"50:9-50:36","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","type":"Not","signature":[{"localId":"544","name":"{urn:hl7-org:elm-types:r1}Boolean","type":"NamedTypeSpecifier"}],"operand":{"localId":"543","locator":"50:13-50:36","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"MeetsExclusionCriteria","type":"ExpressionRef"}}]}},{"localId":"548","locator":"52:1-54:13","resultTypeName":"{urn:hl7-org:elm-types:r1}String","name":"Recommendation","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"548","s":[{"value":["","define ","\"Recommendation\"",":\n  "]},{"r":"549","s":[{"value":["if "]},{"r":"550","s":[{"value":["\"InPopulation\""]}]},{"value":[" then "]},{"r":"551","s":[{"value":["'Early laparoscopic cholecystectomy is recommended. Arrange surgical consultation and initiate management'"]}]},{"r":"552","value":[" \n    else ","null"]}]}]}}],"expression":{"localId":"549","locator":"53:3-54:13","resultTypeName":"{urn:hl7-org:elm-types:r1}String","type":"If","condition":{"localId":"550","locator":"53:6-53:19","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","type":"ExpressionRef"},"then":{"localId":"551","locator":"53:26-53:131","resultTypeName":"{urn:hl7-org:elm-types:r1}String","valueType":"{urn:hl7-org:elm-types:r1}String","value":"Early laparoscopic cholecystectomy is recommended. Arrange surgical consultation and initiate management","type":"Literal"},"else":{"localId":"553","asType":"{urn:hl7-org:elm-types:r1}String","type":"As","signature":[],"operand":{"localId":"552","locator":"54:10-54:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}}},{"localId":"555","locator":"56:1-58:13","resultTypeName":"{urn:hl7-org:elm-types:r1}String","name":"Rationale","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"555","s":[{"value":["","define ","\"Rationale\"",":\n  "]},{"r":"556","s":[{"value":["if "]},{"r":"557","s":[{"value":["\"InPopulation\""]}]},{"value":[" then "]},{"r":"558","s":[{"value":["'Tokyo Guidelines 2018 recommend early laparoscopic cholecystectomy for patients with Grade I–II acute cholecystitis who are low surgical risk, as it improves outcomes and reduces complications.'"]}]},{"r":"559","value":[" \n    else ","null"]}]}]}}],"expression":{"localId":"556","locator":"57:3-58:13","resultTypeName":"{urn:hl7-org:elm-types:r1}String","type":"If","condition":{"localId":"557","locator":"57:6-57:19","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","type":"ExpressionRef"},"then":{"localId":"558","locator":"57:26-57:220","resultTypeName":"{urn:hl7-org:elm-types:r1}String","valueType":"{urn:hl7-org:elm-types:r1}String","value":"Tokyo Guidelines 2018 recommend early laparoscopic cholecystectomy for patients with Grade I–II acute cholecystitis who are low surgical risk, as it improves outcomes and reduces complications.","type":"Literal"},"else":{"localId":"560","asType":"{urn:hl7-org:elm-types:r1}String","type":"As","signature":[],"operand":{"localId":"559","locator":"58:10-58:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}}},{"localId":"562","locator":"60:1-62:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Links","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"562","s":[{"value":["","define ","\"Links\"",":\n  "]},{"r":"563","s":[{"value":["if "]},{"r":"564","s":[{"value":["\"InPopulation\""]}]},{"r":"565","value":[" then ","null"," \n    else ","null"]}]}]}}],"expression":{"localId":"563","locator":"61:3-62:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"If","condition":{"localId":"564","locator":"61:6-61:19","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","type":"ExpressionRef"},"then":{"localId":"565","locator":"61:26-61:29","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"},"else":{"localId":"566","locator":"62:10-62:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}},{"localId":"568","locator":"64:1-71:13","name":"Suggestions","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"568","s":[{"value":["","define ","\"Suggestions\"",":\n  "]},{"r":"569","s":[{"value":["if "]},{"r":"570","s":[{"value":["\"InPopulation\""]}]},{"value":[" then "]},{"r":"571","s":[{"value":["List { "]},{"r":"572","s":[{"value":["Tuple {\n    "]},{"s":[{"value":["label",": "]},{"r":"573","s":[{"value":["'Order surgical consultation\nInitiate IV antibiotics and supportive care\nMonitor for clinical deterioration'"]}]}]},{"value":[",\n    "]},{"s":[{"r":"574","value":["actions",": ","List { }"]}]},{"value":["\n  }"]}]},{"value":[" }"]}]},{"r":"590","value":[" \n    else ","null"]}]}]}}],"resultTypeSpecifier":{"localId":"606","type":"ListTypeSpecifier","elementType":{"localId":"607","type":"TupleTypeSpecifier","element":[{"localId":"608","name":"label","elementType":{"localId":"609","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}},{"localId":"610","name":"actions","elementType":{"localId":"611","type":"ListTypeSpecifier","elementType":{"localId":"612","name":"{urn:hl7-org:elm-types:r1}Any","type":"NamedTypeSpecifier"}}}]}},"expression":{"localId":"569","locator":"65:3-71:13","type":"If","resultTypeSpecifier":{"localId":"599","type":"ListTypeSpecifier","elementType":{"localId":"600","type":"TupleTypeSpecifier","element":[{"localId":"601","name":"label","elementType":{"localId":"602","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}},{"localId":"603","name":"actions","elementType":{"localId":"604","type":"ListTypeSpecifier","elementType":{"localId":"605","name":"{urn:hl7-org:elm-types:r1}Any","type":"NamedTypeSpecifier"}}}]}},"condition":{"localId":"570","locator":"65:6-65:19","resultTypeName":"{urn:hl7-org:elm-types:r1}Boolean","name":"InPopulation","type":"ExpressionRef"},"then":{"localId":"571","locator":"65:26-70:5","type":"List","resultTypeSpecifier":{"localId":"583","type":"ListTypeSpecifier","elementType":{"localId":"584","type":"TupleTypeSpecifier","element":[{"localId":"585","name":"label","elementType":{"localId":"586","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}},{"localId":"587","name":"actions","elementType":{"localId":"588","type":"ListTypeSpecifier","elementType":{"localId":"589","name":"{urn:hl7-org:elm-types:r1}Any","type":"NamedTypeSpecifier"}}}]}},"element":[{"localId":"572","locator":"65:33-70:3","type":"Tuple","resultTypeSpecifier":{"localId":"577","type":"TupleTypeSpecifier","element":[{"localId":"578","name":"label","elementType":{"localId":"579","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}},{"localId":"580","name":"actions","elementType":{"localId":"581","type":"ListTypeSpecifier","elementType":{"localId":"582","name":"{urn:hl7-org:elm-types:r1}Any","type":"NamedTypeSpecifier"}}}]},"element":[{"name":"label","value":{"localId":"573","locator":"66:12-66:121","resultTypeName":"{urn:hl7-org:elm-types:r1}String","valueType":"{urn:hl7-org:elm-types:r1}String","value":"Order surgical consultation\r\nInitiate IV antibiotics and supportive care\r\nMonitor for clinical deterioration","type":"Literal"}},{"name":"actions","value":{"localId":"574","locator":"69:14-69:21","type":"List","resultTypeSpecifier":{"localId":"575","type":"ListTypeSpecifier","elementType":{"localId":"576","name":"{urn:hl7-org:elm-types:r1}Any","type":"NamedTypeSpecifier"}},"element":[]}}]}]},"else":{"localId":"591","type":"As","signature":[],"operand":{"localId":"590","locator":"71:10-71:13","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"},"asTypeSpecifier":{"localId":"592","type":"ListTypeSpecifier","elementType":{"localId":"593","type":"TupleTypeSpecifier","element":[{"localId":"594","name":"label","elementType":{"localId":"595","name":"{urn:hl7-org:elm-types:r1}String","type":"NamedTypeSpecifier"}},{"localId":"596","name":"actions","elementType":{"localId":"597","type":"ListTypeSpecifier","elementType":{"localId":"598","name":"{urn:hl7-org:elm-types:r1}Any","type":"NamedTypeSpecifier"}}}]}}}}},{"localId":"614","locator":"73:1-74:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","name":"Errors","context":"Patient","accessLevel":"Public","annotation":[{"type":"Annotation","s":{"r":"614","s":[{"r":"615","value":["","define ","\"Errors\"",":\n  ","null"]}]}}],"expression":{"localId":"615","locator":"74:3-74:6","resultTypeName":"{urn:hl7-org:elm-types:r1}Any","type":"Null"}}]}}}