### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/Substance.json
### ----------------------------------------------------
### -- Chunk 5 of 5
 "mapping" : [{
        "identity" : "rim",
        "map" : ".player.desc"
      }]
    },
    {
      "id" : "Substance.instance",
      "path" : "Substance.instance",
      "short" : "If this describes a specific package/container of the substance",
      "definition" : "Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "meaningWhenMissing" : "If this element is not present, then the substance resource describes a kind of substance",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".player.determinerCode"
      }]
    },
    {
      "id" : "Substance.instance.identifier",
      "path" : "Substance.instance.identifier",
      "short" : "Identifier of the package/container",
      "definition" : "Identifier associated with the package/container (usually a label affixed directly).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Identifier"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".id"
      }]
    },
    {
      "id" : "Substance.instance.expiry",
      "path" : "Substance.instance.expiry",
      "short" : "When no longer valid to use",
      "definition" : "When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".expiryTime"
      }]
    },
    {
      "id" : "Substance.instance.quantity",
      "path" : "Substance.instance.quantity",
      "short" : "Amount of substance in the package",
      "definition" : "The amount of the substance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Quantity",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".player.quantity"
      }]
    },
    {
      "id" : "Substance.ingredient",
      "path" : "Substance.ingredient",
      "short" : "Composition information about the substance",
      "definition" : "A substance can be composed of other substances.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".player.scopesRole[classCode=INGR]"
      }]
    },
    {
      "id" : "Substance.ingredient.quantity",
      "path" : "Substance.ingredient.quantity",
      "short" : "Optional amount (concentration)",
      "definition" : "The amount of the ingredient in the substance - a concentration ratio.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Ratio"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".quantity"
      }]
    },
    {
      "id" : "Substance.ingredient.substance[x]",
      "path" : "Substance.ingredient.substance[x]",
      "short" : "A component of the substance",
      "definition" : "Another substance that is a component of this substance.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      },
      {
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Substance"]
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "SubstanceIngredient"
        }],
        "strength" : "example",
        "description" : "Substance Ingredient codes.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/substance-code"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".player"
      }]
    }]
  }
}


