Argonaut Data Query Implementation Guide Version 1.0.0

This page is part of the Argonaut Data Query Implementation Guide (v1.0.0: Release) based on FHIR R2. This is the current published version. For a full list of available versions, see the Directory of published versions

Argonaut MedicationOrder Profile

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<StructureDefinition/argo-medicationorder> a fhir:StructureDefinition;
  fhir:nodeRole fhir:treeRoot;
  fhir:StructureDefinition.id [ fhir:value "argo-medicationorder"];
  fhir:StructureDefinition.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:StructureDefinition.url [ fhir:value "http://fhir.org/guides/argonaut/StructureDefinition/argo-medicationorder"];
  fhir:StructureDefinition.name [ fhir:value "Argonaut MedicationOrder Profile"];
  fhir:StructureDefinition.status [ fhir:value "draft"];
  fhir:StructureDefinition.publisher [ fhir:value "Argonaut Project"];
  fhir:StructureDefinition.contact [
     fhir:index 0;
     fhir:StructureDefinition.contact.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "other" ];
       fhir:ContactPoint.value [ fhir:value "http://argonautwiki.hl7.org" ];
       fhir:ContactPoint.rank [ fhir:value "0"^^xsd:positiveInteger ]     ]
  ];
  fhir:StructureDefinition.date [ fhir:value "2016-10-18T00:00:00+11:00"^^xsd:dateTime];
  fhir:StructureDefinition.fhirVersion [ fhir:value "1.0.2"];
  fhir:StructureDefinition.mapping [
     fhir:index 0;
     fhir:StructureDefinition.mapping.identity [ fhir:value "rim" ];
     fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/v3" ];
     fhir:StructureDefinition.mapping.name [ fhir:value "RIM" ]
  ], [
     fhir:index 1;
     fhir:StructureDefinition.mapping.identity [ fhir:value "w5" ];
     fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/fhir/w5" ];
     fhir:StructureDefinition.mapping.name [ fhir:value "W5 Mapping" ]
  ], [
     fhir:index 2;
     fhir:StructureDefinition.mapping.identity [ fhir:value "v2" ];
     fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/v2" ];
     fhir:StructureDefinition.mapping.name [ fhir:value "HL7 v2" ]
  ];
  fhir:StructureDefinition.kind [ fhir:value "resource"];
  fhir:StructureDefinition.constrainedType [ fhir:value "MedicationOrder"];
  fhir:StructureDefinition.abstract [ fhir:value "false"^^xsd:boolean];
  fhir:StructureDefinition.base [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationOrder"];
  fhir:StructureDefinition.snapshot [
     fhir:StructureDefinition.snapshot.element [
       fhir:index 0;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder" ];
       fhir:ElementDefinition.name [ fhir:value "argoprofile" ];
       fhir:ElementDefinition.short [ fhir:value "Argonaut MedicationOrder Profile" ];
       fhir:ElementDefinition.definition [ fhir:value "An order for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationOrder\" rather than \"MedicationPrescription\" to generalize the use across inpatient and outpatient settings as well as for care plans, etc." ];
       fhir:ElementDefinition.alias [
         fhir:value "Prescription";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "MedicationOrder" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "CombinedMedicationRequest" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "clinical.medication" ]       ]     ], [
       fhir:index 1;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.id" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.id" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.id" ];
       fhir:ElementDefinition.short [ fhir:value "Logical id of this artifact" ];
       fhir:ElementDefinition.definition [ fhir:value "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ];
       fhir:ElementDefinition.comments [ fhir:value "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "id" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 2;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.meta" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.meta" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.meta" ];
       fhir:ElementDefinition.short [ fhir:value "Metadata about the resource" ];
       fhir:ElementDefinition.definition [ fhir:value "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.meta" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Meta" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 3;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.implicitRules" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.implicitRules" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.implicitRules" ];
       fhir:ElementDefinition.short [ fhir:value "A set of rules under which this content was created" ];
       fhir:ElementDefinition.definition [ fhir:value "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content." ];
       fhir:ElementDefinition.comments [ fhir:value "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.implicitRules" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "uri" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 4;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.language" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.language" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.language" ];
       fhir:ElementDefinition.short [ fhir:value "Language of the resource content" ];
       fhir:ElementDefinition.definition [ fhir:value "The base language in which the resource is written." ];
       fhir:ElementDefinition.comments [ fhir:value "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.language" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A human language." ];
         fhir:ElementDefinition.binding.valueSetUri [ fhir:value "http://tools.ietf.org/html/bcp47" ]       ]     ], [
       fhir:index 5;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.text" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.text" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.text" ];
       fhir:ElementDefinition.short [ fhir:value "Text summary of the resource, for human interpretation" ];
       fhir:ElementDefinition.definition [ fhir:value "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." ];
       fhir:ElementDefinition.comments [ fhir:value "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative." ];
       fhir:ElementDefinition.alias [
         fhir:value "narrative";
         fhir:index 0       ], [
         fhir:value "html";
         fhir:index 1       ], [
         fhir:value "xhtml";
         fhir:index 2       ], [
         fhir:value "display";
         fhir:index 3       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.text" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Narrative" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.condition [
         fhir:value "dom-1";
         fhir:index 0       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "Act.text?" ]       ]     ], [
       fhir:index 6;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.contained" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.contained" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.contained" ];
       fhir:ElementDefinition.short [ fhir:value "Contained, inline Resources" ];
       fhir:ElementDefinition.definition [ fhir:value "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." ];
       fhir:ElementDefinition.comments [ fhir:value "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again." ];
       fhir:ElementDefinition.alias [
         fhir:value "inline resources";
         fhir:index 0       ], [
         fhir:value "anonymous resources";
         fhir:index 1       ], [
         fhir:value "contained resources";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.contained" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Resource" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 7;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.extension" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.extension" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional Content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 8;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.modifierExtension" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.modifierExtension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 9;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.identifier" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.identifier" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.identifier" ];
       fhir:ElementDefinition.short [ fhir:value "External identifier" ];
       fhir:ElementDefinition.definition [ fhir:value "External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created.  This is particularly important where FHIR only provides part of an entire workflow process where records have to be tracked through an entire system." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.identifier" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-2-Placer Order Number / ORC-3-Filler Order Number" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "id" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "id" ]       ]     ], [
       fhir:index 10;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dateWritten" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dateWritten" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dateWritten" ];
       fhir:ElementDefinition.short [ fhir:value "When prescription was authorized" ];
       fhir:ElementDefinition.definition [ fhir:value "The date (and perhaps time) when the prescription was written." ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dateWritten" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "author.time" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "when.recorded" ]       ]     ], [
       fhir:index 11;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.status" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.status" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.status" ];
       fhir:ElementDefinition.short [ fhir:value "active | on-hold | completed | entered-in-error | stopped | draft" ];
       fhir:ElementDefinition.definition [ fhir:value "A code specifying the state of the order.  Generally this will be active or completed state." ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.status" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A code specifying the state of the prescribing event. Describes the lifecycle of the prescription." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/medication-order-status>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/medication-order-status" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "statusCode" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "status" ]       ]     ], [
       fhir:index 12;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dateEnded" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dateEnded" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dateEnded" ];
       fhir:ElementDefinition.short [ fhir:value "When prescription was stopped" ];
       fhir:ElementDefinition.definition [ fhir:value "The date (and perhaps time) when the prescription was stopped." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dateEnded" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 13;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.reasonEnded" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.reasonEnded" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.reasonEnded" ];
       fhir:ElementDefinition.short [ fhir:value "Why prescription was stopped" ];
       fhir:ElementDefinition.definition [ fhir:value "The reason why the prescription was stopped, if it was." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.reasonEnded" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Codes indicating why the medication was terminated; e.g. Adverse reaction, medication change, issue resolved, etc." ]       ]     ], [
       fhir:index 14;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.patient" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.patient" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.patient" ];
       fhir:ElementDefinition.short [ fhir:value "Who prescription is for" ];
       fhir:ElementDefinition.definition [ fhir:value "A link to a resource representing the person to whom the medication will be given." ];
       fhir:ElementDefinition.comments [ fhir:value "SubstanceAdministration->subject->Patient." ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.patient" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://fhir.org/guides/argonaut/StructureDefinition/argo-patient";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PID-3-Patient ID List" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "subject.role" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "who.focus" ]       ]     ], [
       fhir:index 15;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.prescriber" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.prescriber" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.prescriber" ];
       fhir:ElementDefinition.short [ fhir:value "Who ordered the medication(s)" ];
       fhir:ElementDefinition.definition [ fhir:value "The healthcare professional responsible for authorizing the prescription." ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.prescriber" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Treatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "author.role" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "who.actor" ]       ]     ], [
       fhir:index 16;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.encounter" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.encounter" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.encounter" ];
       fhir:ElementDefinition.short [ fhir:value "Created during encounter/admission/stay" ];
       fhir:ElementDefinition.definition [ fhir:value "A link to a resource that identifies the particular occurrence of contact between patient and health care provider." ];
       fhir:ElementDefinition.comments [ fhir:value "SubstanceAdministration->component->EncounterEvent." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.encounter" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-19-Visit Number" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "componentOf.patientEncounter" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "context" ]       ]     ], [
       fhir:index 17;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.reason[x]" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.reason[x]" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.reason[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Reason or indication for writing the prescription" ];
       fhir:ElementDefinition.definition [ fhir:value "Can be the reason or the indication for writing the prescription." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.reason[x]" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Condition";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Codes indicating why the medication was ordered." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/condition-code>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/condition-code" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-16-Order Control Code Reason /RXE-27-Give Indication/RXO-20-Indication / RXD-21-Indication / RXG-22-Indication / RXA-19-Indication" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "reason.observation or reason.observation[code=ASSERTION].value" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "why" ]       ]     ], [
       fhir:index 18;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.note" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.note" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.note" ];
       fhir:ElementDefinition.short [ fhir:value "Information about the prescription" ];
       fhir:ElementDefinition.definition [ fhir:value "Extra information about the prescription that could not be conveyed by the other attributes." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.note" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 19;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.medication[x]" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.medication[x]" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.medication[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Medication to be taken" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifies the medication being administered. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications." ];
       fhir:ElementDefinition.comments [ fhir:value "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.  Note: do not use Medication.name to describe the prescribed medication. When the only available information is a text description of the medication, Medication.code.text should be used." ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.medication[x]" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://fhir.org/guides/argonaut/StructureDefinition/argo-medication";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Prescribable medications" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://fhir.org/guides/argonaut/ValueSet/medication-codes>;
           fhir:Reference.reference [ fhir:value "http://fhir.org/guides/argonaut/ValueSet/medication-codes" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "consumable.administrableMedication" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "what" ]       ]     ], [
       fhir:index 20;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction" ];
       fhir:ElementDefinition.short [ fhir:value "How medication should be taken" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates how the medication is to be used by the patient." ];
       fhir:ElementDefinition.comments [ fhir:value "When the dose or rate is intended to change over the entire administration period, e.g. Tapering dose prescriptions, multiple instances of dosage instructions will need to be supplied to convey the different doses/rates. Another common example in institutional settings is 'titration' of an IV medication dose to maintain a specific stated hemodynamic value or range e.g. drug x to be administered to maintain AM (arterial mean) greater than 65." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "component.substanceAdministrationRequest" ]       ]     ], [
       fhir:index 21;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.id" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.id" ];
       fhir:ElementDefinition.short [ fhir:value "xml:id (or equivalent in JSON)" ];
       fhir:ElementDefinition.definition [ fhir:value "unique id for the element within a resource (for internal references)." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "id" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 22;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.extension" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.extension" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional Content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 23;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.modifierExtension" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ], [
         fhir:value "modifiers";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.modifierExtension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 24;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.text" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.text" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.text" ];
       fhir:ElementDefinition.short [ fhir:value "Dosage instructions expressed as text" ];
       fhir:ElementDefinition.definition [ fhir:value "Free text dosage instructions can be used for cases where the instructions are too complex to code.  The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated.  If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.text" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXE-7.2-Provider's Administration Instructions.text / RXO-7.2-Provider's Administration Instructions.text / TQ1-10-Condition Text / TQ1-11-Text Instruction" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "text" ]       ]     ], [
       fhir:index 25;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.additionalInstructions" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.additionalInstructions" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.additionalInstructions" ];
       fhir:ElementDefinition.short [ fhir:value "Supplemental instructions - e.g. \"with meals\"" ];
       fhir:ElementDefinition.definition [ fhir:value "Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.additionalInstructions" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Codes identifying additional instructions such as \"take with water\" or \"avoid operating heavy machinery\"." ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXE-7.2-Provider's Administration Instructions.text / RXO-7.2-Provider's Administration Instructions.text / TQ1-10-Condition Text / TQ1-11-Text Instruction" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "component.substanceAdministrationRequest.text" ]       ]     ], [
       fhir:index 26;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.timing" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.timing" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.timing" ];
       fhir:ElementDefinition.short [ fhir:value "When medication should be administered" ];
       fhir:ElementDefinition.definition [ fhir:value "The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions. For example: \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\"." ];
       fhir:ElementDefinition.comments [ fhir:value "This attribute may not always be populated while the DosageInstruction.text is expected to be populated.  If both are populated, then the DosageInstruction.text should reflect the content of the Dosage.timing." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.timing" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Timing" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "TQ1-X / ORC Quantity/timing" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "effectiveTime" ]       ]     ], [
       fhir:index 27;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.asNeeded[x]" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.asNeeded[x]" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.asNeeded[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Take \"as needed\" (for x)" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept)." ];
       fhir:ElementDefinition.comments [ fhir:value "Specifically if 'boolean' datatype is selected, then the following logic applies:  If set to True, this indicates that the medication is only taken when needed, within the specified schedule." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.asNeeded[x]" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc." ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false  CodeableConcept: precondition.observationEventCriterion[code=\"Assertion\"].value" ]       ]     ], [
       fhir:index 28;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.site[x]" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.site[x]" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.site[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Body site to administer to" ];
       fhir:ElementDefinition.definition [ fhir:value "A coded specification of the anatomic site where the medication first enters the body." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.site[x]" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/BodySite";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A coded concept describing the site location the medicine enters into or onto the body." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/approach-site-codes>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/approach-site-codes" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXR-2-Administration Site" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "approachSiteCode" ]       ]     ], [
       fhir:index 29;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.route" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.route" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.route" ];
       fhir:ElementDefinition.short [ fhir:value "How drug should enter body" ];
       fhir:ElementDefinition.definition [ fhir:value "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.route" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/route-codes>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/route-codes" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXR-1-Route" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "routeCode" ]       ]     ], [
       fhir:index 30;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.method" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.method" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.method" ];
       fhir:ElementDefinition.short [ fhir:value "Technique for administering medication" ];
       fhir:ElementDefinition.definition [ fhir:value "A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections.  For examples, Slow Push; Deep IV." ];
       fhir:ElementDefinition.comments [ fhir:value "Terminologies used often pre-coordinate this term with the route and or form of administration." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.method" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A coded concept describing the technique by which the medicine is administered." ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXR-4-Administration Method" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "methodCode" ]       ]     ], [
       fhir:index 31;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.dose[x]" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.dose[x]" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.dose[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Amount of medication per dose" ];
       fhir:ElementDefinition.definition [ fhir:value "The amount of therapeutic or other substance given at one administration event." ];
       fhir:ElementDefinition.comments [ fhir:value "Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.dose[x]" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Range" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Quantity" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/SimpleQuantity";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXE-23-Give Rate Amount / RXE-24.1-Give Rate Units.code / RXE-24.3-Give Rate Units.name of coding system" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "doseQuantity" ]       ]     ], [
       fhir:index 32;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.rate[x]" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.rate[x]" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.rate[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Amount of medication per unit of time" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours." ];
       fhir:ElementDefinition.comments [ fhir:value "It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationOrder with an updated rate, or captured with a new MedicationOrder with the new rate." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.rate[x]" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Ratio" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Range" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXE-22-Give Per (Time Unit)" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "rateQuantity" ]       ]     ], [
       fhir:index 33;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.maxDosePerPeriod" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dosageInstruction.maxDosePerPeriod" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dosageInstruction.maxDosePerPeriod" ];
       fhir:ElementDefinition.short [ fhir:value "Upper limit on medication per unit of time" ];
       fhir:ElementDefinition.definition [ fhir:value "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time.  For example, 1000mg in 24 hours." ];
       fhir:ElementDefinition.comments [ fhir:value "This is intended for use as an adjunct to the dosage when there is an upper cap.  For example \"2 tablets every 4 hours to a maximum of 8/day\"." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dosageInstruction.maxDosePerPeriod" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Ratio" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXE-4-Give Amount - Maximum / RXE-5-Give Units" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "maxDoseQuantity" ]       ]     ], [
       fhir:index 34;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dispenseRequest" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dispenseRequest" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dispenseRequest" ];
       fhir:ElementDefinition.short [ fhir:value "Medication supply authorization" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates the specific details for the dispense or medication supply part of a medication order (also known as a Medication Prescription).  Note that this information is NOT always sent with the order.  There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dispenseRequest" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "component.supplyEvent" ]       ]     ], [
       fhir:index 35;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.id" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dispenseRequest.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.id" ];
       fhir:ElementDefinition.short [ fhir:value "xml:id (or equivalent in JSON)" ];
       fhir:ElementDefinition.definition [ fhir:value "unique id for the element within a resource (for internal references)." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dispenseRequest.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "id" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 36;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.extension" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dispenseRequest.extension" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional Content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dispenseRequest.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 37;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dispenseRequest.modifierExtension" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ], [
         fhir:value "modifiers";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dispenseRequest.modifierExtension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 38;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.medication[x]" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dispenseRequest.medication[x]" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.medication[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Product to be supplied" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifies the medication being administered. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications." ];
       fhir:ElementDefinition.comments [ fhir:value "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dispenseRequest.medication[x]" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Medication";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "consumable.role" ]       ]     ], [
       fhir:index 39;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.validityPeriod" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dispenseRequest.validityPeriod" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.validityPeriod" ];
       fhir:ElementDefinition.short [ fhir:value "Time period supply is authorized for" ];
       fhir:ElementDefinition.definition [ fhir:value "This indicates the validity period of a prescription (stale dating the Prescription)." ];
       fhir:ElementDefinition.comments [ fhir:value "It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations." ];
       fhir:ElementDefinition.requirements [ fhir:value "Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dispenseRequest.validityPeriod" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Period" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "effectiveTime" ]       ]     ], [
       fhir:index 40;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.numberOfRepeatsAllowed" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dispenseRequest.numberOfRepeatsAllowed" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.numberOfRepeatsAllowed" ];
       fhir:ElementDefinition.short [ fhir:value "Number of refills authorized" ];
       fhir:ElementDefinition.definition [ fhir:value "An integer indicating the number of additional times (aka refills or repeats) the patient can receive the prescribed medication.   Usage Notes: This integer does NOT include the original order dispense.   This means that if an order indicates dispense 30 tablets plus  \"3 repeats\", then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets." ];
       fhir:ElementDefinition.comments [ fhir:value "If displaying \"number of authorized refills\", subtract 1 from this number." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dispenseRequest.numberOfRepeatsAllowed" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "positiveInt" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXE-12-Number of Refills" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "repeatNumber" ]       ]     ], [
       fhir:index 41;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.quantity" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dispenseRequest.quantity" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.quantity" ];
       fhir:ElementDefinition.short [ fhir:value "Amount of medication to supply per dispense" ];
       fhir:ElementDefinition.definition [ fhir:value "The amount that is to be dispensed for one fill." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dispenseRequest.quantity" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Quantity" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/SimpleQuantity";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "quantity" ]       ]     ], [
       fhir:index 42;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.expectedSupplyDuration" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dispenseRequest.expectedSupplyDuration" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dispenseRequest.expectedSupplyDuration" ];
       fhir:ElementDefinition.short [ fhir:value "Number of days supply per dispense" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last." ];
       fhir:ElementDefinition.comments [ fhir:value "In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.dispenseRequest.expectedSupplyDuration" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Quantity" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Duration";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "expectedUseTime" ]       ]     ], [
       fhir:index 43;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.substitution" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.substitution" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.substitution" ];
       fhir:ElementDefinition.short [ fhir:value "Any restrictions on medication substitution" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.substitution" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "subjectOf.substitutionPersmission" ]       ]     ], [
       fhir:index 44;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.substitution.id" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.substitution.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.substitution.id" ];
       fhir:ElementDefinition.short [ fhir:value "xml:id (or equivalent in JSON)" ];
       fhir:ElementDefinition.definition [ fhir:value "unique id for the element within a resource (for internal references)." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.substitution.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "id" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 45;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.substitution.extension" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.substitution.extension" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.substitution.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional Content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.substitution.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 46;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.substitution.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.substitution.modifierExtension" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.substitution.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ], [
         fhir:value "modifiers";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.substitution.modifierExtension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 47;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.substitution.type" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.substitution.type" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.substitution.type" ];
       fhir:ElementDefinition.short [ fhir:value "generic | formulary +" ];
       fhir:ElementDefinition.definition [ fhir:value "A code signifying whether a different drug should be dispensed from what was prescribed." ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.substitution.type" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXO-9-Allow Substitutions / RXE-9-Substitution Status" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "code" ]       ]     ], [
       fhir:index 48;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.substitution.reason" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.substitution.reason" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.substitution.reason" ];
       fhir:ElementDefinition.short [ fhir:value "Why should (not) substitution be made" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates the reason for the substitution, or why substitution must or must not be performed." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.substitution.reason" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "RXE-9 Substition status" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "reasonCode" ]       ]     ], [
       fhir:index 49;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.priorPrescription" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.priorPrescription" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.priorPrescription" ];
       fhir:ElementDefinition.short [ fhir:value "An order/prescription that this supersedes" ];
       fhir:ElementDefinition.definition [ fhir:value "A link to a resource representing an earlier order or prescription that this order supersedes." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "MedicationOrder.priorPrescription" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:integer ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationOrder";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ]
  ];
  fhir:StructureDefinition.differential [
     fhir:StructureDefinition.differential.element [
       fhir:index 0;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder" ];
       fhir:ElementDefinition.name [ fhir:value "argoprofile" ];
       fhir:ElementDefinition.short [ fhir:value "Argonaut MedicationOrder Profile" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "MedicationOrder" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 1;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.dateWritten" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.dateWritten" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.dateWritten" ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 2;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.status" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.status" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.status" ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A code specifying the state of the prescribing event. Describes the lifecycle of the prescription." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/medication-order-status>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/medication-order-status" ]         ]       ]     ], [
       fhir:index 3;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.patient" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.patient" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.patient" ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://fhir.org/guides/argonaut/StructureDefinition/argo-patient";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 4;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.prescriber" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.prescriber" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.prescriber" ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 5;
       fhir:ElementDefinition.id [ fhir:value "MedicationOrder:argoprofile.medication[x]" ];
       fhir:ElementDefinition.path [ fhir:value "MedicationOrder.medication[x]" ];
       fhir:ElementDefinition.name [ fhir:value "MedicationOrder:argoprofile.medication[x]" ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:integer ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [
           fhir:value "http://fhir.org/guides/argonaut/StructureDefinition/argo-medication";
           fhir:index 0         ]       ];
       fhir:ElementDefinition.maxLength [ fhir:value "0"^^xsd:integer ];
       fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Prescribable medications" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://fhir.org/guides/argonaut/ValueSet/medication-codes>;
           fhir:Reference.reference [ fhir:value "http://fhir.org/guides/argonaut/ValueSet/medication-codes" ]         ]       ]     ]
  ].

<http://hl7.org/fhir/ValueSet/medication-order-status> a fhir:ValueSet, fhir:ValueSet.

<http://hl7.org/fhir/ValueSet/condition-code> a fhir:ValueSet.

<http://hl7.org/fhir/ValueSet/approach-site-codes> a fhir:ValueSet.

<http://hl7.org/fhir/ValueSet/route-codes> a fhir:ValueSet.

<http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode> a fhir:ValueSet.

<http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason> a fhir:ValueSet.