PREFIX fhir: PREFIX fhirvs: PREFIX xsd: BASE start=@ AND {fhir:nodeRole [fhir:treeRoot]} # Ordering of medication for patient or group CLOSED { a [fhir:MedicationRequest]; fhir:nodeRole [fhir:treeRoot]?; fhir:Resource.id id?; # Logical id of this artifact fhir:Resource.meta @?; # Metadata about the resource fhir:Resource.implicitRules @?; # A set of rules under which this # content was created fhir:Resource.language @?; # Language of the resource content fhir:DomainResource.text @?; # Text summary of the resource, for # human interpretation fhir:DomainResource.contained @*; # Contained, inline Resources fhir:DomainResource.extension @*; # Additional content defined by # implementations fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored fhir:MedicationRequest.identifier @*; # External ids for this request fhir:MedicationRequest.status @ AND {fhir:value @fhirvs:medicationrequest-status}; # active | on-hold | cancelled | # completed | entered-in-error | # stopped | draft | unknown fhir:MedicationRequest.statusReason @?; # Reason for current status fhir:MedicationRequest.intent @ AND {fhir:value @fhirvs:medicationrequest-intent}; # proposal | plan | order | # original-order | reflex-order | # filler-order | instance-order | # option fhir:MedicationRequest.category @*; # Type of medication usage fhir:MedicationRequest.priority @ AND {fhir:value @fhirvs:request-priority}?; # routine | urgent | asap | stat fhir:MedicationRequest.doNotPerform @?; # True if request is prohibiting # action ( # Reported rather than primary record fhir:MedicationRequest.reportedBoolean @ | fhir:MedicationRequest.reportedReference @ )?; ( # Medication to be taken fhir:MedicationRequest.medicationCodeableConcept @ | fhir:MedicationRequest.medicationReference @ ); fhir:MedicationRequest.subject @; # Who or group medication request is # for fhir:MedicationRequest.encounter @?; # Encounter created as part of # encounter/admission/stay fhir:MedicationRequest.supportingInformation @*; # Information to support ordering of # the medication fhir:MedicationRequest.authoredOn @?; # When request was initially authored fhir:MedicationRequest.requester @?; # Who/What requested the Request fhir:MedicationRequest.performer @?; # Intended performer of # administration fhir:MedicationRequest.performerType @?; # Desired kind of performer of the # medication administration fhir:MedicationRequest.recorder @?; # Person who entered the request fhir:MedicationRequest.reasonCode @*; # Reason or indication for ordering # or not ordering the medication fhir:MedicationRequest.reasonReference @*; # Condition or observation that # supports why the prescription is # being written fhir:MedicationRequest.instantiatesCanonical @*; # Instantiates FHIR protocol or # definition fhir:MedicationRequest.instantiatesUri @*; # Instantiates external protocol or # definition fhir:MedicationRequest.basedOn @*; # What request fulfills fhir:MedicationRequest.groupIdentifier @?; # Composite request this is part of fhir:MedicationRequest.courseOfTherapyType @?; # Overall pattern of medication # administration fhir:MedicationRequest.insurance @*; # Associated insurance coverage fhir:MedicationRequest.note @*; # Information about the prescription fhir:MedicationRequest.dosageInstruction @*; # How the medication should be taken fhir:MedicationRequest.dispenseRequest @?; # Medication supply authorization fhir:MedicationRequest.substitution @?; # Any restrictions on medication # substitution fhir:MedicationRequest.priorPrescription @?; # An order/prescription that is # being replaced fhir:MedicationRequest.detectedIssue @*; # Clinical Issue with action fhir:MedicationRequest.eventHistory @*; # A list of events of interest in # the lifecycle fhir:index xsd:integer? # Relative position in a list } # Any restrictions on medication substitution CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized ( # Whether substitution is allowed or # not fhir:MedicationRequest.substitution.allowedBoolean @ | fhir:MedicationRequest.substitution.allowedCodeableConcept @ ); fhir:MedicationRequest.substitution.reason @?; # Why should (not) substitution be # made fhir:index xsd:integer? # Relative position in a list } # Medication supply authorization CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:MedicationRequest.dispenseRequest.initialFill @?; # First fill details fhir:MedicationRequest.dispenseRequest.dispenseInterval @?; # Minimum period of time between # dispenses fhir:MedicationRequest.dispenseRequest.validityPeriod @?; # Time period supply is authorized # for fhir:MedicationRequest.dispenseRequest.numberOfRepeatsAllowed @?; # Number of refills authorized fhir:MedicationRequest.dispenseRequest.quantity @?; # Amount of medication to supply per # dispense fhir:MedicationRequest.dispenseRequest.expectedSupplyDuration @?; # Number of days supply per dispense fhir:MedicationRequest.dispenseRequest.performer @?; # Intended dispenser fhir:index xsd:integer? # Relative position in a list } # First fill details CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:MedicationRequest.dispenseRequest.initialFill.quantity @?; # First fill quantity fhir:MedicationRequest.dispenseRequest.initialFill.duration @?; # First fill duration fhir:index xsd:integer? # Relative position in a list } #---------------------- Data Types ------------------- # Primitive Type dateTime CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value dateTime?; # Primitive value for dateTime fhir:index xsd:integer? # Relative position in a list } # Metadata about a resource CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Meta.versionId @?; # Version specific identifier fhir:Meta.lastUpdated @?; # When the resource version last # changed fhir:Meta.source @?; # Identifies where the resource # comes from fhir:Meta.profile @*; # Profiles this resource claims to # conform to fhir:Meta.security @*; # Security Labels applied to this # resource fhir:Meta.tag @*; # Tags applied to this resource fhir:index xsd:integer? # Relative position in a list } # Primitive Type code CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value code?; # Primitive value for code fhir:index xsd:integer? # Relative position in a list } # A reference from one resource to another CLOSED { fhir:link IRI?; fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Reference.reference @?; # Literal reference, Relative, # internal or absolute URL fhir:Reference.type @?; # Type the reference refers to (e.g. # "Patient") fhir:Reference.identifier @?; # Logical reference, when literal # reference is not known fhir:Reference.display @?; # Text alternative for the resource fhir:index xsd:integer? # Relative position in a list } # Base Resource {a .+; fhir:Resource.id id?; # Logical id of this artifact fhir:Resource.meta @?; # Metadata about the resource fhir:Resource.implicitRules @?; # A set of rules under which this # content was created fhir:Resource.language @?; # Language of the resource content fhir:index xsd:integer? } # A fixed quantity (no comparator) CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Quantity.value @?; # Numerical value (with implicit # precision) fhir:Quantity.unit @?; # Unit representation fhir:Quantity.system @?; # System that defines coded unit form fhir:Quantity.code @?; # Coded form of the unit fhir:index xsd:integer? # Relative position in a list } # Time range defined by start and end date/time CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Period.start @?; # Starting time with inclusive # boundary fhir:Period.end @?; # End time with inclusive boundary, # if not ongoing fhir:index xsd:integer? # Relative position in a list } # A length of time CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Quantity.value @?; # Numerical value (with implicit # precision) fhir:Quantity.comparator @ AND {fhir:value @fhirvs:quantity-comparator}?; # < | <= | >= | > - how to # understand the value fhir:Quantity.unit @?; # Unit representation fhir:Quantity.system @?; # System that defines coded unit form fhir:Quantity.code @?; # Coded form of the unit fhir:index xsd:integer? # Relative position in a list } # Primitive Type canonical CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value canonical?; # Primitive value for canonical fhir:index xsd:integer? # Relative position in a list } # How the medication is/was taken or should be taken CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:Dosage.sequence @?; # The order of the dosage # instructions fhir:Dosage.text @?; # Free text dosage instructions e.g. # SIG fhir:Dosage.additionalInstruction @*; # Supplemental instruction or # warnings to the patient - e.g. # "with meals", "may cause # drowsiness" fhir:Dosage.patientInstruction @?; # Patient or consumer oriented # instructions fhir:Dosage.timing @?; # When medication should be # administered ( # Take "as needed" (for x) fhir:Dosage.asNeededBoolean @ | fhir:Dosage.asNeededCodeableConcept @ )?; fhir:Dosage.site @?; # Body site to administer to fhir:Dosage.route @?; # How drug should enter body fhir:Dosage.method @?; # Technique for administering # medication fhir:Dosage.doseAndRate @*; # Amount of medication administered fhir:Dosage.maxDosePerPeriod @?; # Upper limit on medication per unit # of time fhir:Dosage.maxDosePerAdministration @?; # Upper limit on medication per # administration fhir:Dosage.maxDosePerLifetime @?; # Upper limit on medication per # lifetime of the patient fhir:index xsd:integer? # Relative position in a list } # Primitive Type uri CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value uri?; # Primitive value for uri fhir:index xsd:integer? # Relative position in a list } # Text node with attribution CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations ( # Individual responsible for the # annotation fhir:Annotation.authorReference @ | fhir:Annotation.authorString @ )?; fhir:Annotation.time @?; # When the annotation was made fhir:Annotation.text @; # The annotation - text content (as # markdown) fhir:index xsd:integer? # Relative position in a list } # Optional Extensions Element CLOSED { fhir:Element.id id?; fhir:Element.extension @*; fhir:Extension.url uri; ( fhir:Extension.valueBase64Binary @ | fhir:Extension.valueBoolean @ | fhir:Extension.valueCanonical @ | fhir:Extension.valueCode @ | fhir:Extension.valueDate @ | fhir:Extension.valueDateTime @ | fhir:Extension.valueDecimal @ | fhir:Extension.valueId @ | fhir:Extension.valueInstant @ | fhir:Extension.valueInteger @ | fhir:Extension.valueMarkdown @ | fhir:Extension.valueOid @ | fhir:Extension.valuePositiveInt @ | fhir:Extension.valueString @ | fhir:Extension.valueTime @