<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://interopsante.org/fhir/StructureDefinition/FrDrugCharacteristic" />
  <version value="1.0.0" />
  <name value="FrDrugCharacteristic" />
  <title value="Medication descriptive properties" />
  <status value="draft" />
  <experimental value="false" />
  <date value="2021-10-18" />
  <publisher value="InterOp'Santé - FRANCE" />
  <contact>
    <telecom>
      <system value="email" />
      <value value="fhir@interopsante.org" />
    </telecom>
  </contact>
  <description value="Specifies descriptive properties of the medicine" />
  <copyright value="InterOp'Santé 2021" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Medication" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Descriptive properties of the medicine" />
      <definition value="Specifies descriptive properties of the medicine, such as color, shape, imprints, release characteristic, etc." />
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Extension.extension:type">
      <path value="Extension.extension" />
      <sliceName value="type" />
      <short value="Type of the drug characteristic" />
      <definition value="A code specifying which characteristic of the medicine is being described (for example, colour, shape, imprint, release characteristic)." />
      <max value="1" />
    </element>
    <element id="Extension.extension:type.url">
      <path value="Extension.extension.url" />
      <fixedUri value="type" />
    </element>
    <element id="Extension.extension:type.value[x]">
      <path value="Extension.extension.value[x]" />
      <short value="Type of characteristic" />
      <definition value="A code specifying which characteristic of the medicine is being described." />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/medicationknowledge-characteristic" />
      </binding>
    </element>
    <element id="Extension.extension:value">
      <path value="Extension.extension" />
      <sliceName value="value" />
      <short value="Description of the characteristic" />
      <definition value="The description should be provided as a CodeableConcept, SimpleQuantity or an image. The description can be a string only when these others are not available." />
    </element>
    <element id="Extension.extension:value.url">
      <path value="Extension.extension.url" />
      <fixedUri value="value" />
    </element>
    <element id="Extension.extension:value.value[x]">
      <path value="Extension.extension.value[x]" />
      <type>
        <code value="base64Binary" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://interopsante.org/fhir/StructureDefinition/FrDrugCharacteristic" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>