<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASMedication" />
  <name value="UNICASMedication" />
  <title value="Medication Medicación ÚNICAS" />
  <status value="draft" />
  <description value="Este profile define las restricciones del recurso Medication para representar el registro de un medicamento en el contexto del caso de uso de ÚNICAS." />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Medication" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Medication" />
  <derivation value="constraint" />
  <differential>
    <element id="Medication.code">
      <path value="Medication.code" />
      <short value="Fármaco" />
      <definition value="Codes that identify this medication. A code (or set of codes) that specify this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems." />
      <min value="1" />
      <binding>
        <strength value="extensible" />
        <description value="Value set de Fármacos" />
        <valueSet value="https://unicas-fhir.sanidad.gob.es/ValueSet/Farmacos" />
      </binding>
    </element>
    <element id="Medication.code.coding.system">
      <path value="Medication.code.coding.system" />
      <short value="URL del SNOMED CT. Extensión para España del SNS | OID del ATC | OID del DCSA" />
      <definition value="Posibles URLs y/o OIDs de terminología utilizada para indicar el fármaco y su descripción correspondiente:&#xD;&#xA;&#xD;&#xA;- SNOMED CT. Extensión para España del SNS con filtro aplicado al eje producto: http://snomed.info/sct/900000001000122104&#xD;&#xA;- ATC: urn:oid:2.16.724.4.21.5.15.1&#xD;&#xA;- DCSA: urn:oid:2.16.724.4.21.5.14.3" />
      <min value="1" />
    </element>
    <element id="Medication.code.coding.code">
      <path value="Medication.code.coding.code" />
      <short value="Código del fármaco" />
      <min value="1" />
    </element>
    <element id="Medication.code.coding.display">
      <path value="Medication.code.coding.display" />
      <short value="Descripción del fármaco" />
      <definition value="Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system." />
      <min value="1" />
    </element>
    <element id="Medication.code.text">
      <path value="Medication.code.text" />
      <short value="Nombre comercial" />
      <definition value="Plain text representation of the concept. A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user." />
    </element>
    <element id="Medication.status">
      <path value="Medication.status" />
      <short value="Estado" />
      <definition value="A code to indicate if the medication is in active use (active | inactive | entered-in-error)." />
    </element>
    <element id="Medication.doseForm">
      <path value="Medication.doseForm" />
      <short value="Forma farmacéutica" />
      <binding>
        <strength value="extensible" />
        <description value="Value set de Formas farmacéuticas (Forma de producto)" />
        <valueSet value="https://unicas-fhir.sanidad.gob.es/ValueSet/FormasFarmaceuticas" />
      </binding>
    </element>
    <element id="Medication.doseForm.coding.system">
      <path value="Medication.doseForm.coding.system" />
      <short value="OID del Nomenclátor de Prescripción AEMPS. Forma Farmacéutica" />
      <definition value="Posible OID de terminología utilizada para indicar la forma farmacéutica y su descripción correspondiente:&#xD;&#xA;&#xD;&#xA;- Nomenclátor de Prescripción AEMPS. Forma Farmacéutica: urn:oid:2.16.724.4.21.5.14" />
    </element>
    <element id="Medication.doseForm.coding.code">
      <path value="Medication.doseForm.coding.code" />
      <short value="Código de la forma farmacéutica" />
    </element>
    <element id="Medication.doseForm.coding.display">
      <path value="Medication.doseForm.coding.display" />
      <short value="Descripción de la forma farmacéutica" />
      <definition value="Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system." />
    </element>
    <element id="Medication.ingredient">
      <path value="Medication.ingredient" />
      <short value="Principio activo" />
      <definition value="Active or inactive ingredient. Identifies a particular constituent of interest in the product." />
    </element>
    <element id="Medication.ingredient.item">
      <path value="Medication.ingredient.item" />
      <short value="Principio activo" />
      <definition value="The ingredient (substance or medication) that the ingredient.strength relates to. This is represented as a concept from a code system or described in another resource (Substance or Medication)." />
      <binding>
        <strength value="extensible" />
        <description value="Value set de Sustancias" />
        <valueSet value="https://unicas-fhir.sanidad.gob.es/ValueSet/Sustancias" />
      </binding>
    </element>
    <element id="Medication.ingredient.item.concept">
      <path value="Medication.ingredient.item.concept" />
      <short value="Principio activo" />
      <definition value="Reference to a concept (by class). A reference to a concept - e.g. the information is identified by its general class to the degree of precision found in the terminology." />
    </element>
    <element id="Medication.ingredient.item.concept.coding.system">
      <path value="Medication.ingredient.item.concept.coding.system" />
      <short value="URL del SNOMED CT. Extensión para España del SNS" />
      <definition value="Posible URL de terminología utilizada para indicar el principio activo y su descripción correspondiente:&#xD;&#xA;&#xD;&#xA;- SNOMED CT. Extensión para España del SNS con filtro aplicado al eje sustancia: http://snomed.info/sct/900000001000122104" />
    </element>
    <element id="Medication.ingredient.item.concept.coding.code">
      <path value="Medication.ingredient.item.concept.coding.code" />
      <short value="Código del principio activo" />
    </element>
    <element id="Medication.ingredient.item.concept.coding.display">
      <path value="Medication.ingredient.item.concept.coding.display" />
      <short value="Descripción del principio activo" />
      <definition value="Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system." />
    </element>
  </differential>
</StructureDefinition>