<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ext-StopType" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/ext-StopType" />
  <version value="2.0.0-rc.7" />
  <name value="ExtStopType" />
  <title value="ext StopType" />
  <status value="active" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="An extension to provide the manner in which medication is discontinued (temporary or definitive)." />
  <purpose value="This extension represents the MedicationAgreementStopType and AdministrationAgreementStopType concepts, and the MedicationUseStopType and VariableDosingRegimenStopType concepts which have a binding on a more restricted ValueSet, of the MedicationProcess9 information standard." />
  <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="MedicationRequest" />
  </context>
  <context>
    <type value="element" />
    <expression value="MedicationDispense" />
  </context>
  <context>
    <type value="element" />
    <expression value="MedicationStatement" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <definition value="This StopType modifier extension works differently than the `.status` element of resources because it has a different meaning. The `.status` element usually represents the status of the resource at the moment of exchanging the resource. This means that over the lifetime of a resource, the status may change (and is very much related to use period). That – in itself – makes solely mapping StopType (which may never change in an instance) to `.status` not suitable.&#xD;&#xA;&#xD;&#xA;For example: suppose you want the patient to stop taking medication definitively three days from today. This is a stop medication agreement with a StopType of _definitive_. However today, tomorrow and the day after tomorrow the `.status` of this medication agreement is _active_ and only after the end date of the usage period the `.status` should be _stopped_. Status and StopType are simply not the same thing." />
      <max value="1" />
      <isModifier value="true" />
      <isModifierReason value="This element is labeled as a modifier because StopType contains codes that mark the resource as no longer active." />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://nictiz.nl/fhir/StructureDefinition/ext-StopType" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <short value="StopType" />
      <definition value="Stop type, the manner in which this medication is discontinued or canceled (temporary, definitive or canceled)." />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.20.77.11.50--20221216102010" />
      </binding>
    </element>
  </differential>
</StructureDefinition>