Profiles & Operations Index > Profile: MedicationRequest

Profile: MedicationRequest (Prescription)

Simplifier project page: MedicationRequestPrescription

Derived from: MedicationRequest (R4)

Canonical_URLProfile_StatusProfile_VersionFHIR_Version
http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-consumer-profile-MedicationRequestdraft1.0.04.0.1

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work

Differential View

idS Σ0..1System.String
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemS Σ0..1uri
valueS Σ1..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(Organization)
statusS Σ ?!1..1codeBindingFixed Value
statusReason0..1CodeableConcept
intentS Σ ?!1..1codeBindingFixed Value
category0..*CodeableConcept
priorityΣ0..1codeBinding
doNotPerformΣ ?!0..1boolean
reportedBooleanboolean
reportedReferenceReference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)
referenceS Σ I1..1string
typeΣ0..1uriBinding
identifierΣ0..1Identifier
displayΣ0..1string
medicationReferenceReference(Medication)
referenceS Σ I1..1string
typeΣ0..1uriBinding
identifierΣ0..1Identifier
displayΣ0..1string
encounterI0..1Reference(Encounter)
supportingInformationI0..*Reference(Resource)
authoredOnΣ0..1dateTime
referenceS Σ I1..1string
typeΣ0..1uriBinding
identifierΣ0..1Identifier
displayΣ0..1string
performerI0..1Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson | CareTeam)
performerTypeΣ0..1CodeableConcept
recorderI0..1Reference(Practitioner | PractitionerRole)
systemS Σ1..1uriFixed Value
versionΣ0..1string
codeS Σ1..1code
displayS Σ0..1string
userSelectedΣ0..1boolean
textΣ0..1string
reasonReferenceI0..*Reference(Condition | Observation)
instantiatesCanonicalΣ0..*canonical()
instantiatesUriΣ0..*uri
basedOnΣ I0..*Reference(CarePlan | MedicationRequest | ServiceRequest | ImmunizationRecommendation)
groupIdentifierΣ0..1Identifier
courseOfTherapyType0..1CodeableConcept
insuranceI0..*Reference(Coverage | ClaimResponse)
note0..*Annotation
dosageInstruction0..*Dosage
quantityI0..1SimpleQuantity
durationI0..1Duration
dispenseIntervalI0..1Duration
validityPeriodI0..1Period
numberOfRepeatsAllowed0..1unsignedInt
quantityI0..1SimpleQuantity
expectedSupplyDurationI0..1Duration
performerI0..1Reference(Organization)
allowedBooleanboolean
allowedCodeableConceptCodeableConcept
reason0..1CodeableConcept
priorPrescriptionI0..1Reference(MedicationRequest)
detectedIssueI0..*Reference(DetectedIssue)
eventHistoryI0..*Reference(Provenance)

Hybrid View

idS Σ0..1System.String
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemS Σ0..1uri
valueS Σ1..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(Organization)
statusS Σ ?!1..1codeBindingFixed Value
statusReason0..1CodeableConcept
intentS Σ ?!1..1codeBindingFixed Value
category0..*CodeableConcept
priorityΣ0..1codeBinding
doNotPerformΣ ?!0..1boolean
reportedBooleanboolean
reportedReferenceReference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)
referenceS Σ I1..1string
typeΣ0..1uriBinding
identifierΣ0..1Identifier
displayΣ0..1string
medicationReferenceReference(Medication)
referenceS Σ I1..1string
typeΣ0..1uriBinding
identifierΣ0..1Identifier
displayΣ0..1string
encounterI0..1Reference(Encounter)
supportingInformationI0..*Reference(Resource)
authoredOnΣ0..1dateTime
referenceS Σ I1..1string
typeΣ0..1uriBinding
identifierΣ0..1Identifier
displayΣ0..1string
performerI0..1Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson | CareTeam)
performerTypeΣ0..1CodeableConcept
recorderI0..1Reference(Practitioner | PractitionerRole)
systemS Σ1..1uriFixed Value
versionΣ0..1string
codeS Σ1..1code
displayS Σ0..1string
userSelectedΣ0..1boolean
textΣ0..1string
reasonReferenceI0..*Reference(Condition | Observation)
instantiatesCanonicalΣ0..*canonical()
instantiatesUriΣ0..*uri
basedOnΣ I0..*Reference(CarePlan | MedicationRequest | ServiceRequest | ImmunizationRecommendation)
groupIdentifierΣ0..1Identifier
courseOfTherapyType0..1CodeableConcept
insuranceI0..*Reference(Coverage | ClaimResponse)
note0..*Annotation
dosageInstruction0..*Dosage
quantityI0..1SimpleQuantity
durationI0..1Duration
dispenseIntervalI0..1Duration
validityPeriodI0..1Period
numberOfRepeatsAllowed0..1unsignedInt
quantityI0..1SimpleQuantity
expectedSupplyDurationI0..1Duration
performerI0..1Reference(Organization)
allowedBooleanboolean
allowedCodeableConceptCodeableConcept
reason0..1CodeableConcept
priorPrescriptionI0..1Reference(MedicationRequest)
detectedIssueI0..*Reference(DetectedIssue)
eventHistoryI0..*Reference(Provenance)

