{
  "resourceType": "StructureDefinition",
  "id": "oridashi-medicationrequest",
  "meta": {
    "lastUpdated": "2017-08-16T09:43:30.743+00:00"
  },
  "url": "http://oridashi.com.au/fhir/StructureDefinition/oridashi-medicationrequest",
  "name": "Oridashi Prescription",
  "title": "Oridashi Prescription",
  "status": "draft",
  "date": "2017-08-16T09:06:16.12+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest.identifier",
        "path": "MedicationRequest.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.definition",
        "path": "MedicationRequest.definition",
        "max": "0"
      },
      {
        "id": "MedicationRequest.basedOn",
        "path": "MedicationRequest.basedOn",
        "max": "0"
      },
      {
        "id": "MedicationRequest.groupIdentifier",
        "path": "MedicationRequest.groupIdentifier",
        "short": "Script Number",
        "definition": "Script number generated by the system to identify the script for this clinic.",
        "min": 1
      },
      {
        "id": "MedicationRequest.groupIdentifier.use",
        "path": "MedicationRequest.groupIdentifier.use",
        "max": "0"
      },
      {
        "id": "MedicationRequest.groupIdentifier.type",
        "path": "MedicationRequest.groupIdentifier.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.groupIdentifier.system",
        "path": "MedicationRequest.groupIdentifier.system",
        "min": 1,
        "fixedUri": "http://oridashi.com.au/id/scriptnumber"
      },
      {
        "id": "MedicationRequest.groupIdentifier.value",
        "path": "MedicationRequest.groupIdentifier.value",
        "min": 1
      },
      {
        "id": "MedicationRequest.groupIdentifier.period",
        "path": "MedicationRequest.groupIdentifier.period",
        "max": "0"
      },
      {
        "id": "MedicationRequest.groupIdentifier.assigner",
        "path": "MedicationRequest.groupIdentifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationRequest.status",
        "path": "MedicationRequest.status",
        "min": 1
      },
      {
        "id": "MedicationRequest.category",
        "path": "MedicationRequest.category",
        "max": "0"
      },
      {
        "id": "MedicationRequest.priority",
        "path": "MedicationRequest.priority",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationReference",
        "path": "MedicationRequest.medicationReference",
        "sliceName": "medicationReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Medication",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.context",
        "path": "MedicationRequest.context",
        "max": "0"
      },
      {
        "id": "MedicationRequest.recorder",
        "path": "MedicationRequest.recorder",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reasonCode",
        "path": "MedicationRequest.reasonCode",
        "max": "1"
      },
      {
        "id": "MedicationRequest.reasonReference",
        "path": "MedicationRequest.reasonReference",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.performer",
        "path": "MedicationRequest.dispenseRequest.performer",
        "max": "0"
      },
      {
        "id": "MedicationRequest.substitution",
        "path": "MedicationRequest.substitution",
        "min": 1
      },
      {
        "id": "MedicationRequest.substitution.reason",
        "path": "MedicationRequest.substitution.reason",
        "max": "0"
      },
      {
        "id": "MedicationRequest.priorPrescription",
        "path": "MedicationRequest.priorPrescription",
        "max": "0"
      },
      {
        "id": "MedicationRequest.detectedIssue",
        "path": "MedicationRequest.detectedIssue",
        "max": "0"
      },
      {
        "id": "MedicationRequest.eventHistory",
        "path": "MedicationRequest.eventHistory",
        "max": "0"
      }
    ]
  }
}