{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2022-02-15T06:39:22.315+00:00"
  },
  "url": "http://example.org/fhir/StructureDefinition/crs-medicationRequest",
  "name": "CrsMedicationRequest",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "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.intent",
        "path": "MedicationRequest.intent",
        "fixedCode": "order"
      },
      {
        "id": "MedicationRequest.medication[x]",
        "path": "MedicationRequest.medication[x]",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://example.org/fhir/StructureDefinition/crs-medication"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction",
        "path": "MedicationRequest.dosageInstruction",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing",
        "path": "MedicationRequest.dosageInstruction.timing",
        "min": 1
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.repeat",
        "path": "MedicationRequest.dosageInstruction.timing.repeat",
        "min": 1
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.repeat.bounds[x]",
        "path": "MedicationRequest.dosageInstruction.timing.repeat.bounds[x]",
        "min": 1,
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.repeat.bounds[x].start",
        "path": "MedicationRequest.dosageInstruction.timing.repeat.bounds[x].start",
        "min": 1
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.repeat.bounds[x].end",
        "path": "MedicationRequest.dosageInstruction.timing.repeat.bounds[x].end",
        "min": 1
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.repeat.frequency",
        "path": "MedicationRequest.dosageInstruction.timing.repeat.frequency",
        "min": 1
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.repeat.period",
        "path": "MedicationRequest.dosageInstruction.timing.repeat.period",
        "min": 1,
        "fixedDecimal": 1
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.repeat.periodUnit",
        "path": "MedicationRequest.dosageInstruction.timing.repeat.periodUnit",
        "min": 1,
        "fixedCode": "d"
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate",
        "path": "MedicationRequest.dosageInstruction.doseAndRate",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.dose[x].value",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.dose[x].value",
        "min": 1
      }
    ]
  }
}