{
  "resourceType": "StructureDefinition",
  "id": "InventoryReport",
  "meta": {
    "lastUpdated": "2021-01-01T21:58:31.578+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Clinical.Request &amp; Response"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 0
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "business"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "oo"
    },
    {
      "url": "http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status",
      "valueCode": "Imaging Study state is managed in PACS."
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/InventoryReport",
  "version": "4.6.0",
  "name": "InventoryReport",
  "status": "draft",
  "date": "2021-01-01T21:58:31+00:00",
  "publisher": "Health Level Seven International (Orders and Observations)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
        }
      ]
    }
  ],
  "description": "A report of inventory or stock items.",
  "fhirVersion": "4.6.0",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "dicom",
      "uri": "http://nema.org/dicom",
      "name": "DICOM Tag Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "InventoryReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "InventoryReport",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
            "valueCode": "0,0"
          }
        ],
        "path": "InventoryReport",
        "short": "A report of inventory or stock items",
        "definition": "A report of inventory or stock items.",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event"
          },
          {
            "identity": "rim",
            "map": "Act[classCode=COMPOSITION, moodCode=EVN]"
          },
          {
            "identity": "dicom",
            "map": "Reference IHE radiology TF vol 2 table 4.14-1"
          },
          {
            "identity": "w5",
            "map": "administrative.entity"
          }
        ]
      },
      {
        "id": "InventoryReport.identifier",
        "path": "InventoryReport.identifier",
        "short": "Identifiers for the report",
        "definition": "Identifiers for the InventoryReport.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.identifier"
          },
          {
            "identity": "w5",
            "map": "FiveWs.identifier"
          },
          {
            "identity": "rim",
            "map": ".id and .inboundRelationship[typeCode=COMP].source[classCode=ACSN, moodCode=EVN].id"
          },
          {
            "identity": "dicom",
            "map": "StudyInstanceUID (0020,000D) | Accession Number and Issuer (0080,0050)+(0080,0051) | Study ID (0020,0010)"
          }
        ]
      },
      {
        "id": "InventoryReport.status",
        "path": "InventoryReport.status",
        "short": "draft | requested | active | entered-in-error",
        "definition": "The status of the inventory check or notification - whether this is draft (e.g. the report is still pending some updates) or active.",
        "min": 1,
        "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": "InventoryReportStatus"
            }
          ],
          "strength": "required",
          "description": "The status of the InventoryReport.",
          "valueSet": "http://hl7.org/fhir/ValueSet/inventoryreport-status"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.status"
          },
          {
            "identity": "w5",
            "map": "FiveWs.status"
          },
          {
            "identity": "v2",
            "map": "Varies by domain"
          },
          {
            "identity": "rim",
            "map": ".status"
          }
        ]
      },
      {
        "id": "InventoryReport.countType",
        "path": "InventoryReport.countType",
        "short": "snapshot | difference",
        "definition": "Whether the report is about the current inventory count (snapshot) or a differential change in inventory (change).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Not known why this is labelled a modifier",
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "InventoryCountType"
            }
          ],
          "strength": "required",
          "description": "The type of count.",
          "valueSet": "http://hl7.org/fhir/ValueSet/inventoryreport-counttype"
        }
      },
      {
        "id": "InventoryReport.operationType",
        "path": "InventoryReport.operationType",
        "short": "addition | subtraction",
        "definition": "What type of operation is being performed - addition or subtraction.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true
      },
      {
        "id": "InventoryReport.operationTypeReason",
        "path": "InventoryReport.operationTypeReason",
        "short": "The reason for this count - regular count, ad-hoc count, new arrivals, etc.",
        "definition": "The reason for this count - regular count, ad-hoc count, new arrivals, etc.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true
      },
      {
        "id": "InventoryReport.reportedDateTime",
        "path": "InventoryReport.reportedDateTime",
        "short": "When the report has been submitted",
        "definition": "When the report has been submitted.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true
      },
      {
        "id": "InventoryReport.reporter",
        "path": "InventoryReport.reporter",
        "short": "Who submits the report",
        "definition": "Who submits the report.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
              "http://hl7.org/fhir/StructureDefinition/Device"
            ]
          }
        ]
      },
      {
        "id": "InventoryReport.reportingPeriod",
        "path": "InventoryReport.reportingPeriod",
        "short": "The period the report refers to",
        "definition": "The period the report refers to.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "InventoryReport.inventoryListing",
        "path": "InventoryReport.inventoryListing",
        "short": "An inventory listing section (grouped by any of the attributes)",
        "definition": "An inventory listing section (grouped by any of the attributes).",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "isSummary": true
      },
      {
        "id": "InventoryReport.inventoryListing.location",
        "path": "InventoryReport.inventoryListing.location",
        "short": "Location of the inventory items",
        "definition": "Location of the inventory items.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Location"
            ]
          }
        ]
      },
      {
        "id": "InventoryReport.inventoryListing.itemStatus",
        "path": "InventoryReport.inventoryListing.itemStatus",
        "short": "The status of the items",
        "definition": "The status of the items.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true
      },
      {
        "id": "InventoryReport.inventoryListing.countingDateTime",
        "path": "InventoryReport.inventoryListing.countingDateTime",
        "short": "The date and time when the items were counted",
        "definition": "The date and time when the items were counted.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "InventoryReport.inventoryListing.items",
        "path": "InventoryReport.inventoryListing.items",
        "short": "The item or items in this listing",
        "definition": "The item or items in this listing.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "isSummary": true
      },
      {
        "id": "InventoryReport.inventoryListing.items.category",
        "path": "InventoryReport.inventoryListing.items.category",
        "short": "The category of the item or items",
        "definition": "The category of the item or items.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true
      },
      {
        "id": "InventoryReport.inventoryListing.items.quantity",
        "path": "InventoryReport.inventoryListing.items.quantity",
        "short": "The quantity of the item or items",
        "definition": "The quantity of the item or items.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "isSummary": true
      },
      {
        "id": "InventoryReport.inventoryListing.items.item",
        "path": "InventoryReport.inventoryListing.items.item",
        "short": "The code or reference to the item type",
        "definition": "The code or reference to the item type.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableReference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Device",
              "http://hl7.org/fhir/StructureDefinition/Medication"
            ]
          }
        ],
        "isSummary": true
      },
      {
        "id": "InventoryReport.inventoryListing.items.lot",
        "path": "InventoryReport.inventoryListing.items.lot",
        "short": "The lot number of the item or items",
        "definition": "The lot number of the item or items.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "InventoryReport.inventoryListing.items.serial",
        "path": "InventoryReport.inventoryListing.items.serial",
        "short": "The serial number of the item",
        "definition": "The serial number of the item.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "InventoryReport.inventoryListing.items.expiry",
        "path": "InventoryReport.inventoryListing.items.expiry",
        "short": "The expiry date of the item or items",
        "definition": "The expiry date of the item or items.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "InventoryReport.inventoryListing.items.manufacturingDate",
        "path": "InventoryReport.inventoryListing.items.manufacturingDate",
        "short": "The manufacturingDate of the item or items",
        "definition": "The manufacturingDate of the item or items.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "InventoryReport.note",
        "path": "InventoryReport.note",
        "short": "A note associated with the InventoryReport",
        "definition": "A note associated with the InventoryReport.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Annotation"
          }
        ]
      }
    ]
  }
}