{
  "resourceType": "StructureDefinition",
  "id": "shr-medication-MedicationRequested",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <p><b>SHR MedicationRequested Profile</b></p>\n  <p>An order for a medication to be dispensed and instructions for use.</p>\n  <p><b>SHR Mapping Summary</b></p>\n  <p><pre>shr.medication.MedicationRequested maps to http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest:\n  MedicationOrCode maps to medication[x]\n  RequestedContext.Reason maps to reasonCode\n  RequestedContext.Status maps to status\n  RequestedContext.ExpectedPerformanceTime maps to dispenseRequest.validityPeriod\n  RequestedContext.Priority maps to priority\n  RequestedContext.PerformerInstructions maps to note.text\n  RequestedContext.ExpectedPerformer.Organization maps to dispenseRequest.performer\n  constrain note to 0..1\n  NumberOfRefillsAllowed maps to dispenseRequest.numberOfRepeatsAllowed\n  QuantityPerDispense maps to dispenseRequest.quantity\n  SupplyDuration maps to dispenseRequest.expectedSupplyDuration\n  constrain dosageInstruction to 0..1\n  Dosage maps to dosageInstruction\n</pre></p>\n</div>"
  },
  "url": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationRequested",
  "identifier": [
    {
      "system": "http://standardhealthrecord.org",
      "value": "shr.medication.MedicationRequested"
    }
  ],
  "version": "0.0.1",
  "name": "SHR MedicationRequested Profile",
  "status": "draft",
  "date": "2017-12-20",
  "publisher": "The MITRE Corporation: Standard Health Record Collaborative",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://standardhealthrecord.org"
        }
      ]
    }
  ],
  "description": "An order for a medication to be dispensed and instructions for use.",
  "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": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Mapping"
    },
    {
      "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": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested",
        "path": "MedicationRequest",
        "short": "SHR MedicationRequested Profile",
        "definition": "An order for a medication to be dispensed and instructions for use.",
        "mustSupport": false
      },
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested.extension:relatedencounter",
        "path": "MedicationRequest.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": "MedicationRequest:shr-medication-MedicationRequested.extension:author",
        "path": "MedicationRequest.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": "MedicationRequest:shr-medication-MedicationRequested.extension:informant",
        "path": "MedicationRequest.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": "MedicationRequest:shr-medication-MedicationRequested.extension:type",
        "path": "MedicationRequest.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": "MedicationRequest:shr-medication-MedicationRequested.extension:category",
        "path": "MedicationRequest.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": "MedicationRequest:shr-medication-MedicationRequested.extension:requestedcontext",
        "path": "MedicationRequest.extension",
        "sliceName": "requestedcontext",
        "definition": "An order for something to take place.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-RequestedContext-extension"
          }
        ]
      },
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested.extension:requestedcontext.extension:status",
        "path": "MedicationRequest.extension.extension"
      },
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested.extension:requestedcontext.extension:status.value[x]",
        "path": "MedicationRequest.extension.extension.value[x]",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/medication-request-status"
          }
        }
      },
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested.extension:requestedcontext.extension:priority",
        "path": "MedicationRequest.extension.extension"
      },
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested.extension:requestedcontext.extension:priority.value[x]",
        "path": "MedicationRequest.extension.extension.value[x]",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/medication-request-priority"
          }
        }
      },
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested.medication[x]",
        "path": "MedicationRequest.medication[x]",
        "slicing": {
          "id": "66",
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Medication"
          }
        ]
      },
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested.medicationCodeableConcept:CodeableConcept",
        "path": "MedicationRequest.medicationCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes"
          }
        }
      },
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested.note",
        "path": "MedicationRequest.note",
        "min": 0,
        "max": "1"
      },
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested.dosageInstruction",
        "path": "MedicationRequest.dosageInstruction",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Dosage",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-Dosage"
          }
        ]
      },
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested.dispenseRequest",
        "path": "MedicationRequest.dispenseRequest"
      },
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested.dispenseRequest.quantity",
        "path": "MedicationRequest.dispenseRequest.quantity",
        "type": [
          {
            "code": "Quantity",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Quantity"
          }
        ]
      },
      {
        "id": "MedicationRequest:shr-medication-MedicationRequested.dispenseRequest.expectedSupplyDuration",
        "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
        "type": [
          {
            "code": "Duration",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Duration"
          }
        ]
      }
    ]
  }
}