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 Medication Profile

{
  "resourceType" : "StructureDefinition",
  "id" : "argo-medication",
  "text" : {
    "status" : "generated"
  },
  "url" : "http://fhir.org/guides/argonaut/StructureDefinition/argo-medication",
  "name" : "Argonaut Medication Profile",
  "status" : "draft",
  "publisher" : "Argonaut Project",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "other",
          "value" : "http://argonautwiki.hl7.org",
          "rank" : 0
        }
      ]
    }
  ],
  "date" : "2016-10-18T00:00:00+11:00",
  "fhirVersion" : "1.0.2",
  "mapping" : [
    {
      "identity" : "rim",
      "uri" : "http://hl7.org/v3",
      "name" : "RIM"
    },
    {
      "identity" : "w5",
      "uri" : "http://hl7.org/fhir/w5",
      "name" : "W5 Mapping"
    },
    {
      "identity" : "v2",
      "uri" : "http://hl7.org/v2",
      "name" : "HL7 v2"
    }
  ],
  "kind" : "resource",
  "constrainedType" : "Medication",
  "abstract" : false,
  "base" : "http://hl7.org/fhir/StructureDefinition/Medication",
  "snapshot" : {
    "element" : [
      {
        "id" : "Medication:argoprofile",
        "path" : "Medication",
        "name" : "argoprofile",
        "short" : "Argonaut Medication Profile",
        "definition" : "This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Medication"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "ManufacturedProduct[classCode=ADMM]"
          },
          {
            "identity" : "w5",
            "map" : "clinical.medication"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.id",
        "path" : "Medication.id",
        "name" : "Medication:argoprofile.id",
        "short" : "Logical id of this artifact",
        "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
        "comments" : "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.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.id",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "id"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : true
      },
      {
        "id" : "Medication:argoprofile.meta",
        "path" : "Medication.meta",
        "name" : "Medication:argoprofile.meta",
        "short" : "Metadata about the resource",
        "definition" : "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.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.meta",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Meta"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : true
      },
      {
        "id" : "Medication:argoprofile.implicitRules",
        "path" : "Medication.implicitRules",
        "name" : "Medication:argoprofile.implicitRules",
        "short" : "A set of rules under which this content was created",
        "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
        "comments" : "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.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.implicitRules",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "uri"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : true,
        "isSummary" : true
      },
      {
        "id" : "Medication:argoprofile.language",
        "path" : "Medication.language",
        "name" : "Medication:argoprofile.language",
        "short" : "Language of the resource content",
        "definition" : "The base language in which the resource is written.",
        "comments" : "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).",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.language",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "code"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "binding" : {
          "strength" : "required",
          "description" : "A human language.",
          "valueSetUri" : "http://tools.ietf.org/html/bcp47"
        }
      },
      {
        "id" : "Medication:argoprofile.text",
        "path" : "Medication.text",
        "name" : "Medication:argoprofile.text",
        "short" : "Text summary of the resource, for human interpretation",
        "definition" : "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.",
        "comments" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
        "alias" : [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.text",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Narrative"
          }
        ],
        "maxLength" : 0,
        "condition" : [
          "dom-1"
        ],
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "Act.text?"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.contained",
        "path" : "Medication.contained",
        "name" : "Medication:argoprofile.contained",
        "short" : "Contained, inline Resources",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.contained",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Resource"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.extension",
        "path" : "Medication.extension",
        "name" : "Medication:argoprofile.extension",
        "short" : "Additional Content defined by implementations",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.modifierExtension",
        "path" : "Medication.modifierExtension",
        "name" : "Medication:argoprofile.modifierExtension",
        "short" : "Extensions that cannot be ignored",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : true,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.code",
        "path" : "Medication.code",
        "name" : "Medication:argoprofile.code",
        "short" : "Codes that identify this medication",
        "definition" : "Used for identification and definition of a medication.",
        "comments" : "Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) should be marked as "primary". Other codes can only be literal translations to alternative code systems, or codes at a lower level of granularity (e.g. a generic code for a vendor-specific primary one).",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "Medication.code",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : true,
        "isModifier" : false,
        "isSummary" : false,
        "binding" : {
          "strength" : "extensible",
          "description" : "Prescribable medications",
          "valueSetReference" : {
            "reference" : "http://fhir.org/guides/argonaut/ValueSet/medication-codes"
          }
        },
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "RXO-1.1-Requested Give Code.code / RXE-2.1-Give Code.code / RXD-2.1-Dispense/Give Code.code / RXG-4.1-Give Code.code /RXA-5.1-Administered Code.code / RXC-2.1 Component Code"
          },
          {
            "identity" : "rim",
            "map" : ".code"
          },
          {
            "identity" : "w5",
            "map" : "class"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.isBrand",
        "path" : "Medication.isBrand",
        "name" : "Medication:argoprofile.isBrand",
        "short" : "True if a brand",
        "definition" : "Set to true if the item is attributable to a specific manufacturer.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.isBrand",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "boolean"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "true if .player.scopingRole[typeCode=MANU] exists"
          },
          {
            "identity" : "w5",
            "map" : "class"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.manufacturer",
        "path" : "Medication.manufacturer",
        "name" : "Medication:argoprofile.manufacturer",
        "short" : "Manufacturer of the item",
        "definition" : "Describes the details of the manufacturer.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.manufacturer",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "profile" : [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "RXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name"
          },
          {
            "identity" : "rim",
            "map" : ".player.scopingRole[typeCode=MANU].scoper"
          },
          {
            "identity" : "w5",
            "map" : "who.actor"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product",
        "path" : "Medication.product",
        "name" : "Medication:argoprofile.product",
        "short" : "Administrable medication details",
        "definition" : "Information that only applies to products (not packages).",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.product",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "BackboneElement"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : ".player [classCode != CONT]"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.id",
        "path" : "Medication.product.id",
        "representation" : [
          "xmlAttr"
        ],
        "name" : "Medication:argoprofile.product.id",
        "short" : "xml:id (or equivalent in JSON)",
        "definition" : "unique id for the element within a resource (for internal references).",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.product.id",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "id"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.extension",
        "path" : "Medication.product.extension",
        "name" : "Medication:argoprofile.product.extension",
        "short" : "Additional Content defined by implementations",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.product.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.modifierExtension",
        "path" : "Medication.product.modifierExtension",
        "name" : "Medication:argoprofile.product.modifierExtension",
        "short" : "Extensions that cannot be ignored",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.product.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : true,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.form",
        "path" : "Medication.product.form",
        "name" : "Medication:argoprofile.product.form",
        "short" : "powder | tablets | carton +",
        "definition" : "Describes the form of the item.  Powder; tablets; carton.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.product.form",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "binding" : {
          "strength" : "example",
          "description" : "The form of a medication",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/medication-form-codes"
          }
        },
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "RXO-5-Requested Dosage Form / RXE-6-Give Dosage Form / RXD-6-Actual Dosage Form / RXG-8-Give Dosage Form / RXA-8-Administered Dosage Form"
          },
          {
            "identity" : "rim",
            "map" : ".formCode"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.ingredient",
        "path" : "Medication.product.ingredient",
        "name" : "Medication:argoprofile.product.ingredient",
        "short" : "Active or inactive ingredient",
        "definition" : "Identifies a particular constituent of interest in the product.",
        "comments" : "The ingredients need not be a complete list; usually only active ingredients are listed.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.product.ingredient",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "BackboneElement"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : ".scopesRole[typeCode=INGR]"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.ingredient.id",
        "path" : "Medication.product.ingredient.id",
        "representation" : [
          "xmlAttr"
        ],
        "name" : "Medication:argoprofile.product.ingredient.id",
        "short" : "xml:id (or equivalent in JSON)",
        "definition" : "unique id for the element within a resource (for internal references).",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.product.ingredient.id",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "id"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.ingredient.extension",
        "path" : "Medication.product.ingredient.extension",
        "name" : "Medication:argoprofile.product.ingredient.extension",
        "short" : "Additional Content defined by implementations",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.product.ingredient.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.ingredient.modifierExtension",
        "path" : "Medication.product.ingredient.modifierExtension",
        "name" : "Medication:argoprofile.product.ingredient.modifierExtension",
        "short" : "Extensions that cannot be ignored",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.product.ingredient.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : true,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.ingredient.item",
        "path" : "Medication.product.ingredient.item",
        "name" : "Medication:argoprofile.product.ingredient.item",
        "short" : "The product contained",
        "definition" : "The actual ingredient - either a substance (simple ingredient) or another medication.",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "Medication.product.ingredient.item",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "profile" : [
              "http://hl7.org/fhir/StructureDefinition/Substance"
            ]
          },
          {
            "code" : "Reference",
            "profile" : [
              "http://hl7.org/fhir/StructureDefinition/Medication"
            ]
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "RXC-2-Component Code  if medication: RXO-1-Requested Give Code / RXE-2-Give Code / RXD-2-Dispense/Give Code / RXG-4-Give Code / RXA-5-Administered Code"
          },
          {
            "identity" : "rim",
            "map" : ".player"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.ingredient.amount",
        "path" : "Medication.product.ingredient.amount",
        "name" : "Medication:argoprofile.product.ingredient.amount",
        "short" : "Quantity of ingredient present",
        "definition" : "Specifies how many (or how much) of the items there are in this Medication.  For example, 250 mg per tablet.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.product.ingredient.amount",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Ratio"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "RXC-3-Component Amount & RXC-4-Component Units  if medication: RXO-2-Requested Give Amount - Minimum & RXO-4-Requested Give Units / RXO-3-Requested Give Amount - Maximum & RXO-4-Requested Give Units / RXO-11-Requested Dispense Amount & RXO-12-Requested Dispense Units / RXE-3-Give Amount - Minimum & RXE-5-Give Units / RXE-4-Give Amount - Maximum & RXE-5-Give Units / RXE-10-Dispense Amount & RXE-10-Dispense Units"
          },
          {
            "identity" : "rim",
            "map" : ".quantity"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.batch",
        "path" : "Medication.product.batch",
        "name" : "Medication:argoprofile.product.batch",
        "definition" : "Information about a group of medication produced or packaged from one production run.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.product.batch",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "BackboneElement"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false
      },
      {
        "id" : "Medication:argoprofile.product.batch.id",
        "path" : "Medication.product.batch.id",
        "representation" : [
          "xmlAttr"
        ],
        "name" : "Medication:argoprofile.product.batch.id",
        "short" : "xml:id (or equivalent in JSON)",
        "definition" : "unique id for the element within a resource (for internal references).",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.product.batch.id",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "id"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.batch.extension",
        "path" : "Medication.product.batch.extension",
        "name" : "Medication:argoprofile.product.batch.extension",
        "short" : "Additional Content defined by implementations",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.product.batch.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.batch.modifierExtension",
        "path" : "Medication.product.batch.modifierExtension",
        "name" : "Medication:argoprofile.product.batch.modifierExtension",
        "short" : "Extensions that cannot be ignored",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.product.batch.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : true,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.batch.lotNumber",
        "path" : "Medication.product.batch.lotNumber",
        "name" : "Medication:argoprofile.product.batch.lotNumber",
        "definition" : "The assigned lot number of a batch of the specified product.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.product.batch.lotNumber",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "string"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "RXA-15 Substance Lot Number / RXG-19 Substance Lot Number"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.product.batch.expirationDate",
        "path" : "Medication.product.batch.expirationDate",
        "name" : "Medication:argoprofile.product.batch.expirationDate",
        "definition" : "When this specific batch of product will expire.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.product.batch.expirationDate",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "dateTime"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "RXA-16 Substance Expiration Date / RXG-20 Substance Expiration Date"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.package",
        "path" : "Medication.package",
        "name" : "Medication:argoprofile.package",
        "short" : "Details about packaged medications",
        "definition" : "Information that only applies to packages (not products).",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.package",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "BackboneElement"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : ".player[classCode=CONT]"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.package.id",
        "path" : "Medication.package.id",
        "representation" : [
          "xmlAttr"
        ],
        "name" : "Medication:argoprofile.package.id",
        "short" : "xml:id (or equivalent in JSON)",
        "definition" : "unique id for the element within a resource (for internal references).",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.package.id",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "id"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.package.extension",
        "path" : "Medication.package.extension",
        "name" : "Medication:argoprofile.package.extension",
        "short" : "Additional Content defined by implementations",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.package.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.package.modifierExtension",
        "path" : "Medication.package.modifierExtension",
        "name" : "Medication:argoprofile.package.modifierExtension",
        "short" : "Extensions that cannot be ignored",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.package.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : true,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.package.container",
        "path" : "Medication.package.container",
        "name" : "Medication:argoprofile.package.container",
        "short" : "E.g. box, vial, blister-pack",
        "definition" : "The kind of container that this package comes as.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.package.container",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "binding" : {
          "strength" : "example",
          "description" : "Kind of container a medication package is packaged in",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/medication-package-form-codes"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : ".code"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.package.content",
        "path" : "Medication.package.content",
        "name" : "Medication:argoprofile.package.content",
        "short" : "What is  in the package",
        "definition" : "A set of components that go to make up the described item.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.package.content",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "BackboneElement"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : ".scopesRole[typeCode=CONT]"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.package.content.id",
        "path" : "Medication.package.content.id",
        "representation" : [
          "xmlAttr"
        ],
        "name" : "Medication:argoprofile.package.content.id",
        "short" : "xml:id (or equivalent in JSON)",
        "definition" : "unique id for the element within a resource (for internal references).",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.package.content.id",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "id"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.package.content.extension",
        "path" : "Medication.package.content.extension",
        "name" : "Medication:argoprofile.package.content.extension",
        "short" : "Additional Content defined by implementations",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.package.content.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.package.content.modifierExtension",
        "path" : "Medication.package.content.modifierExtension",
        "name" : "Medication:argoprofile.package.content.modifierExtension",
        "short" : "Extensions that cannot be ignored",
        "definition" : "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.",
        "comments" : "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.",
        "alias" : [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Medication.package.content.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : true,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.package.content.item",
        "path" : "Medication.package.content.item",
        "name" : "Medication:argoprofile.package.content.item",
        "short" : "A product in the package",
        "definition" : "Identifies one of the items in the package.",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "Medication.package.content.item",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "profile" : [
              "http://hl7.org/fhir/StructureDefinition/Medication"
            ]
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : ".player"
          }
        ]
      },
      {
        "id" : "Medication:argoprofile.package.content.amount",
        "path" : "Medication.package.content.amount",
        "name" : "Medication:argoprofile.package.content.amount",
        "short" : "Quantity present in the package",
        "definition" : "The amount of the product that is in the package.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Medication.package.content.amount",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Quantity",
            "profile" : [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
            ]
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : ".quantity"
          }
        ]
      }
    ]
  },
  "differential" : {
    "element" : [
      {
        "id" : "Medication:argoprofile",
        "path" : "Medication",
        "name" : "argoprofile",
        "short" : "Argonaut Medication Profile",
        "min" : 0,
        "type" : [
          {
            "code" : "Medication"
          }
        ],
        "maxLength" : 0,
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false
      },
      {
        "id" : "Medication:argoprofile.code",
        "path" : "Medication.code",
        "name" : "Medication:argoprofile.code",
        "definition" : "Used for identification and definition of a medication.",
        "min" : 1,
        "max" : "1",
        "maxLength" : 0,
        "mustSupport" : true,
        "isModifier" : false,
        "isSummary" : false,
        "binding" : {
          "strength" : "extensible",
          "description" : "Prescribable medications",
          "valueSetReference" : {
            "reference" : "http://fhir.org/guides/argonaut/ValueSet/medication-codes"
          }
        }
      }
    ]
  }
}