{
  "resourceType": "StructureDefinition",
  "url": "http://hl7.org/fhir/4.0/StructureDefinition/MedicationRequest",
  "name": "MedicationRequest",
  "status": "draft",
  "date": "2024-05-08T14:57:42.4430964+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest.id",
        "path": "MedicationRequest.id",
        "short": "Identificador lógico asociado al recurso",
        "definition": "Identificador lógico del recurso, usado en la URL del mismo, una vez asignado este valor nunca cambia.",
        "comment": "El único momento en que un recurso no tiene id es cuando está siendo enviado al servidor usando una operación de creación."
      },
      {
        "id": "MedicationRequest.implicitRules",
        "path": "MedicationRequest.implicitRules",
        "max": "0"
      },
      {
        "id": "MedicationRequest.language",
        "path": "MedicationRequest.language",
        "max": "0"
      },
      {
        "id": "MedicationRequest.text",
        "path": "MedicationRequest.text",
        "max": "0"
      },
      {
        "id": "MedicationRequest.contained",
        "path": "MedicationRequest.contained",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.id",
        "path": "MedicationRequest.identifier.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.use",
        "path": "MedicationRequest.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.type",
        "path": "MedicationRequest.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.system",
        "path": "MedicationRequest.identifier.system",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.value",
        "path": "MedicationRequest.identifier.value",
        "short": "Identificador del recurso en origen"
      },
      {
        "id": "MedicationRequest.identifier.period",
        "path": "MedicationRequest.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.assigner",
        "path": "MedicationRequest.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationRequest.statusReason",
        "path": "MedicationRequest.statusReason",
        "max": "0"
      },
      {
        "id": "MedicationRequest.category",
        "path": "MedicationRequest.category",
        "max": "0"
      },
      {
        "id": "MedicationRequest.priority",
        "path": "MedicationRequest.priority",
        "max": "0"
      },
      {
        "id": "MedicationRequest.doNotPerform",
        "path": "MedicationRequest.doNotPerform",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reported[x]",
        "path": "MedicationRequest.reported[x]",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x]",
        "path": "MedicationRequest.medication[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationRequest.medication[x].id",
        "path": "MedicationRequest.medication[x].id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x].coding.id",
        "path": "MedicationRequest.medication[x].coding.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x].coding.system",
        "path": "MedicationRequest.medication[x].coding.system",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x].coding.version",
        "path": "MedicationRequest.medication[x].coding.version",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x].coding.userSelected",
        "path": "MedicationRequest.medication[x].coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x].text",
        "path": "MedicationRequest.medication[x].text",
        "max": "0"
      },
      {
        "id": "MedicationRequest.subject.id",
        "path": "MedicationRequest.subject.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.subject.type",
        "path": "MedicationRequest.subject.type",
        "fixedUri": "Patient"
      },
      {
        "id": "MedicationRequest.subject.identifier",
        "path": "MedicationRequest.subject.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.subject.display",
        "path": "MedicationRequest.subject.display",
        "max": "0"
      },
      {
        "id": "MedicationRequest.encounter.id",
        "path": "MedicationRequest.encounter.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.encounter.type",
        "path": "MedicationRequest.encounter.type",
        "fixedUri": "Encounter"
      },
      {
        "id": "MedicationRequest.encounter.identifier",
        "path": "MedicationRequest.encounter.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.encounter.display",
        "path": "MedicationRequest.encounter.display",
        "max": "0"
      },
      {
        "id": "MedicationRequest.supportingInformation",
        "path": "MedicationRequest.supportingInformation",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.id",
        "path": "MedicationRequest.requester.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.type",
        "path": "MedicationRequest.requester.type",
        "fixedUri": "Practitioner"
      },
      {
        "id": "MedicationRequest.requester.identifier",
        "path": "MedicationRequest.requester.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.display",
        "path": "MedicationRequest.requester.display",
        "max": "0"
      },
      {
        "id": "MedicationRequest.performer",
        "path": "MedicationRequest.performer",
        "max": "0"
      },
      {
        "id": "MedicationRequest.performerType",
        "path": "MedicationRequest.performerType",
        "max": "0"
      },
      {
        "id": "MedicationRequest.recorder",
        "path": "MedicationRequest.recorder",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reasonCode",
        "path": "MedicationRequest.reasonCode",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reasonReference",
        "path": "MedicationRequest.reasonReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Condition"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.reasonReference.id",
        "path": "MedicationRequest.reasonReference.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reasonReference.type",
        "path": "MedicationRequest.reasonReference.type",
        "fixedUri": "Condition"
      },
      {
        "id": "MedicationRequest.reasonReference.identifier",
        "path": "MedicationRequest.reasonReference.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reasonReference.display",
        "path": "MedicationRequest.reasonReference.display",
        "max": "0"
      },
      {
        "id": "MedicationRequest.instantiatesCanonical",
        "path": "MedicationRequest.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "MedicationRequest.instantiatesUri",
        "path": "MedicationRequest.instantiatesUri",
        "max": "0"
      },
      {
        "id": "MedicationRequest.basedOn",
        "path": "MedicationRequest.basedOn",
        "max": "0"
      },
      {
        "id": "MedicationRequest.groupIdentifier",
        "path": "MedicationRequest.groupIdentifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.courseOfTherapyType",
        "path": "MedicationRequest.courseOfTherapyType",
        "max": "0"
      },
      {
        "id": "MedicationRequest.insurance",
        "path": "MedicationRequest.insurance",
        "max": "0"
      },
      {
        "id": "MedicationRequest.note",
        "path": "MedicationRequest.note",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.id",
        "path": "MedicationRequest.dosageInstruction.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.sequence",
        "path": "MedicationRequest.dosageInstruction.sequence",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.text",
        "path": "MedicationRequest.dosageInstruction.text",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.additionalInstruction.id",
        "path": "MedicationRequest.dosageInstruction.additionalInstruction.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.additionalInstruction.coding.id",
        "path": "MedicationRequest.dosageInstruction.additionalInstruction.coding.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.additionalInstruction.coding.system",
        "path": "MedicationRequest.dosageInstruction.additionalInstruction.coding.system",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.additionalInstruction.coding.version",
        "path": "MedicationRequest.dosageInstruction.additionalInstruction.coding.version",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.additionalInstruction.coding.userSelected",
        "path": "MedicationRequest.dosageInstruction.additionalInstruction.coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.additionalInstruction.text",
        "path": "MedicationRequest.dosageInstruction.additionalInstruction.text",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.patientInstruction",
        "path": "MedicationRequest.dosageInstruction.patientInstruction",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing",
        "path": "MedicationRequest.dosageInstruction.timing",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.asNeeded[x]",
        "path": "MedicationRequest.dosageInstruction.asNeeded[x]",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.site",
        "path": "MedicationRequest.dosageInstruction.site",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.route.id",
        "path": "MedicationRequest.dosageInstruction.route.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.route.coding.id",
        "path": "MedicationRequest.dosageInstruction.route.coding.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.route.coding.system",
        "path": "MedicationRequest.dosageInstruction.route.coding.system",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.route.coding.version",
        "path": "MedicationRequest.dosageInstruction.route.coding.version",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.route.coding.userSelected",
        "path": "MedicationRequest.dosageInstruction.route.coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.route.text",
        "path": "MedicationRequest.dosageInstruction.route.text",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.method",
        "path": "MedicationRequest.dosageInstruction.method",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.id",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.type",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.rate[x]",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.rate[x]",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.maxDosePerPeriod",
        "path": "MedicationRequest.dosageInstruction.maxDosePerPeriod",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.maxDosePerAdministration",
        "path": "MedicationRequest.dosageInstruction.maxDosePerAdministration",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.maxDosePerLifetime",
        "path": "MedicationRequest.dosageInstruction.maxDosePerLifetime",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.id",
        "path": "MedicationRequest.dispenseRequest.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.initialFill",
        "path": "MedicationRequest.dispenseRequest.initialFill",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.dispenseInterval",
        "path": "MedicationRequest.dispenseRequest.dispenseInterval",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.validityPeriod.id",
        "path": "MedicationRequest.dispenseRequest.validityPeriod.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
        "path": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.quantity",
        "path": "MedicationRequest.dispenseRequest.quantity",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
        "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.performer",
        "path": "MedicationRequest.dispenseRequest.performer",
        "max": "0"
      },
      {
        "id": "MedicationRequest.substitution",
        "path": "MedicationRequest.substitution",
        "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"
      }
    ]
  }
}