{
  "resourceType": "StructureDefinition",
  "id": "shr-medication-MedicationDispenseAction",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <p><b>SHR MedicationDispenseAction Profile</b></p>\n  <p>The action of ordering and deliving a medication to the party responsible for administering the medication.</p>\n  <p><b>SHR Mapping Summary</b></p>\n  <p><pre>shr.medication.MedicationDispenseAction maps to Basic:\n</pre></p>\n</div>"
  },
  "url": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationDispenseAction",
  "identifier": [
    {
      "system": "http://standardhealthrecord.org",
      "value": "shr.medication.MedicationDispenseAction"
    }
  ],
  "version": "0.0.1",
  "name": "SHR MedicationDispenseAction Profile",
  "status": "draft",
  "date": "2017-12-20",
  "publisher": "The MITRE Corporation: Standard Health Record Collaborative",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://standardhealthrecord.org"
        }
      ]
    }
  ],
  "description": "The action of ordering and deliving a medication to the party responsible for administering the medication.",
  "purpose": "Need some way to safely (without breaking interoperability) allow implementers to exchange content not supported by the initial set of declared resources.",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Basic",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Basic",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Basic:shr-medication-MedicationDispenseAction",
        "path": "Basic",
        "short": "SHR MedicationDispenseAction Profile",
        "definition": "The action of ordering and deliving a medication to the party responsible for administering the medication."
      },
      {
        "id": "Basic:shr-medication-MedicationDispenseAction.extension:relatedencounter",
        "path": "Basic.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": "Basic:shr-medication-MedicationDispenseAction.extension:author",
        "path": "Basic.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": "Basic:shr-medication-MedicationDispenseAction.extension:informant",
        "path": "Basic.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": "Basic:shr-medication-MedicationDispenseAction.extension:type",
        "path": "Basic.extension",
        "sliceName": "type",
        "definition": "The most specific code (lowest level term) describing the kind or sort of thing being represented.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Type-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationDispenseAction.extension:category",
        "path": "Basic.extension",
        "sliceName": "category",
        "definition": "A class or division of people or things having particular shared characteristics",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Category-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationDispenseAction.extension:actioncontext",
        "path": "Basic.extension",
        "sliceName": "actioncontext",
        "definition": "The ontological status of the intervention, e.g., performed/not performed, requested/not requested.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-ActionContext-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationDispenseAction.extension:medicationorcode",
        "path": "Basic.extension",
        "sliceName": "medicationorcode",
        "definition": "A medication entity or a medication code.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-MedicationOrCode-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationDispenseAction.extension:dosage",
        "path": "Basic.extension",
        "sliceName": "dosage",
        "definition": "The dosage of the medication, prescribed or taken.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-Dosage-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationDispenseAction.extension:numberofrefillsallowed",
        "path": "Basic.extension",
        "sliceName": "numberofrefillsallowed",
        "definition": "The maximum number of times the dispense can be repeated. For medication dispense, this integer does NOT include the original order dispense. This means that if an order indicates dispense 30 tablets plus 3 repeats, then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-NumberOfRefillsAllowed-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationDispenseAction.extension:quantityperdispense",
        "path": "Basic.extension",
        "sliceName": "quantityperdispense",
        "definition": "The amount that is to be dispensed for one fill.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-QuantityPerDispense-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationDispenseAction.extension:supplyduration",
        "path": "Basic.extension",
        "sliceName": "supplyduration",
        "definition": "Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-SupplyDuration-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationDispenseAction.code",
        "path": "Basic.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://standardhealthrecord.org/fhir/basic-resource-type",
              "code": "shr-medication-MedicationDispenseAction"
            }
          ]
        }
      }
    ]
  }
}