Metadata
Title | Treatment Prescribed for Cluster Headache
Version | Draft based on 0.1.000
Short Name | TreatmentForClusterHeadache
GUID (Version Independent) | urn:uuid:99661d24-34dd-43eb-a19d-5b3912aefdc6
GUID (Version Specific) | urn:uuid:b12e8f77-82aa-41d1-8b14-5ea8283dc00b
Effective Period | 2026-01-01 through 2026-12-31
Status | draft
Steward (Publisher) | American Academy of Neurology
Developer | Lantana Consulting Group
Description | Percentage of patients 18 years of age or older with a diagnosis of cluster headache (CH) who were prescribed: - acute treatment (population 1) - short-term and/or long-term preventive treatment (population 2) including treatments prescribed by a different clinician.
Copyright | Limited proprietary coding may be contained in the Measure specifications for convenience. A license agreement must be entered prior to a third-party’s use of Current Procedural Terminology (CPT[R]) or other proprietary code set contained in the Measure. Any other use of CPT or other coding by the third-party is strictly prohibited. AANI, APA, AMA, and the former members of the PCPI disclaim all liability for use or accuracy of any CPT or other coding contained in the specifications. CPT(R) contained in the Measure specifications is copyright 2004-2025 American Medical Association. LOINC(R) is copyright 2004-2024 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2024 International Health Terminology Standards Development Organisation. ICD-10 is copyright 2025 World Health Organization. All Rights Reserved.
Disclaimer | These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. THE MEASURES AND SPECIFICATIONS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND. Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM].
Rationale | Cluster headache is underdiagnosed and undertreated due to difficult symptomology and poor recognition (Klapper et al., 2000, Robbins et al., 2016). Although cluster headache has a much lower prevalence than many other types of headaches (Fischera et al., 2008), it is often considered the most severe headache pain. Suicidal ideations in one study were as high as 55% of the study population (Rozen et al., 2011). Appropriate acute and preventive treatment for patients diagnosed with cluster headache leads to reliable symptom relief for attacks and reduction of attack frequency and severity. Cluster headache leads to major socioeconomic effects on patients as well as society due to direct healthcare costs and indirect costs caused by loss of working capacity (Gaul et al., 2011). Approximately 20% of CH patients have lost a job secondary to CH, while another 8% are out of work or on disability secondary to their headaches (Rozen et al., 2011). According to a 2015 study by Lademan et al., “guideline-adherent treatment in cluster headache is about 70% for acute treatment and about 35% for prophylactic treatment". The efficacy rate for treatments for both groups is above 90%.6 This evidence presents a wide gap in care for patients with cluster headache.
Clinical Recommendation Statement | For the acute treatment of CH attacks, Level A advice can be given for the use of sumatriptan SC 6 mg, intranasal zolmitriptan 5 and 10 mg, and 100% oxygen. Level B advice can be given for the use of intranasal sumatriptan 20 mg and oral zolmitriptan 5 and 10 mg. Level C advice can be given for intranasal 10% cocaine, intranasal 10% lidocaine, and subcutaneous octreotide 100 μg (Francis et al., 2010). For the prevention of CH attacks during a cluster bout, Level B advice can be given for intranasal civamide 100 μL and suboccipital steroid injection. Level C advice can be given for melatonin 10 mg, verapamil 360 mg, and lithium 900 mg (Francis et al., 2010). Several new treatments are emerging for the prevention of CH. Open-label and pilot studies have been conducted with topiramate and gabapentin. Deep brain stimulation and occipital nerve stimulation have also been assessed with small trials in medically refractory patients. In the future, there may be a greater number of evidence-based treatment options for the prevention of CH (Francis et al., 2010). The first option for the treatment of acute attacks of cluster headache should be the inhalation of 100% oxygen with at least 7 l/min over 15 min (class II trials) or with the subcutaneous injection of 6 mg sumatriptan (class I trials). An alternative would be sumatriptan 20 mg nasal spray or zolmitriptan 5 mg nasal spray (one class I trial each), with the disadvantage of a slower onset and the advantage of being able to treat more attacks in 24 h than with injected sumatriptan (May et al., 2006). Prophylaxis of cluster headache should be tried first with verapamil at a daily dose of at least 240mg (maximum dose depends on efficacy or tolerability, ECG controls are obligatory with increasing doses). Although no class I or II trials are available, steroids are clearly effective for treating cluster headache. Therefore, the use of at least 100 mg methylprednisone (or equivalent corticosteroid) given orally or up to 500mg I.V. per day over 5 days (then tapering down) is recommended (May et al., 2006). Intranasal lidocaine (4%) and subcutaneous octreotide (100 μg) can be tried for treating acute cluster headache attacks if level A medication is ineffective or contraindicated. Oral administration of zolmitriptan at 5–10mg is effective in some patients (class I trial) but high doses produce more side effects and limit practical use (May et al., 2006). Methysergide and lithium are drugs of second choice if verapamil is ineffective or contraindicated. Corticosteroids can be used for short periods where bouts are short or to help establish another medication. Topiramate is promising, but only open trials exist at this point. Melatonin is useful in some patients. Except for lithium, the maximum dose depends on efficacy and tolerability. Ergotamine tartrate is recommended for short-term prophylaxis (class III studies). Despite positive class II studies, pizotifen and intranasal capsaicin should only be used in rare cases because of side effects (May et al., 2006). There is insufficient evidence from good quality RCTs to establish the effects of HBOT on cluster headache as a treatment for an acute episode or as a prophylaxis against future clusters. Three RCTs suggest that the administration of NBOT to treat acute cluster headache is likely to be effective in more than 70% of cases, and given the safety and ease of administration of NBOT, NBOT use is likely to continue. There is no evidence to support NBOT use as a prophylactic measure (Bennett et al., 2015).
Citation | Bennett, M. H., French, C., Schnabel, A., Wasiak, J., Kranke, P., & Weibel, S. (2015). Normobaric and hyperbaric oxygen therapy for the treatment and prevention of migraine and cluster headache. Cochrane Database of Systematic Reviews, 2015(12), CD005219. https://doi.org/10.1002/14651858.CD005219.pub3
Citation | Evers, S., Áfra, J., Frese, A., Goadsby, P. J., Linde, M., May, A., & Sándor, P. S. (2010). Cluster headache and other trigemino‐autonomic cephalgias. In S. Olesen, P. Tfelt-Hansen, & M. A. Welch (Eds.), The headaches (4th ed., pp. 179–190). Wiley-Blackwell. https://doi.org/10.1002/9781444328394.ch11
Citation | Fischera, M., Marziniak, M., Gralow, I., & Evers, S. (2008). The incidence and prevalence of cluster headache: A meta-analysis of population-based studies. Cephalalgia, 28(6), 614–618. https://doi.org/10.1111/j.1468-2982.2008.01592.x
Citation | Francis, G. J., Becker, W. J., & Pringsheim, T. M. (2010). Acute and preventive pharmacologic treatment of cluster headache. Neurology, 75(5), 463–473. https://doi.org/10.1212/WNL.0b013e3181eb58c8
Citation | Gaul, C., Finken, J., Biermann, J., Mostardt, S., Diener, H.-C., Müller, O., Wasem, J., & Neumann, A. (2011). Treatment costs and indirect costs of cluster headache: A health economics analysis. Cephalalgia, 31(16), 1664–1672. https://doi.org/10.1177/0333102411425866
Citation | Klapper, J. A., Klapper, A., & Voss, T. (2000). The misdiagnosis of cluster headache: A nonclinic, population-based, internet survey. Headache: The Journal of Head and Face Pain, 40(9), 730–735. https://doi.org/10.1046/j.1526-4610.2000.00127.x
Citation | Lademann, V., Jansen, J.-P., Evers, S., & Frese, A. (2015). Evaluation of guideline-adherent treatment in cluster headache. Cephalalgia, 36(8), 760–764. https://doi.org/10.1177/0333102415612774
Citation | May, A., Leone, M., Áfra, J., Linde, M., Sándor, P. S., Evers, S., & Goadsby, P. J. (2006). EFNS guidelines on the treatment of cluster headache and other trigeminal-autonomic cephalalgias. European Journal of Neurology, 13(10), 1066–1077. https://doi.org/10.1111/j.1468-1331.2006.01566.x
Citation | Robbins, M. S., Starling, A. J., Pringsheim, T. M., Becker, W. J., & Schwedt, T. J. (2016). Treatment of cluster headache: The American Headache Society evidence-based guidelines. Headache, 56(7), 1093–1106. https://doi.org/10.1111/head.12866
Citation | Rozen, T. D., & Fishman, R. S. (2011). Cluster headache in the United States of America: Demographics, clinical characteristics, triggers, suicidality, and personal burden. Headache: The Journal of Head and Face Pain, 52(1), 99–113. https://doi.org/10.1111/j.1526-4610.2011.02028.x
Guidance (Usage) | Population 1: Acute treatment prescribed for cluster headache - Acute treatments include, but are not limited to, the following: - oxygen 100%, - sumatriptan subcutaneous (SC) - sumatriptan intranasal (IN) - zolmitriptan IN - dihydroergotamine (DHE) ((intravenous (IV), IM, SC, IN) - external vagus nerve stimulation Population 2: Preventive treatment prescribed for cluster headache - Short term preventive treatments include, but are not limited to, the following: - occipital nerve injection with steroid - oral steroid(s). - Long term preventive treatments include, but are not limited to, the following: - lithium - galcanezumab - verapamil A provider cannot prescribe ineffective or contraindicated treatment. A patient may not need treatment if they have not had any CH attacks in the past 12 months. A patient and/or caregiver reserve the right to decline a prescription. Some of these treatments are costly to be paid out of pocket for a patient who does not have health insurance.
Measure Group (Rate) (ID: Group_1)
Summary | Percentage of patients 18 years of age or older with a diagnosis of cluster headache (CH) who were prescribed an acute treatment including treatments prescribed by a different clinician
Basis | boolean
Scoring | [http://terminology.hl7.org/CodeSystem/measure-scoring#proportion: 'Proportion']
Type | [http://terminology.hl7.org/CodeSystem/measure-type#process: 'Process']
Improvement Notation | [http://terminology.hl7.org/CodeSystem/measure-improvement-notation#increase: 'Increased score indicates improvement']
Initial Population | ID: InitialPopulation_1 Description: Patients aged 18 years of age or older at the start of the measurement period, who have a diagnosis of CH and have an encounter during the measurement period Logic Definition: Initial Population
Denominator | ID: Denominator_1 Description: Equals Initial Population Logic Definition: Denominator
Numerator | ID: Numerator_1 Description: Patients who were prescribed acute treatment, including treatments prescribed by a different clinician once during the measurement period Logic Definition: Numerator 1
Denominator Exception | ID: DenominatorException_1 Description: Guideline recommended treatment is exempt for the following: • Patient had an adverse event or allergy to CH treatments. • Patient declined treatment. • Medical reason exist for not prescribing CH treatment (medically contraindicated or ineffective, unwarranted, or attacks are infrequent or controlled). Logic Definition: Denominator Exceptions 1
Measure Group (Rate) (ID: Group_2)
Summary | Percentage of patients 18 years of age or older with a diagnosis of cluster headache (CH) who were prescribed short-term and/or long-term preventive treatment including treatments prescribed by a different clinician.
Basis | boolean
Scoring | [http://terminology.hl7.org/CodeSystem/measure-scoring#proportion: 'Proportion']
Type | [http://terminology.hl7.org/CodeSystem/measure-type#process: 'Process']
Improvement Notation | [http://terminology.hl7.org/CodeSystem/measure-improvement-notation#increase: 'Increased score indicates improvement']
Initial Population | ID: InitialPopulation_2 Description: Patients aged 18 years of age or older at the start of the measurement period, who have a diagnosis of CH and have an encounter during the measurement period Logic Definition: Initial Population
Denominator | ID: Denominator_2 Description: Equals Initial Population Logic Definition: Denominator
Numerator | ID: Numerator_2 Description: Patients who were prescribed short-term or long-term preventive treatment, including treatments prescribed by a different clinician once during the measurement period Logic Definition: Numerator 2
Denominator Exception | ID: DenominatorException_2 Description: Guideline recommended treatment is exempt for the following: • Patient had an adverse event or allergy to CH treatments • Patient declined treatment • Medical reason exist for not prescribing cluster headache treatment (medically contraindicated or ineffective, unwarranted, or attacks are infrequent or controlled) Logic Definition: Denominator Exceptions 2
Supplemental Data Guidance | For every patient evaluated by this measure also identify payer, race, ethnicity and sex
Supplemental Data Elements
Supplemental Data Element | ID: sde-ethnicity Usage Code: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data] Description: SDE Ethnicity Logic Definition: SDE Ethnicity
Supplemental Data Element | ID: sde-payer Usage Code: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data] Description: SDE Payer Logic Definition: SDE Payer
Supplemental Data Element | ID: sde-race Usage Code: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data] Description: SDE Race Logic Definition: SDE Race
Supplemental Data Element | ID: sde-sex Usage Code: [http://terminology.hl7.org/CodeSystem/measure-data-usage#supplemental-data] Description: SDE Sex Logic Definition: SDE Sex
Measure Logic
Primary Library | https://madie.cms.gov/Library/TreatmentPrescribedForClusterHeadache
Contents | Population Criteria Logic Definitions Terminology Dependencies Data Requirements
Population Criteria
Measure Group (Rate) (ID: Group_1)
Initial Population
    define "Initial Population":
      exists ( "Adult Encounters With Diagnosis Of Cluster Headaches" )
Denominator
    define "Denominator":
      "Initial Population"
Numerator
    define "Numerator 1":
      "Has Cluster Headache Acute Treatment Ordered Or Reported"
Denominator Exception
    define "Denominator Exceptions 1":
      "Has Exceptions For Not Prescribing Acute Treatment"
Measure Group (Rate) (ID: Group_2)
Initial Population
    define "Initial Population":
      exists ( "Adult Encounters With Diagnosis Of Cluster Headaches" )
Denominator
    define "Denominator":
      "Initial Population"
Numerator
    define "Numerator 2":
      "Has Cluster Headache Preventive Treatment Ordered Or Reported"
Denominator Exception
    define "Denominator Exceptions 2":
      "Has Exceptions For Not Prescribing Preventive Treatment"
Logic Definitions
Logic Definition | Library Name: SupplementalDataElements
    define "SDE Sex":
      case
        when Patient.sex = '248153007' then "Male (finding)"
        when Patient.sex = '248152002' then "Female (finding)"
        else null
      end
Logic Definition | Library Name: SupplementalDataElements
    define "SDE Payer":
      [Coverage: type in "Payer Type"] Payer
        return {
          code: Payer.type,
          period: Payer.period
        }
Logic Definition | Library Name: SupplementalDataElements
    define "SDE Ethnicity":
      Patient.ethnicity E
        return Tuple {
          codes: { E.ombCategory } union E.detailed,
          display: E.text
        }
Logic Definition | Library Name: SupplementalDataElements
    define "SDE Race":
      Patient.race R
        return Tuple {
          codes: R.ombCategory union R.detailed,
          display: R.text
        }
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "SDE Sex":
      SDE."SDE Sex"
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    //Population 1

    define "Adult Encounters With Diagnosis Of Cluster Headaches":
      ( ( [Encounter: "Office Visit"]
          union [Encounter: "Online Evaluation and Management Encounters"]
          union [Encounter: "Telephone Visits All"] ) QualifyingEncounter
          with [ConditionProblemsHealthConcerns: "Cluster Headache"] ClusterHA
            such that "AgeInYearsAt"(date from start of "Measurement Period") >= 18
              and QualifyingEncounter.period during day of "Measurement Period"
              and ClusterHA.prevalenceInterval ( ) starts before or on day of QualifyingEncounter.period
              and QualifyingEncounter.status = 'finished'
              and ClusterHA.isActive ( )
      )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Initial Population":
      exists ( "Adult Encounters With Diagnosis Of Cluster Headaches" )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Denominator":
      "Initial Population"
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Allergy To Acute Cluster Headache Medication":
      exists ( [AllergyIntolerance: "Ingredient of Acute Cluster Headache Medication"] AcuteAllergy
          with "Adult Encounters With Diagnosis Of Cluster Headaches" ValidEncounter
            such that start of AcuteAllergy.onset.toInterval ( ) before or on day of ValidEncounter.period
              or AcuteAllergy.clinicalStatus ~ QICoreCommon."allergy-active"
      )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Adverse Reaction To Acute Cluster Headache Medication":
      exists ( [AdverseEvent: "Ingredient of Acute Cluster Headache Medication"] AdverseEvent
          with "Adult Encounters With Diagnosis Of Cluster Headaches" ValidEncounter
            such that AdverseEvent.recordedDate before or on day of ValidEncounter.period
              and AdverseEvent.actuality ~ 'actual'
      )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Patient Or Medical Reason No Acute Cluster Headache Treatment Orders Or Procedures":
      exists ( [MedicationNotRequested: medication in "Acute cluster headache medication"] NoMedicationTx
          where NoMedicationTx.authoredOn during day of "Measurement Period"
            and ( NoMedicationTx.reasonCode in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
                or NoMedicationTx.reasonCode in "Medical Reason For Not Providing Treatment"
            )
            and NoMedicationTx.status ~ 'completed'
      )
        or exists ( ( [ServiceNotRequested: "Non Invasive Oxygen Therapy by Nasal Cannula or Mask"]
            union [ServiceNotRequested: "Oxygen Therapy"]
            union [ServiceNotRequested: "External Vagus Nerve Stimulation (HCPCS II)"]
            union [ServiceNotRequested: "External Vagus Nerve Stimulator (UMLS)"] ) NoAcuteTx
            where NoAcuteTx.authoredOn during day of "Measurement Period"
              and ( NoAcuteTx.reasonRefused in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
                  or NoAcuteTx.reasonCode in "Medical Reason For Not Providing Treatment"
              )
              and NoAcuteTx.status ~ 'completed'
        )
        or exists ( ( [ProcedureNotDone: "Oxygen Therapy"]
            union [ProcedureNotDone: "Non Invasive Oxygen Therapy by Nasal Cannula or Mask"] ) NoAcutePx
            where NoAcutePx.recorded during day of "Measurement Period"
              and ( NoAcutePx.statusReason in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
                  or NoAcutePx.statusReason in "Medical Reason For Not Providing Treatment"
              )
              and NoAcutePx.status ~ 'not-done'
        )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Patient Or Medical Reason for No Device":
      exists ( from
          ( [DeviceRequest: "Oxygen Therapy (Physical Object)"]
            union [DeviceRequest: "Oxygen Therapy (HCPCS)"]
            union [DeviceRequest: "External Vagus Nerve Stimulation (SNOMEDCT)"]
            union [DeviceRequest: "External Vagus Nerve Stimulation (HCPCS II)"]
            union [DeviceRequest: "External Vagus Nerve Stimulator (UMLS)"] ) DeviceOrderReject,
          [TaskRejected] T
          where DeviceOrderReject.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }
            and DeviceOrderReject.status = 'active'
            and T.focus.references ( DeviceOrderReject )
            and T.code ~ QICoreCommon."Fulfill"
            and DeviceOrderReject.authoredOn during day of "Measurement Period"
            and ( T.statusReason in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
                or T.statusReason in "Medical Reason For Not Providing Treatment"
            )
          return {
            id: DeviceOrderReject.id,
            requestStatusReason: T.statusReason,
            authoredOn: DeviceOrderReject.authoredOn
          }
      )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Exceptions For Not Prescribing Acute Treatment":
      "Has Allergy To Acute Cluster Headache Medication"
        or "Has Adverse Reaction To Acute Cluster Headache Medication"
        or "Has Patient Or Medical Reason No Acute Cluster Headache Treatment Orders Or Procedures"
        or "Patient Or Medical Reason for No Device"
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Denominator Exceptions 1":
      "Has Exceptions For Not Prescribing Acute Treatment"
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Cluster Headache Acute Treatment Order Or Procedure":
      exists ( [MedicationRequest: medication in "Acute cluster headache medication"] MedicationTx
          where MedicationTx.authoredOn during day of "Measurement Period"
            and MedicationTx.status in { 'active', 'completed' }
      )
        or exists ( ( [ServiceRequest: "Non Invasive Oxygen Therapy by Nasal Cannula or Mask"]
            union [ServiceRequest: "Oxygen Therapy"]
            union [ServiceRequest: "External Vagus Nerve Stimulation (HCPCS II)"]
            union [ServiceRequest: "External Vagus Nerve Stimulator (UMLS)"] ) AcuteTx
            where AcuteTx.authoredOn during day of "Measurement Period"
              and AcuteTx.intent ~ 'order'
              and AcuteTx.status in { 'active', 'completed' }
        )
        or exists ( ( [DeviceRequest: "Oxygen Therapy (Physical Object)"]
            union [DeviceRequest: "Oxygen Therapy (HCPCS)"]
            union [DeviceRequest: "External Vagus Nerve Stimulation (SNOMEDCT)"]
            union [DeviceRequest: "External Vagus Nerve Stimulation (HCPCS II)"]
            union [DeviceRequest: "External Vagus Nerve Stimulator (UMLS)"] ) DeviceOrder
            where DeviceOrder.authoredOn during day of "Measurement Period"
              and DeviceOrder.intent ~ 'order'
              and DeviceOrder.status in { 'active', 'completed' }
              and not exists ( ["TaskRejected"] TaskReject
                  where TaskReject.focus.references ( DeviceOrder )
                    and TaskReject.code ~ QICoreCommon."Fulfill"
              )
        )
        or exists ( ( [Procedure: "Oxygen Therapy"]
            union [Procedure: "Non Invasive Oxygen Therapy by Nasal Cannula or Mask"]
            union [Procedure: "External Vagus Nerve Stimulation (HCPCS II)"]
            union [Procedure: "External Vagus Nerve Stimulator (UMLS)"] ) AcutePx
            where AcutePx.performed.toInterval ( ) during day of "Measurement Period"
              and AcutePx.status ~ 'completed'
        )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Acute Treatment Devices":
      ( [Device: "Oxygen Therapy (Physical Object)"]
          union [Device: "Oxygen Therapy (HCPCS)"]
          union [Device: "External Vagus Nerve Stimulation (SNOMEDCT)"]
          union [Device: "External Vagus Nerve Stimulation (HCPCS II)"]
          union [Device: "External Vagus Nerve Stimulator (UMLS)"]
      )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Device Reported":
      ( [DeviceUseStatement] DeviceInUse
        where DeviceInUse.recordedOn during day of "Measurement Period"
          and DeviceInUse.status ~ 'active' ) DeviceUse
        where exists ( "Acute Treatment Devices" )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Cluster Headache Acute Treatment Reported":
      exists ( [MedicationStatement: medication in "Acute cluster headache medication"] AcuteMed
          where AcuteMed.status ~ 'active'
            and AcuteMed.dateAsserted during day of "Measurement Period"
      )
        or ( exists "Device Reported" )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Cluster Headache Acute Treatment Ordered Or Reported":
      ( "Has Cluster Headache Acute Treatment Order Or Procedure"
          or "Has Cluster Headache Acute Treatment Reported"
      )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Numerator 1":
      "Has Cluster Headache Acute Treatment Ordered Or Reported"
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "SDE Payer":
      SDE."SDE Payer"
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Cluster Headache Preventive Treatment Order Or Procedure":
      exists ( ( [MedicationRequest: medication in "Short term preventive medication for cluster headache"]
          union [MedicationRequest: medication in "Long term preventive medications for cluster headache"] ) MedicationTx
          where MedicationTx.authoredOn during day of "Measurement Period"
            and MedicationTx.status in { 'active', 'completed' }
      )
        or exists ( [ServiceRequest: "Short term preventive treatment for cluster headache"] PreventiveTx
            where PreventiveTx.authoredOn during day of "Measurement Period"
              and PreventiveTx.intent ~ 'order'
              and PreventiveTx.status in { 'active', 'completed' }
        )
        or exists ( [Procedure: "Short term preventive treatment for cluster headache"] PreventivePx
            where PreventivePx.performed.toInterval ( ) starts during day of "Measurement Period"
              and PreventivePx.status = 'completed'
        )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Cluster Headache Preventive Treatment Reported":
      exists ( ( [MedicationStatement: medication in "Short term preventive medication for cluster headache"]
          union [MedicationStatement: medication in "Long term preventive medications for cluster headache"] ) PreventiveMed
          where PreventiveMed.status ~ 'active'
            and PreventiveMed.dateAsserted during day of "Measurement Period"
      )
        or exists ( [Procedure: "Short term preventive treatment for cluster headache"] ProcedureTx
            where ProcedureTx.recorded during day of "Measurement Period"
        )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    //Population 2

    define "Has Cluster Headache Preventive Treatment Ordered Or Reported":
      "Has Cluster Headache Preventive Treatment Order Or Procedure"
        or "Has Cluster Headache Preventive Treatment Reported"
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Numerator 2":
      "Has Cluster Headache Preventive Treatment Ordered Or Reported"
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "SDE Ethnicity":
      SDE."SDE Ethnicity"
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Allergy To Preventive Cluster Headache Medication":
      exists ( ( [AllergyIntolerance: "Ingredient of Long term Preventive Cluster Headache Medication"]
          union [AllergyIntolerance: "Ingredient of Oral Steroid for Preventive Cluster Headache Medications"] ) PreventiveAllergy
          with "Adult Encounters With Diagnosis Of Cluster Headaches" ValidEncounter
            such that start of PreventiveAllergy.onset.toInterval ( ) before or on day of ValidEncounter.period
      )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Adverse Reaction To Preventive Cluster Headache Medication":
      exists ( ( [AdverseEvent: "Ingredient of Long term Preventive Cluster Headache Medication"]
          union [AdverseEvent: "Ingredient of Oral Steroid for Preventive Cluster Headache Medications"] ) AdverseEvent
          with "Adult Encounters With Diagnosis Of Cluster Headaches" ValidEncounter
            such that AdverseEvent.recordedDate before or on day of ValidEncounter.period
      )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Patient Or Medical Reason No Preventive Cluster Headache Treatment Orders Or Procedures":
      exists ( ( [MedicationNotRequested: medication in "Short term preventive medication for cluster headache"]
          union [MedicationNotRequested: medication in "Long term preventive medications for cluster headache"] ) NoMedicationTx
          where NoMedicationTx.authoredOn during day of "Measurement Period"
            and ( NoMedicationTx.reasonCode in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
                or NoMedicationTx.reasonCode in "Medical Reason For Not Providing Treatment"
            )
            and NoMedicationTx.status = 'completed'
      )
        or exists ( [ServiceNotRequested: "Short term preventive treatment for cluster headache"] NoPreventiveTx
            where NoPreventiveTx.authoredOn during day of "Measurement Period"
              and ( NoPreventiveTx.reasonRefused in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
                  or NoPreventiveTx.reasonRefused in "Medical Reason For Not Providing Treatment"
              )
              and NoPreventiveTx.status ~ 'completed'
        )
        or exists ( [ProcedureNotDone: "Short term preventive treatment for cluster headache"] NoPreventivePx
            where NoPreventivePx.recorded during day of "Measurement Period"
              and ( NoPreventivePx.statusReason in "Patient Declines Treatment for Cluster Headache (SNOMEDCT)"
                  or NoPreventivePx.statusReason in "Medical Reason For Not Providing Treatment"
              )
              and NoPreventivePx.status = 'not-done'
        )
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Has Exceptions For Not Prescribing Preventive Treatment":
      "Has Allergy To Preventive Cluster Headache Medication"
        or "Has Adverse Reaction To Preventive Cluster Headache Medication"
        or "Has Patient Or Medical Reason No Preventive Cluster Headache Treatment Orders Or Procedures"
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "Denominator Exceptions 2":
      "Has Exceptions For Not Prescribing Preventive Treatment"
Logic Definition | Library Name: TreatmentPrescribedForClusterHeadache
    define "SDE Race":
      SDE."SDE Race"
Logic Definition | Library Name: FHIRHelpers
    define function ToString(value uri): value.value
Logic Definition | Library Name: FHIRHelpers
    /*
    @description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)
    value to a CQL DateTime Interval
    @comment: If the start value of the given period is unspecified, the starting
    boundary of the resulting interval will be open (meaning the start of the interval
    is unknown, as opposed to interpreted as the beginning of time).
    */
    define function ToInterval(period FHIR.Period):
        if period is null then
            null
        else
            if period."start" is null then
                Interval(period."start".value, period."end".value]
            else
                Interval[period."start".value, period."end".value]
Logic Definition | Library Name: FHIRHelpers
    /*
    @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.
    */
    define function ToConcept(concept FHIR.CodeableConcept):
        if concept is null then
            null
        else
            System.Concept {
                codes: concept.coding C return ToCode(C),
                display: concept.text.value
            }
Logic Definition | Library Name: FHIRHelpers
    /*
    @description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.
    */
    define function ToCode(coding FHIR.Coding):
        if coding is null then
            null
        else
            System.Code {
              code: coding.code.value,
              system: coding.system.value,
              version: coding.version.value,
              display: coding.display.value
            }
Logic Definition | Library Name: QICoreCommon
    /*
    @description: Returns an interval representing the normalized prevalence period of a given Condition.
    @comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from
    onset to abatement as specified in the given Condition. If the condition is active, or has an abatement date the resulting
    interval will have a closed ending boundary. Otherwise, the resulting interval will have an open ending boundary.
    */
    define fluent function prevalenceInterval(condition Choice<"ConditionEncounterDiagnosis", "ConditionProblemsHealthConcerns">):
    if condition.clinicalStatus ~ "active"
      or condition.clinicalStatus ~ "recurrence"
      or condition.clinicalStatus ~ "relapse" then
      Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]
    else
        (end of condition.abatementInterval()) abatementDate
        return if abatementDate is null then
          Interval[start of condition.onset.toInterval(), abatementDate)
        else
          Interval[start of condition.onset.toInterval(), abatementDate]
Logic Definition | Library Name: QICoreCommon
    /*
    @description: Returns an interval representing the normalized abatement of a given Condition.
    @comment: If the abatement element of the Condition is represented as a DateTime, the result
    is an interval beginning and ending on that DateTime.
    If the abatement is represented as a Quantity, the quantity is expected to be a calendar-duration and is interpreted as the age of the patient. The
    result is an interval from the date the patient turned that age to immediately before one year later.
    If the abatement is represented as a Quantity Interval, the quantities are expected to be calendar-durations and are interpreted as an age range during
    which the abatement occurred. The result is an interval from the date the patient turned the starting age of the quantity interval, and ending immediately
    before one year later than the date the patient turned the ending age of the quantity interval.
    */
    define fluent function abatementInterval(condition Choice<"ConditionEncounterDiagnosis", "ConditionProblemsHealthConcerns">):
    	if condition.abatement is DateTime then
    	  Interval[condition.abatement as DateTime, condition.abatement as DateTime]
    	else if condition.abatement is Quantity then
    		Interval[Patient.birthDate + (condition.abatement as Quantity),
    			Patient.birthDate + (condition.abatement as Quantity) + 1 year)
    	else if condition.abatement is Interval<Quantity> then
    	  Interval[Patient.birthDate + (condition.abatement.low as Quantity),
    		  Patient.birthDate + (condition.abatement.high as Quantity) + 1 year)
    	else if condition.abatement is Interval<DateTime> then
    	  Interval[condition.abatement.low, condition.abatement.high)
    	else null as Interval<DateTime>
Logic Definition | Library Name: QICoreCommon
    /* Candidates for FHIRCommon */

    /*
    @description: Returns true if the given condition has a clinical status of active, recurrence, or relapse
    */
    define fluent function isActive(condition Choice<"ConditionEncounterDiagnosis", "ConditionProblemsHealthConcerns">):
      condition.clinicalStatus ~ "active"
        or condition.clinicalStatus ~ "recurrence"
        or condition.clinicalStatus ~ "relapse"
Logic Definition | Library Name: QICoreCommon
    /*
    @description: Returns true if the given reference is to the given resource
    @comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.
    NOTE: This function assumes resources from the same source server.
    */
    define fluent function references(reference Reference, resource Resource):
      resource.id = Last(Split(reference.reference, '/'))
Logic Definition | Library Name: QICoreCommon
    /*
    @description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
    @comment: Normalizes a choice type of DateTime, Quanitty, Interval<DateTime>, or Interval<Quantity> types
    to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
    representations for timing-valued elements in QICore, allowing this function to be used across any resource.
    The input can be provided as a DateTime, Quantity, Interval<DateTime> or Interval<Quantity>.
    The intent of this function is to provide a clear and concise mechanism to treat single
    elements that have multiple possible representations as intervals so that logic doesn't have to account
    for the variability. More complex calculations (such as medication request period or dispense period
    calculation) need specific guidance and consideration. That guidance may make use of this function, but
    the focus of this function is on single element calculations where the semantics are unambiguous.
    If the input is a DateTime, the result a DateTime Interval beginning and ending on that DateTime.
    If the input is a Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,
    and the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.
    If the input is a DateTime Interval, the result is the input.
    If the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result
    is a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending
    immediately before one year later than the date the patient turned the age given as the end of the quantity interval.
    If the input is a Timing, an error will be thrown indicating that Timing calculations are not implemented. Any other input will reslt in a null DateTime Interval
    */
    define fluent function toInterval(choice Choice<DateTime, Quantity, Interval<DateTime>, Interval<Quantity>, Timing>):
      case
    	  when choice is DateTime then
        	Interval[choice as DateTime, choice as DateTime]
    		when choice is Interval<DateTime> then
      		choice as Interval<DateTime>
    		when choice is Quantity then
    		  Interval[Patient.birthDate + (choice as Quantity),
    			  Patient.birthDate + (choice as Quantity) + 1 year)
    		when choice is Interval<Quantity> then
    		  Interval[Patient.birthDate + (choice.low as Quantity),
    			  Patient.birthDate + (choice.high as Quantity) + 1 year)
    		when choice is Timing then
          Message(null, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported') as Interval<DateTime>
    		else
    			null as Interval<DateTime>
    	end
Terminology
Code System | Description: Code system SNOMEDCT Resource: http://snomed.info/sct Canonical URL: `http://snomed.info/sct`
Code System | Description: Code system ConditionClinicalStatusCodes Resource: http://terminology.hl7.org/CodeSystem/condition-clinical Canonical URL: `http://terminology.hl7.org/CodeSystem/condition-clinical`
Code System | Description: Code system AllergyIntoleranceClinicalStatusCodes Resource: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical Canonical URL: `http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical`
Code System | Description: Code system TaskCodeSystem Resource: http://hl7.org/fhir/CodeSystem/task-code Canonical URL: `http://hl7.org/fhir/CodeSystem/task-code`
Value Set | Description: Value set Office Visit Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.11.1005 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.11.1005`
Value Set | Description: Value set Online Evaluation and Management Encounters Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.539 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.539`
Value Set | Description: Value set Telephone Visits All Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1260.161 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1260.161`
Value Set | Description: Value set Cluster Headache Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.464 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.464`
Value Set | Description: Value set Ingredient of Acute Cluster Headache Medication Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.271 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.271`
Value Set | Description: Value set Acute cluster headache medication Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659`
Value Set | Description: Value set Patient Declines Treatment for Cluster Headache (SNOMEDCT) Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.555 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.555`
Value Set | Description: Value set Medical Reason For Not Providing Treatment Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473`
Value Set | Description: Value set Non Invasive Oxygen Therapy by Nasal Cannula or Mask Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209`
Value Set | Description: Value set Oxygen Therapy Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550`
Value Set | Description: Value set External Vagus Nerve Stimulation (HCPCS II) Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668`
Value Set | Description: Value set External Vagus Nerve Stimulator (UMLS) Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666`
Value Set | Description: Value set Oxygen Therapy (Physical Object) Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.665 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.665`
Value Set | Description: Value set Oxygen Therapy (HCPCS) Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.552 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.552`
Value Set | Description: Value set External Vagus Nerve Stimulation (SNOMEDCT) Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.554 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.554`
Value Set | Description: Value set Payer Type Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591`
Value Set | Description: Value set Short term preventive medication for cluster headache Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655`
Value Set | Description: Value set Long term preventive medications for cluster headache Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654`
Value Set | Description: Value set Short term preventive treatment for cluster headache Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661`
Value Set | Description: Value set Ingredient of Long term Preventive Cluster Headache Medication Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.270 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.270`
Value Set | Description: Value set Ingredient of Oral Steroid for Preventive Cluster Headache Medications Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.272 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.272`
Direct Reference Code | Display: Male (finding) Code: 248153007 System: `http://snomed.info/sct`
Direct Reference Code | Display: Female (finding) Code: 248152002 System: `http://snomed.info/sct`
Direct Reference Code | Display: Active Code: active System: `http://terminology.hl7.org/CodeSystem/condition-clinical`
Direct Reference Code | Display: Recurrence Code: recurrence System: `http://terminology.hl7.org/CodeSystem/condition-clinical`
Direct Reference Code | Display: Relapse Code: relapse System: `http://terminology.hl7.org/CodeSystem/condition-clinical`
Direct Reference Code | Display: Active Code: active System: `http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical`
Direct Reference Code | Display: Fulfill Code: fulfill System: `http://hl7.org/fhir/CodeSystem/task-code`
Dependencies
Dependency | Description: QICore model information Resource: http://hl7.org/fhir/Library/QICore-ModelInfo Canonical URL: `http://hl7.org/fhir/Library/QICore-ModelInfo`
Dependency | Description: Library SDE Resource: https://madie.cms.gov/Library/SupplementalDataElements|5.1.000 Canonical URL: `https://madie.cms.gov/Library/SupplementalDataElements|5.1.000`
Dependency | Description: Library FHIRHelpers Resource: https://madie.cms.gov/Library/FHIRHelpers|4.4.000 Canonical URL: `https://madie.cms.gov/Library/FHIRHelpers|4.4.000`
Dependency | Description: Library QICoreCommon Resource: https://madie.cms.gov/Library/QICoreCommon|4.0.000 Canonical URL: `https://madie.cms.gov/Library/QICoreCommon|4.0.000`
Data Requirements
Data Requirement | Type: Patient Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient Must Support Elements: extension, birthDate, birthDate.value, url
Data Requirement | Type: Encounter Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter Must Support Elements: type, period, status, status.value Code Filter(s): Path: type ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.11.1005
Data Requirement | Type: Encounter Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter Must Support Elements: type, period, status, status.value Code Filter(s): Path: type ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.539
Data Requirement | Type: Encounter Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter Must Support Elements: type, period, status, status.value Code Filter(s): Path: type ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1260.161
Data Requirement | Type: Condition Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns Must Support Elements: code Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.464
Data Requirement | Type: AllergyIntolerance Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance Must Support Elements: code, onset, clinicalStatus Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.271
Data Requirement | Type: AllergyIntolerance Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance Must Support Elements: code, onset Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.270
Data Requirement | Type: AllergyIntolerance Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance Must Support Elements: code, onset Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.272
Data Requirement | Type: AdverseEvent Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent Must Support Elements: event, recordedDate, recordedDate.value, actuality, actuality.value Code Filter(s): Path: event ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.271
Data Requirement | Type: AdverseEvent Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent Must Support Elements: event, recordedDate, recordedDate.value Code Filter(s): Path: event ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.270
Data Requirement | Type: AdverseEvent Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent Must Support Elements: event, recordedDate, recordedDate.value Code Filter(s): Path: event ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.272
Data Requirement | Type: MedicationRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationnotrequested Must Support Elements: medication, authoredOn, authoredOn.value, reasonCode, status, status.value Code Filter(s): Path: medication ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659
Data Requirement | Type: MedicationRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationnotrequested Must Support Elements: medication, authoredOn, authoredOn.value, reasonCode, status, status.value Code Filter(s): Path: medication ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655
Data Requirement | Type: MedicationRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationnotrequested Must Support Elements: medication, authoredOn, authoredOn.value, reasonCode, status, status.value Code Filter(s): Path: medication ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654
Data Requirement | Type: ServiceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested Must Support Elements: code, authoredOn, authoredOn.value, extension, reasonCode, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209
Data Requirement | Type: ServiceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested Must Support Elements: code, authoredOn, authoredOn.value, extension, reasonCode, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550
Data Requirement | Type: ServiceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested Must Support Elements: code, authoredOn, authoredOn.value, extension, reasonCode, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668
Data Requirement | Type: ServiceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested Must Support Elements: code, authoredOn, authoredOn.value, extension, reasonCode, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666
Data Requirement | Type: ServiceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicenotrequested Must Support Elements: code, authoredOn, authoredOn.value, extension, reasonCode, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661
Data Requirement | Type: Procedure Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone Must Support Elements: code, extension, statusReason, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550
Data Requirement | Type: Procedure Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone Must Support Elements: code, extension, statusReason, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209
Data Requirement | Type: Procedure Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone Must Support Elements: code, extension, statusReason, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661
Data Requirement | Type: Resource Profile(s): http://hl7.org/fhir/StructureDefinition/Resource Must Support Elements: id, id.value
Data Requirement | Type: DeviceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest Must Support Elements: code, intent, intent.value, status, status.value, authoredOn, authoredOn.value, id, id.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.665
Data Requirement | Type: DeviceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest Must Support Elements: code, intent, intent.value, status, status.value, authoredOn, authoredOn.value, id, id.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.552
Data Requirement | Type: DeviceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest Must Support Elements: code, intent, intent.value, status, status.value, authoredOn, authoredOn.value, id, id.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.554
Data Requirement | Type: DeviceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest Must Support Elements: code, intent, intent.value, status, status.value, authoredOn, authoredOn.value, id, id.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668
Data Requirement | Type: DeviceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest Must Support Elements: code, intent, intent.value, status, status.value, authoredOn, authoredOn.value, id, id.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666
Data Requirement | Type: Task Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-taskrejected Must Support Elements: focus, code, statusReason
Data Requirement | Type: MedicationRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest Must Support Elements: medication, authoredOn, authoredOn.value, status, status.value Code Filter(s): Path: medication ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659
Data Requirement | Type: MedicationRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest Must Support Elements: medication, authoredOn, authoredOn.value, status, status.value Code Filter(s): Path: medication ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655
Data Requirement | Type: MedicationRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest Must Support Elements: medication, authoredOn, authoredOn.value, status, status.value Code Filter(s): Path: medication ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654
Data Requirement | Type: ServiceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest Must Support Elements: code, authoredOn, authoredOn.value, intent, intent.value, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209
Data Requirement | Type: ServiceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest Must Support Elements: code, authoredOn, authoredOn.value, intent, intent.value, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550
Data Requirement | Type: ServiceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest Must Support Elements: code, authoredOn, authoredOn.value, intent, intent.value, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668
Data Requirement | Type: ServiceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest Must Support Elements: code, authoredOn, authoredOn.value, intent, intent.value, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666
Data Requirement | Type: ServiceRequest Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest Must Support Elements: code, authoredOn, authoredOn.value, intent, intent.value, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661
Data Requirement | Type: Procedure Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure Must Support Elements: code, performed, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.550
Data Requirement | Type: Procedure Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure Must Support Elements: code, performed, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1248.209
Data Requirement | Type: Procedure Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure Must Support Elements: code, performed, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668
Data Requirement | Type: Procedure Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure Must Support Elements: code, performed, status, status.value Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666
Data Requirement | Type: Procedure Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure Must Support Elements: code, performed, status, status.value, extension Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.661
Data Requirement | Type: Device Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device Must Support Elements: type Code Filter(s): Path: type ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.665
Data Requirement | Type: Device Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device Must Support Elements: type Code Filter(s): Path: type ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.552
Data Requirement | Type: Device Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device Must Support Elements: type Code Filter(s): Path: type ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.554
Data Requirement | Type: Device Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device Must Support Elements: type Code Filter(s): Path: type ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.668
Data Requirement | Type: Device Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device Must Support Elements: type Code Filter(s): Path: type ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.666
Data Requirement | Type: Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-deviceusestatement Must Support Elements: recordedOn, recordedOn.value, status, status.value
Data Requirement | Type: MedicationStatement Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement Must Support Elements: medication, status, status.value, dateAsserted, dateAsserted.value Code Filter(s): Path: medication ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.659
Data Requirement | Type: MedicationStatement Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement Must Support Elements: medication, status, status.value, dateAsserted, dateAsserted.value Code Filter(s): Path: medication ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.655
Data Requirement | Type: MedicationStatement Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement Must Support Elements: medication, status, status.value, dateAsserted, dateAsserted.value Code Filter(s): Path: medication ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1034.654
Data Requirement | Type: Coverage Profile(s): http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage Must Support Elements: type, period Code Filter(s): Path: type ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
Generated using version 0.4.8 of the sample-content-ig Liquid templates