### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/SupplyDelivery.json
### ----------------------------------------------------
### -- Chunk 5 of 5
 is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SupplyDelivery.suppliedItem.modifierExtension",
      "path" : "SupplyDelivery.suppliedItem.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "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.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SupplyDelivery.suppliedItem.quantity",
      "path" : "SupplyDelivery.suppliedItem.quantity",
      "short" : "Amount dispensed",
      "definition" : "The amount of supply that has been dispensed. Includes unit of measure.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SupplyDelivery.suppliedItem.quantity",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Quantity",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".quantity"
      }]
    },
    {
      "id" : "SupplyDelivery.suppliedItem.item[x]",
      "path" : "SupplyDelivery.suppliedItem.item[x]",
      "short" : "Medication, Substance, or Device supplied",
      "definition" : "Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a code that identifies the item from a known list.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SupplyDelivery.suppliedItem.item[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      },
      {
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Medication",
        "http://hl7.org/fhir/StructureDefinition/Substance",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "SupplyDeliveryItem"
        }],
        "strength" : "example",
        "description" : "The item that was delivered.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/supply-item"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=PRD].role"
      }]
    },
    {
      "id" : "SupplyDelivery.occurrence[x]",
      "path" : "SupplyDelivery.occurrence[x]",
      "short" : "When event occurred",
      "definition" : "The date or time(s) the activity occurred.",
      "comment" : "[The list of types may be constrained as appropriate for the type of event].",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SupplyDelivery.occurrence[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "dateTime"
      },
      {
        "code" : "Period"
      },
      {
        "code" : "Timing"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.done[x]"
      },
      {
        "identity" : "v2",
        "map" : "Varies by domain"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "SupplyDelivery.supplier",
      "path" : "SupplyDelivery.supplier",
      "short" : "Dispenser",
      "definition" : "The individual responsible for dispensing the medication, supplier or device.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SupplyDelivery.supplier",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=PFM].role"
      }]
    },
    {
      "id" : "SupplyDelivery.destination",
      "path" : "SupplyDelivery.destination",
      "short" : "Where the Supply was sent",
      "definition" : "Identification of the facility/location where the Supply was shipped to, as part of the dispense event.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SupplyDelivery.destination",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=DST].role"
      }]
    },
    {
      "id" : "SupplyDelivery.receiver",
      "path" : "SupplyDelivery.receiver",
      "short" : "Who collected the Supply",
      "definition" : "Identifies the person who picked up the Supply.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SupplyDelivery.receiver",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=RCV].role"
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "SupplyDelivery",
      "path" : "SupplyDelivery",
      "short" : "Delivery of bulk Supplies",
      "definition" : "Record of delivery of what is supplied.",
      "min" : 0,
      "max" : "*",
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event"
      },
      {
        "identity" : "rim",
        "map" : "Supply[moodCode=RQO]"
      }]
    },
    {
      "id" : "SupplyDelivery.identifier",
      "path" : "SupplyDelivery.identifier",
      "short" : "External identifier",
      "definition" : "Identifier for the supply delivery event that is used to identify it across multiple disparate systems.",
      "comment" : "This identifier is typically assigned by the dispenser, and may be used to reference the delivery when exchanging information about it with other systems.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.identifier"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      }]
    },
    {
      "id" : "SupplyDelivery.basedOn",
      "path" : "SupplyDelivery.basedOn",
      "short" : "Fulfills plan, proposal or order",
      "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.",
      "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SupplyRequest"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.basedOn"
      },
      {
        "identity" : "v2",
        "map" : "ORC in proximity to EVN segment"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=FLFS].target"
      }]
    },
    {
      "id" : "SupplyDelivery.partOf",
      "path" : "SupplyDelivery.partOf",
      "short" : "Part of referenced event",
      "definition" : "A larger event of which this particular event is a component or step.",
      "comment" : "Not to be used to link an event to an Encounter - use Event.context for that.\r\r[The allowed reference resources may be adjusted as appropriate for the event resource].",
      "requirements" : "E.g. Drug administration as part of a procedure, procedure as part of observation, etc.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SupplyDelivery",
        "http://hl7.org/fhir/StructureDefinition/Contract"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.partOf"
      },
      {
        "identity" : "v2",
        "map" : "Varies by domain"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
      }]
    },
    {
      "id" : "SupplyDelivery.status",
      "path" : "SupplyDelivery.status",
      "short" : "in-progress | completed | abandoned | entered-in-error",
      "definition" : "A code specifying the state of the dispense event.",
      "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : true,
      "isModifierReason" : "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "SupplyDeliveryStatus"
        }],
        "strength" : "required",
        "description" : "Status of the supply delivery.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/supplydelivery-status|4.0.0"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.status"
      },
      {
        "identity" : "rim",
        "map" : ".statusCode, also existence of fulfillment events"
      }]
    },
    {
      "id" : "SupplyDelivery.patient",
      "path" : "SupplyDelivery.patient",
      "short" : "Patient for whom the item is supplied",
      "definition" : "A link to a resource representing the person whom the delivered item is for.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.subject"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=SBJ].role"
      }]
    },
    {
      "id" : "SupplyDelivery.type",
      "path" : "SupplyDelivery.type",
      "short" : "Category of dispense event",
      "definition" : "Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "SupplyDeliveryType"
        }],
        "strength" : "required",
        "description" : "The type of supply dispense.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/supplydelivery-type|4.0.0"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.code"
      },
      {
        "identity" : "rim",
        "map" : ".code"
      }]
    },
    {
      "id" : "SupplyDelivery.suppliedItem",
      "path" : "SupplyDelivery.suppliedItem",
      "short" : "The item that is delivered or supplied",
      "definition" : "The item that is being delivered or has been supplied.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=PRD].role"
      }]
    },
    {
      "id" : "SupplyDelivery.suppliedItem.quantity",
      "path" : "SupplyDelivery.suppliedItem.quantity",
      "short" : "Amount dispensed",
      "definition" : "The amount of supply that has been dispensed. Includes unit of measure.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Quantity",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".quantity"
      }]
    },
    {
      "id" : "SupplyDelivery.suppliedItem.item[x]",
      "path" : "SupplyDelivery.suppliedItem.item[x]",
      "short" : "Medication, Substance, or Device supplied",
      "definition" : "Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a code that identifies the item from a known list.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      },
      {
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Medication",
        "http://hl7.org/fhir/StructureDefinition/Substance",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "SupplyDeliveryItem"
        }],
        "strength" : "example",
        "description" : "The item that was delivered.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/supply-item"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=PRD].role"
      }]
    },
    {
      "id" : "SupplyDelivery.occurrence[x]",
      "path" : "SupplyDelivery.occurrence[x]",
      "short" : "When event occurred",
      "definition" : "The date or time(s) the activity occurred.",
      "comment" : "[The list of types may be constrained as appropriate for the type of event].",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      },
      {
        "code" : "Period"
      },
      {
        "code" : "Timing"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.done[x]"
      },
      {
        "identity" : "v2",
        "map" : "Varies by domain"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "SupplyDelivery.supplier",
      "path" : "SupplyDelivery.supplier",
      "short" : "Dispenser",
      "definition" : "The individual responsible for dispensing the medication, supplier or device.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=PFM].role"
      }]
    },
    {
      "id" : "SupplyDelivery.destination",
      "path" : "SupplyDelivery.destination",
      "short" : "Where the Supply was sent",
      "definition" : "Identification of the facility/location where the Supply was shipped to, as part of the dispense event.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=DST].role"
      }]
    },
    {
      "id" : "SupplyDelivery.receiver",
      "path" : "SupplyDelivery.receiver",
      "short" : "Who collected the Supply",
      "definition" : "Identifies the person who picked up the Supply.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole"]
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=RCV].role"
      }]
    }]
  }
}