Snapshot View

idS Σ0..1System.String
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemS Σ0..1uri
valueS Σ1..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(Organization)
statusS Σ ?!1..1codeBindingFixed Value
statusReason0..1CodeableConcept
intentS Σ ?!1..1codeBindingFixed Value
category0..*CodeableConcept
priorityΣ0..1codeBinding
doNotPerformΣ ?!0..1boolean
reportedBooleanboolean
reportedReferenceReference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)
referenceS Σ I1..1string
typeΣ0..1uriBinding
identifierΣ0..1Identifier
displayΣ0..1string
medicationReferenceReference(Medication)
referenceS Σ I1..1string
typeΣ0..1uriBinding
identifierΣ0..1Identifier
displayΣ0..1string
encounterI0..1Reference(Encounter)
supportingInformationI0..*Reference(Resource)
authoredOnΣ0..1dateTime
referenceS Σ I1..1string
typeΣ0..1uriBinding
identifierΣ0..1Identifier
displayΣ0..1string
performerI0..1Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson | CareTeam)
performerTypeΣ0..1CodeableConcept
recorderI0..1Reference(Practitioner | PractitionerRole)
systemS Σ1..1uriFixed Value
versionΣ0..1string
codeS Σ1..1code
displayS Σ0..1string
userSelectedΣ0..1boolean
textΣ0..1string
reasonReferenceI0..*Reference(Condition | Observation)
instantiatesCanonicalΣ0..*canonical()
instantiatesUriΣ0..*uri
basedOnΣ I0..*Reference(CarePlan | MedicationRequest | ServiceRequest | ImmunizationRecommendation)
groupIdentifierΣ0..1Identifier
courseOfTherapyType0..1CodeableConcept
insuranceI0..*Reference(Coverage | ClaimResponse)
note0..*Annotation
dosageInstruction0..*Dosage
quantityI0..1SimpleQuantity
durationI0..1Duration
dispenseIntervalI0..1Duration
validityPeriodI0..1Period
numberOfRepeatsAllowed0..1unsignedInt
quantityI0..1SimpleQuantity
expectedSupplyDurationI0..1Duration
performerI0..1Reference(Organization)
allowedBooleanboolean
allowedCodeableConceptCodeableConcept
reason0..1CodeableConcept
priorPrescriptionI0..1Reference(MedicationRequest)
detectedIssueI0..*Reference(DetectedIssue)
eventHistoryI0..*Reference(Provenance)

Table View

MedicationRequest..
MedicationRequest.id..
MedicationRequest.identifier..1
MedicationRequest.identifier.system..
MedicationRequest.identifier.value1..
MedicationRequest.status..
MedicationRequest.intent..
MedicationRequest.medication[x]Reference(Medication)..
MedicationRequest.medication[x].reference1..
MedicationRequest.subjectReference(Patient)..
MedicationRequest.subject.reference1..
MedicationRequest.requesterReference(PractitionerPrescriber)..
MedicationRequest.requester.reference1..
MedicationRequest.reasonCode..1
MedicationRequest.reasonCode.coding1..1
MedicationRequest.reasonCode.coding.system1..
MedicationRequest.reasonCode.coding.code1..
MedicationRequest.reasonCode.coding.display..


JSON View

