{
  "resourceType": "StructureDefinition",
  "id": "shr-entity-Medication",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <p><b>SHR Medication Profile</b></p>\n  <p>A type of prescription drug or over-the-counter drug that is used to prevent, treat, or relieve symptoms of a disease or abnormal condition, but excluding vaccines.</p>\n  <p><b>SHR Mapping Summary</b></p>\n  <p><pre>shr.entity.Medication maps to http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication:\n  Type maps to code\n  DoseForm maps to form\n  MedicationIngredient.CodeableConcept maps to ingredient.item[x]\n  MedicationIngredient.Substance maps to ingredient.item[x]\n  MedicationIngredient.Medication maps to ingredient.item[x]\n  MedicationIngredient.IngredientAmount maps to ingredient.amount\n  MedicationIngredient.IsActiveIngredient maps to ingredient.isActive\n  Brand maps to isBrand\n  OverTheCounter maps to isOverTheCounter\n  Manufacturer maps to manufacturer\n  constrain package.batch to 0..1\n  LotNumber maps to package.batch.lotNumber\n  ExpirationDate maps to package.batch.expirationDate\n  Package maps to package.container\n</pre></p>\n</div>"
  },
  "url": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Medication",
  "identifier": [
    {
      "system": "http://standardhealthrecord.org",
      "value": "shr.entity.Medication"
    }
  ],
  "version": "0.0.1",
  "name": "SHR Medication Profile",
  "status": "draft",
  "date": "2017-12-20",
  "publisher": "The MITRE Corporation: Standard Health Record Collaborative",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://standardhealthrecord.org"
        }
      ]
    }
  ],
  "description": "A type of prescription drug or over-the-counter drug that is used to prevent, treat, or relieve symptoms of a disease or abnormal condition, but excluding vaccines.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "US",
          "display": "United States Minor Outlying Islands (the)"
        }
      ]
    }
  ],
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "argonaut-dq-dstu2",
      "uri": "http://unknown.org/Argonaut DQ DSTU2",
      "name": "Argonaut DQ DSTU2"
    },
    {
      "identity": "script10.6",
      "uri": "http://ncpdp.org/SCRIPT10_6",
      "name": "Mapping to NCPDP SCRIPT 10.6"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Medication",
  "baseDefinition": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Medication:shr-entity-Medication",
        "path": "Medication",
        "short": "SHR Medication Profile",
        "definition": "A type of prescription drug or over-the-counter drug that is used to prevent, treat, or relieve symptoms of a disease or abnormal condition, but excluding vaccines.",
        "mustSupport": false
      },
      {
        "id": "Medication:shr-entity-Medication.extension:relatedencounter",
        "path": "Medication.extension",
        "sliceName": "relatedencounter",
        "definition": "If content was generated during a patient encounter, related encounter is the encounter where the information was gained.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-RelatedEncounter-extension"
          }
        ]
      },
      {
        "id": "Medication:shr-entity-Medication.extension:author",
        "path": "Medication.extension",
        "sliceName": "author",
        "definition": "The person or organization who created the entry and is responsible for (and may certify) the content.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Author-extension"
          }
        ]
      },
      {
        "id": "Medication:shr-entity-Medication.extension:informant",
        "path": "Medication.extension",
        "sliceName": "informant",
        "definition": "The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Informant-extension"
          }
        ]
      },
      {
        "id": "Medication:shr-entity-Medication.manufacturer",
        "path": "Medication.manufacturer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Organization"
          }
        ]
      },
      {
        "id": "Medication:shr-entity-Medication.form",
        "path": "Medication.form",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "MedicationForm"
            }
          ],
          "strength": "required",
          "description": "A coded concept defining the form of a medication",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/medication-form-codes"
          }
        }
      },
      {
        "id": "Medication:shr-entity-Medication.ingredient",
        "path": "Medication.ingredient"
      },
      {
        "id": "Medication:shr-entity-Medication.ingredient.item[x]",
        "path": "Medication.ingredient.item[x]",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Substance"
          },
          {
            "code": "Reference",
            "targetProfile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Medication"
          }
        ]
      },
      {
        "id": "Medication:shr-entity-Medication.ingredient.amount",
        "path": "Medication.ingredient.amount",
        "type": [
          {
            "code": "Ratio",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Ratio"
          }
        ]
      },
      {
        "id": "Medication:shr-entity-Medication.package",
        "path": "Medication.package"
      },
      {
        "id": "Medication:shr-entity-Medication.package.batch",
        "path": "Medication.package.batch",
        "min": 0,
        "max": "1"
      }
    ]
  }
}