declare const simpleDefinitionCql = "\n  //MAT-4844: Test Define with no quotes\n  library ScreeningPrediabetesFHIR version '0.0.000'\n  using QICore version '4.1.1'\n  using FHIR version '4.0.1'\n\n  context Patient\n  // ehnicity comment\n  define \"SDE Ethnicity\":\n    SDE.\"SDE Ethnicity\"\n\n  /* multi line \n  */\n  define InitialPopulation:\n    \"VTE Prophylaxis by Medication Administered or Device Applied\"\n\n  /* \n    @author: john doe \n    @description: this is Numerator \n  */\n  define \"Numerator\":\n    \"VTE Prophylaxis by Medication Administered or Device Applied\"\n\n  define \"VTE Prophylaxis by Medication Administered or Device Applied\":\n    ( [\"MedicationAdministration\": medication in \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"] VTEMedication\n      where VTEMedication.status = 'completed'\n    )\n    \n  /*\nmultiline comment outside of a function with multiple\nrows\n*/\n\ndefine function \"Denominator Observation\"(Encounter \"Encounter, Performed\" ):\n  // inside of definition to ignore\n  duration in hours of Encounter.relevantPeriod\n\n// comment outside of function\n// next line comment\ndefine function \"Numerator Observation\"(Encounter \"Encounter, Performed\" ):\n  duration in hours of Encounter.relevantPeriod\n";
declare const missingCodeSystemCql = "library TJCOverall_FHIR4 version '4.0.000'\n\nusing FHIR version '4.0.0'\ninclude FHIRHelpers version '4.0.0' called FHIRHelpers\n\ncodesystem \"LOINC\": 'urn:oid:2.16.840.1.113883.6.1'\n\ncode \"Birth date\": '21112-8' display 'Birth date'\n\ndefine \"Initial Population\":\n  true\n";
declare const fhirTestCql = "library TJCOverall_FHIR4 version '4.0.000'\n\nusing FHIR version '4.0.0'\n// NOTE: BTR 2019-07-30: Updated version dependencies\ninclude FHIRHelpers version '4.0.0' called FHIRHelpers\ninclude MATGlobalCommonFunctions_FHIR4 version '4.0.000' called Global\ninclude SupplementalDataElements_FHIR4 version '1.0.0' called SDE\n\ncodesystem \"LOINC\": 'urn:oid:2.16.840.1.113883.6.1'\ncodesystem \"CPT:2018\": 'urn:oid:2.16.840.1.113883.6.12'\ncodesystem \"SNOMEDCT:2017-09\": 'http://snomed.info/sct/731000124108'  version 'http://snomed.info/sct/731000124108/version/201709'\n\nvalueset \"Acute Pharyngitis (1)\": 'https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1011.1'\nvalueset \"Acute Pharyngitis (2)\": 'https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1011.2'\nvalueset \"Encounter Inpatient SNOMEDCT Value Set\": 'https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.7.307|20160929'\nvalueset \"Face-to-Face Interaction\": 'https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1004.101.12.1048|MU2%20Update@202016-04-01'\n\ncode \"Venous foot pump, device (physical object)\": '442023007' from \"SNOMED-CT\"\nparameter \"Measurement Period\" Interval<DateTime>\n  default Interval[@2019-01-01T00:00:00.0, @2020-01-01T00:00:00.0)\n  \ncontext Patient\n\ndefine \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\"\n\ndefine \"SDE Payer\":\n  SDE.\"SDE Payer\"\n\ndefine \"SDE Race\":\n  SDE.\"SDE Race\"\n\ndefine \"SDE Sex\":\n  SDE.\"SDE Sex\"\n\n//MAT-4844: Test Define with no quotes\ndefine InitialPopulation:\n  true   \n\ndefine \"Denominator Exclusion\":\n    TJC.\"Ischemic Stroke Encounters with Discharge Disposition\"\n        union TJC.\"Comfort Measures during Hospitalization\"\n      \ndefine \"Encounter Performed\":\n    [\"Encounter, Performed\"] EP\n        where EP.relevantPeriod not null\n        \ndefine \"Antithrombotic Not Given at Discharge\":\n    [\"MedicationRequest\": medication in \"Antithrombotic Therapy\"] NoAntithromboticDischarge\n    where NoAntithromboticDischarge.doNotPerform is true\n            and (NoAntithromboticDischarge.reasonCode in \"Medical Reason\"\n                or NoAntithromboticDischarge.reasonCode in \"Patient Refusal\")\n      //Note: expressed as an or with equivalence semantics pending resolution of potential CQL issue.\n      and exists (NoAntithromboticDischarge.category C where FHIRHelpers.ToConcept(C) ~ Global.\"Community\" or FHIRHelpers.ToConcept(C) ~ Global.\"Discharge\")\n      and NoAntithromboticDischarge.status = 'completed'\n      and NoAntithromboticDischarge.intent = 'order'     \n";
declare const qdmTestCql = "\nlibrary PreventiveCareScreeningFollowUpPlan version '0.0.000'\nusing QDM version '5.6'\nvalueset \"Adolescent depression screening assessment\": 'urn:oid:2.16.840.1.113762.1.4.1260.162'\nvalueset \"Adolescent depression screening assessment with version\":  'urn:oid:2.16.840.1.113762.1.4.1260.162' version 'urn:hl7:version:20240307'\n";
declare const cqlWithSyntaxErrors = "library TJCOverall_FHIR4 version '4.0.000'\n\nusing FHIR version '4.0.0'\n// NOTE: BTR 2019-07-30: Updated version dependencies\ninclude FHIRHelpers version '4.0.0' called FHIRHelpers\nincludess MATGlobalCommonFunctions_FHIR4 version '4.0.000' called Global\ninclude SupplementalDataElements_FHIR4 version '1.0.0' called SDE\n\ncodesystem \"LOINC\": 'urn:oid:2.16.840.1.113883.6.1'\ncodesystem \"CPT:2018\": 'urn:oid:2.16.840.1.113883.6.12'\ncodesystem \"SNOMEDCT:2017-09\": 'http://snomed.info/sct/731000124108'  version 'http://snomed.info/sct/731000124108/version/201709'\n\nvalueset \"Acute Pharyngitis (1)\": 'https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1011.1'\nvaluesetss \"Acute Pharyngitis (2)\": 'https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1011.2'\nvalueset \"Encounter Inpatient SNOMEDCT Value Set\": 'https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.7.307|20160929'\nvalueset \"Face-to-Face Interaction\": 'https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1004.101.12.1048|MU2%20Update@202016-04-01'\n\ncode \"Venous foot pump, device (physical object)\": '442023007' from \"SNOMED-CT\"\nparameter  Interval<DateTime>\n  default Interval[@2019-01-01T00:00:00.0, @2020-01-01T00:00:00.0)\n \ncontext Patient\n\ndefine \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\"\n\ndefine \"SDE Payer\":\n  SDE.\"SDE Payer\"\n\ndefine \"SDE Race\":\n  SDE.\"SDE Race\"\n\ndefine \"SDE Sex\":\n  SDE.\"SDE Sex\"       \n";
declare const cqlWithUsedParam = "\nvalueset \"Statin Allergen\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.42' \nparameter \"Measurement Period\" Interval<DateTime>\ndefine \"Has Allergy to Statin\":\n  exists ([AllergyIntolerance: \"Statin Allergen\"] StatinAllergy\n                where StatinAllergy.onset during \"Measurement Period\")\n";
declare const cqlWithUsedDefines = "\nvalueset \"Dementia Medications\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.11.1517'\ndefine \"Initial Population\":\n  exists(\"Dementia Medications Dispensed\")\ndefine \"Dementia Medications Dispensed\":\n  [MedicationDispense: \"Dementia Medications\"] MedicationDispense\n              where MedicationDispense.status in { 'active', 'completed', 'on-hold' }\n";
declare const cqlWithUsedCodeAndCodeSystem = "\ncodesystem \"ICD10CM\": 'http://hl7.org/fhir/sid/icd-10-cm'\ncode \"Encounter for palliative care\": 'Z51.5' from \"ICD10CM\" display 'Encounter for palliative care'\ndefine \"Dementia Medications Dispensed\":\n  [MedicationDispense: \"Encounter for palliative care\"] MedicationDispense\n              where MedicationDispense.status in { 'active', 'completed', 'on-hold' }\n\ndefine \"Initial Population\":\n  exists(\"Dementia Medications Dispensed\")\n";
declare const cqlWithUsedContext = "\nvalueset \"Dementia Medications\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.11.1517'\ncontext Patient\ndefine \"Dementia Medications Dispensed\":\n  [MedicationDispense: \"Dementia Medications\"] MedicationDispense\n                where MedicationDispense.status in { 'active', 'completed', 'on-hold' } \n                and Patient.gender in { 'male', 'female', 'unknown' }\n";
declare const cqlFluentFunctions = "\nvalueset \"Diabetes Mellitus\": 'https://cts.nlm.nih.gov/fhir/ValueSet/melitus'\nvalueset \"Condition Active\": 'https://cts.nlm.nih.gov/fhir/ValueSet/active'\nvalueset \"Condition Recurrence\": 'https://cts.nlm.nih.gov/fhir/ValueSet/recurring'\nvalueset \"Condition Confirmed\": 'https://cts.nlm.nih.gov/fhir/ValueSet/recurring'\ndefine \"Diabetes Conditions\":\n  [Condition: \"Diabetes Mellitus\"]\n\ndefine \"Confirmed and Active or Recurring Diabetes Conditions\":\n  \"Diabetes Conditions\".confirmed().activeOrRecurring()\n \ndefine fluent function \"confirmed\"(Conditions List<Condition>):\n  Conditions C where C.verificationStatus ~ \"Condition Confirmed\"\n\ndefine fluent function \"activeOrRecurring\"(Conditions List<Condition>):\n  Conditions C\n    where C.clinicalStatus ~ \"Condition Active\"\n      or C.clinicalStatus ~ \"Condition Recurrence\"\n";
declare const relatedContextRetrieve = "\nvalueset \"Mother Relationship\": 'https://cts.nlm.nih.gov/fhir/ValueSet/mother_relationship'\nvalueset \"Birth Date\": 'https://cts.nlm.nih.gov/fhir/ValueSet/birth_date'\ncontext Patient\n\ndefine \"Mother\": singleton from ([RelatedPerson: \"Mother Relationship\"])\n\ndefine \"Estimated Due Date\":\n  Last(\n    [\"Mother\" -> \"Observation\": \"Estimated Due Date Exam\"] Exam\n      sort by effective\n  )\n\ndefine \"Gestational Age in Days at Birth\":\n  (280 - (duration in days between \"Estimated Due Date\" and \"Birth Date\")) div 7\n";
declare const aggregateQuery = "\ndefine FactorialOfFive:\n  ({ 1, 2, 3, 4, 5 }) Num\n    aggregate Result starting 1: Result * Num\n";
declare const cqlDefineWithNoName = "\ndefine :\n  true\n";
declare const cqlDefineWithKeyWord = "\ndefine on or:\n  true\n";
export { simpleDefinitionCql, missingCodeSystemCql, fhirTestCql, qdmTestCql, cqlWithSyntaxErrors, cqlWithUsedParam, cqlWithUsedDefines, cqlWithUsedCodeAndCodeSystem, cqlWithUsedContext, cqlFluentFunctions, relatedContextRetrieve, aggregateQuery, cqlDefineWithNoName, cqlDefineWithKeyWord, };
//# sourceMappingURL=testCql.d.ts.map