{
    "resourceType": "StructureDefinition",
    "id": "6ad5d72d-c011-4f6a-bcbf-00722b1d1be5",
    "meta": {
        "versionId": "1",
        "lastUpdated": "2023-03-13T16:10:36.2861639+00:00"
    },
    "text": {
        "status": "empty",
        --- We have skipped the narrative for better readability of the resource ---
    },
    "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-consumer-profile-MedicationRequest",
    "version": "1.0.0",
    "name": "MedicationRequestPrescription",
    "status": "draft",
    "date": "2022-02-18T00:00:00-05:00",
    "description": "Ordering of medication for patient",
    "fhirVersion": "4.0.1",
    "kind": "resource",
    "abstract": false,
    "type": "MedicationRequest",
    "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
    "derivation": "constraint",
    "differential": {
        "element":  [
            {
                "id": "MedicationRequest",
                "path": "MedicationRequest",
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.id",
                "path": "MedicationRequest.id",
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.identifier",
                "path": "MedicationRequest.identifier",
                "definition": "Identifiers associated with this medication request that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.\n\nDHDR: Identifier assigned by the ordering facility - this is an identifier assigned outside FHIR.",
                "max": "1",
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.identifier.system",
                "path": "MedicationRequest.identifier.system",
                "comment": "Identifier.system is always case sensitive.\nRefer to https://simplifier.net/CanadianURIRegistry",
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.identifier.value",
                "path": "MedicationRequest.identifier.value",
                "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.\n\nDHDR: Source system Original Rx Number (e.g. assigned by EMR or ePrescribing).",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.status",
                "path": "MedicationRequest.status",
                "fixedCode": "unknown",
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.intent",
                "path": "MedicationRequest.intent",
                "fixedCode": "original-order",
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.medication[x]",
                "path": "MedicationRequest.medication[x]",
                "type":  [
                    {
                        "code": "Reference",
                        "targetProfile":  [
                            "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-consumer-profile-Medication"
                        ]
                    }
                ],
                "mustSupport": true,
                "binding": {
                    "strength": "example"
                }
            },
            {
                "id": "MedicationRequest.medication[x].reference",
                "path": "MedicationRequest.medication[x].reference",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.subject",
                "path": "MedicationRequest.subject",
                "type":  [
                    {
                        "code": "Reference",
                        "targetProfile":  [
                            "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-consumer-profile-Patient-dispense"
                        ]
                    }
                ],
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.subject.reference",
                "path": "MedicationRequest.subject.reference",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.requester",
                "path": "MedicationRequest.requester",
                "definition": "Prescriber. The individual, organization, or device that initiated the request and has responsibility for its activation.",
                "type":  [
                    {
                        "code": "Reference",
                        "targetProfile":  [
                            "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-consumer-profile-Practitioner-prescriber"
                        ]
                    }
                ],
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.requester.reference",
                "path": "MedicationRequest.requester.reference",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.reasonCode",
                "path": "MedicationRequest.reasonCode",
                "definition": "The reason or the indication for ordering or not ordering the medication.\n\nSubset Defining URL https://tgateway.infoway-inforoute.ca/vs/prescriptionodbreasonforuse",
                "max": "1",
                "mustSupport": true,
                "binding": {
                    "strength": "required",
                    "description": "Reason or indication for writing the prescription.",
                    "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/prescriptionodbreasonforuse"
                }
            },
            {
                "id": "MedicationRequest.reasonCode.coding",
                "path": "MedicationRequest.reasonCode.coding",
                "min": 1,
                "max": "1",
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.reasonCode.coding.system",
                "path": "MedicationRequest.reasonCode.coding.system",
                "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.\n\nDHDR: e.g. \"http://snomed.info/sct\" or “[code-system-local-base]/ca-on-drug-odb-prescription-reason”",
                "min": 1,
                "fixedUri": "http://ehealthontario.ca/fhir/NamingSystem/ca-on-drug-odb-prescription-reason",
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.reasonCode.coding.code",
                "path": "MedicationRequest.reasonCode.coding.code",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "MedicationRequest.reasonCode.coding.display",
                "path": "MedicationRequest.reasonCode.coding.display",
                "mustSupport": true
            }
        ]
    }
}

Usage

The MedicationRequest Resource represents a medication request in DHDR. It contains information such as medication, prescriber provider, patient, and etc.

Notes

.identifier

  • business identifier assigned by the ordering facility for the medication request
  • identifier.value should be the source system Original Rx Number (e.g. assigned by EMR or ePrescribing).

.status

  • should be fixed to unknown

.intent

  • should be fixed to original-order