{
  "resourceType": "StructureDefinition",
  "id": "9717fad8-2ec0-4068-a8ad-b7b058165137",
  "meta": {
    "lastUpdated": "2020-03-09T14:09:21.507+00:00"
  },
  "url": "http://smartehr.com/fhir/StructureDefinition/ClevEhrMedicationRequest",
  "name": "ClevehrMedicationRequest",
  "status": "draft",
  "date": "2020-03-09T14:09:21.2574374+00:00",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "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/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest.identifier",
        "path": "MedicationRequest.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationRequest.identifier.use",
        "path": "MedicationRequest.identifier.use",
        "definition": "Internal identifier, 1..n",
        "min": 1,
        "fixedCode": "temp"
      },
      {
        "id": "MedicationRequest.identifier.value",
        "path": "MedicationRequest.identifier.value",
        "min": 1
      },
      {
        "id": "MedicationRequest.status",
        "path": "MedicationRequest.status",
        "fixedCode": "active"
      },
      {
        "id": "MedicationRequest.intent",
        "path": "MedicationRequest.intent",
        "fixedCode": "order"
      },
      {
        "id": "MedicationRequest.medication[x]",
        "path": "MedicationRequest.medication[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationRequest.medication[x].coding.system",
        "path": "MedicationRequest.medication[x].coding.system",
        "min": 1,
        "fixedUri": "https://www.ehealth.fgov.be/standards/fhir/CodeSystem/CD-DRUG-CNK"
      },
      {
        "id": "MedicationRequest.medication[x].coding.code",
        "path": "MedicationRequest.medication[x].coding.code",
        "min": 1
      },
      {
        "id": "MedicationRequest.medication[x].coding.display",
        "path": "MedicationRequest.medication[x].coding.display",
        "min": 1
      },
      {
        "id": "MedicationRequest.medication[x].text",
        "path": "MedicationRequest.medication[x].text",
        "min": 1
      },
      {
        "id": "MedicationRequest.subject",
        "path": "MedicationRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "Patient"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.subject.reference",
        "path": "MedicationRequest.subject.reference",
        "min": 1
      },
      {
        "id": "MedicationRequest.subject.display",
        "path": "MedicationRequest.subject.display",
        "min": 1
      },
      {
        "id": "MedicationRequest.authoredOn",
        "path": "MedicationRequest.authoredOn",
        "min": 1
      },
      {
        "id": "MedicationRequest.dispenseRequest.extension",
        "path": "MedicationRequest.dispenseRequest.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.dispenseRequest.extension:myExtension",
        "path": "MedicationRequest.dispenseRequest.extension",
        "sliceName": "myExtension",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://smartehr.com/fhir/StructureDefinition/TemporalityExtension"
            ]
          }
        ]
      }
    ]
  }
}