<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2018-11-06T18:27:23.565+00:00" />
  </meta>
  <url value="http://example.org/fhir/StructureDefinition/FormularyMedication" />
  <name value="FormularyMedication" />
  <status value="draft" />
  <date value="2018-11-06T18:27:24.3213572+00:00" />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Medication" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Medication" />
  <derivation value="constraint" />
  <differential>
    <element id="Medication.extension">
      <path value="Medication.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Medication.extension:CoPayRequired">
      <path value="Medication.extension" />
      <sliceName value="CoPayRequired" />
      <definition value="Indicates whether a copay is required for a medication" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-CoPayRequired" />
      </type>
    </element>
    <element id="Medication.extension:CoInsuranceRequired">
      <path value="Medication.extension" />
      <sliceName value="CoInsuranceRequired" />
      <definition value="Indicates whether a coinsurance is required for a medication" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-CoInsuranceRequired" />
      </type>
    </element>
    <element id="Medication.extension:PriorAuthRequired">
      <path value="Medication.extension" />
      <sliceName value="PriorAuthRequired" />
      <definition value="Additional actions are required (of the patient, the provider, or both) to receive authorization from the insurer before a medication is prescribed." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-PriorAuthRequired" />
      </type>
    </element>
    <element id="Medication.extension:PriorAuthDescription">
      <path value="Medication.extension" />
      <sliceName value="PriorAuthDescription" />
      <definition value="Prior Authorization steps required before a medication can be prescribed" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-PriorAuthDescription" />
      </type>
    </element>
    <element id="Medication.extension:StepTherapyRequired">
      <path value="Medication.extension" />
      <sliceName value="StepTherapyRequired" />
      <definition value="Indicates whether a patient must try another medication before a medication may be prescribed" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-StepTherapyRequired" />
      </type>
    </element>
    <element id="Medication.extension:StepTherapyDescription">
      <path value="Medication.extension" />
      <sliceName value="StepTherapyDescription" />
      <definition value="A description of the medication (or medications) that need to be tried before a medication is prescribed" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-StepTherapyDescription" />
      </type>
    </element>
    <element id="Medication.extension:QuantityLimitImposed">
      <path value="Medication.extension" />
      <sliceName value="QuantityLimitImposed" />
      <definition value="Indicates whether there is a limit to the quantity or amount of a medication that will be covered under the health plan" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-QuantityLimitImposed" />
      </type>
    </element>
    <element id="Medication.extension:QuantityLimitDescription">
      <path value="Medication.extension" />
      <sliceName value="QuantityLimitDescription" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-QuantityLimitDescription" />
      </type>
    </element>
    <element id="Medication.extension:AgeLimitImposed">
      <path value="Medication.extension" />
      <sliceName value="AgeLimitImposed" />
      <definition value="Indicates whether an age limit is imposed on a medication" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-AgeLimitImposed" />
      </type>
    </element>
    <element id="Medication.extension:AgeLimitDescription">
      <path value="Medication.extension" />
      <sliceName value="AgeLimitDescription" />
      <definition value="A description of the age limits imposed on a medication" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-AgeLimitDescription" />
      </type>
    </element>
    <element id="Medication.extension:LimitedAccessImposed">
      <path value="Medication.extension" />
      <sliceName value="LimitedAccessImposed" />
      <definition value="Medications are considered 'limited access' if the FDA says the drug can be given out only by certain facilities or doctors. These medications may require extra handling, provider coordination or patient education that can’t be done at a network pharmacy" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-LimitedAccessImposed" />
      </type>
    </element>
    <element id="Medication.extension:LimitedAccessDescription">
      <path value="Medication.extension" />
      <sliceName value="LimitedAccessDescription" />
      <definition value="A description of how and why a medication is classified as 'limited access'" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-LimitedAccessDescription" />
      </type>
    </element>
    <element id="Medication.extension:Injectable">
      <path value="Medication.extension" />
      <sliceName value="Injectable" />
      <definition value="The medication is available in injectable form" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-Injectable" />
      </type>
    </element>
    <element id="Medication.extension:MailOrder">
      <path value="Medication.extension" />
      <sliceName value="MailOrder" />
      <definition value="The medication is available through mail order" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-MailOrder" />
      </type>
    </element>
    <element id="Medication.extension:PartBOrPartD">
      <path value="Medication.extension" />
      <sliceName value="PartBOrPartD" />
      <definition value="The medication may be covered under Medicare Part B or D depending upon the circumstances. Information may need to be submitted describing the use and setting of the medication to make the determination." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Formulary-PartBOrPartD" />
      </type>
    </element>
    <element id="Medication.code.coding.system">
      <path value="Medication.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://www.nlm.nih.gov/research/umls/rxnorm" />
    </element>
    <element id="Medication.code.coding.code">
      <path value="Medication.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Medication.code.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Medication.code.text" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>