{
  "resourceType": "StructureDefinition",
  "url": "http://interopsante.org/fhir/StructureDefinition/FrInpatientMedicationRequest",
  "version": "1.0.0",
  "name": "FrInpatientMedicationRequest",
  "title": "French Inpatient MedicationRequest",
  "status": "draft",
  "experimental": false,
  "date": "2021-10-18",
  "publisher": "InterOp'Santé - FRANCE",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir@interopsante.org"
        }
      ]
    }
  ],
  "description": "French inpatient medication request profile",
  "copyright": "InterOp&#39;Sant&#233; 2021",
  "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.extension",
        "path": "MedicationRequest.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.extension:treatmentIntent",
        "path": "MedicationRequest.extension",
        "sliceName": "treatmentIntent",
        "short": "overall treatment intent",
        "definition": "the overall intention of the treatment",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrTreatmentIntent"
            ]
          }
        ],
        "meaningWhenMissing": "overall intention of the treatment not specified"
      },
      {
        "id": "MedicationRequest.extension:treatmentIntent.value[x].coding",
        "path": "MedicationRequest.extension.value[x].coding",
        "definition": "SNOMED CT code minimal value set for overall treatment intent (extensible)"
      },
      {
        "id": "MedicationRequest.medication[x]",
        "path": "MedicationRequest.medication[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/StructureDefinition/FrMedicationUcd",
              "http://interopsante.org/fhir/StructureDefinition/FrMedicationNonproprietaryName",
              "http://interopsante.org/fhir/StructureDefinition/FrMedicationCompound"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.subject",
        "path": "MedicationRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/StructureDefinition/FrPatient"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.encounter",
        "path": "MedicationRequest.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/StructureDefinition/FrEncounter"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.requester",
        "path": "MedicationRequest.requester",
        "short": "Who requested the Request",
        "definition": "The prescriber that initiated the request and has responsibility for its activation.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/StructureDefinition/FrPractitioner"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction",
        "path": "MedicationRequest.dosageInstruction",
        "min": 1
      },
      {
        "id": "MedicationRequest.dosageInstruction.route",
        "path": "MedicationRequest.dosageInstruction.route",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/ValueSet/fr-route-of-administration"
        }
      },
      {
        "id": "MedicationRequest.dosageInstruction.method",
        "path": "MedicationRequest.dosageInstruction.method",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/ValueSet/fr-method-of-administration"
        }
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
        "type": [
          {
            "code": "Range",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrRangeUcum"
            ]
          },
          {
            "code": "Quantity",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrSimpleQuantityUcum"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.rate[x]",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.rate[x]",
        "definition": "Amount of medication per unit of time. Using a ratio, the denominator SHALL be a quantity of time. Using a simple quantity the UCUM unit SHALL be a unit of rate.",
        "type": [
          {
            "code": "Ratio",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrRatioUcum"
            ]
          },
          {
            "code": "Range",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrRangeUcum"
            ]
          },
          {
            "code": "Quantity",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrSimpleQuantityUcum"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.maxDosePerPeriod.numerator",
        "path": "MedicationRequest.dosageInstruction.maxDosePerPeriod.numerator",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrSimpleQuantityUcum"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.maxDosePerPeriod.denominator",
        "path": "MedicationRequest.dosageInstruction.maxDosePerPeriod.denominator",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrSimpleQuantityUcum"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.maxDosePerAdministration",
        "path": "MedicationRequest.dosageInstruction.maxDosePerAdministration",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrSimpleQuantityUcum"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.maxDosePerLifetime",
        "path": "MedicationRequest.dosageInstruction.maxDosePerLifetime",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrSimpleQuantityUcum"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.dispenseRequest.initialFill",
        "path": "MedicationRequest.dispenseRequest.initialFill",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.dispenseInterval",
        "path": "MedicationRequest.dispenseRequest.dispenseInterval",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.validityPeriod.start",
        "path": "MedicationRequest.dispenseRequest.validityPeriod.start",
        "comment": "DateTime of the first prescribed dose.",
        "min": 1
      },
      {
        "id": "MedicationRequest.dispenseRequest.validityPeriod.end",
        "path": "MedicationRequest.dispenseRequest.validityPeriod.end",
        "comment": "DateTime of the last prescribe dose. Not defined for endless prescription (at prescription time). The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03."
      },
      {
        "id": "MedicationRequest.dispenseRequest.quantity",
        "path": "MedicationRequest.dispenseRequest.quantity",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration.comparator",
        "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration.comparator",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.performer",
        "path": "MedicationRequest.dispenseRequest.performer",
        "max": "0"
      }
    ]
  }
}