Spenser - a developer's companion
1.0.0 - STU1 International flag

Spenser - a developer's companion, published by Zeora. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/costateixeira/spenser/tree/master and changes regularly. See the Directory of published versions

: Example - Set inventory - 17 Dark Chocolates - JSON Representation

Raw json | Download

{
  "resourceType" : "InventoryReport",
  "id" : "SetDarkTo17",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: InventoryReport SetDarkTo17</b></p><a name=\"SetDarkTo17\"> </a><a name=\"hcSetDarkTo17\"> </a><a name=\"SetDarkTo17-en-US\"> </a><p><b>status</b>: Draft</p><p><b>countType</b>: Snapshot</p><p><b>reportedDateTime</b>: 2025-05-01 12:00:00+0000</p><blockquote><p><b>inventoryListing</b></p><p><b>location</b>: Bin 1</p><p><b>itemStatus</b>: <span title=\"Codes:\">available</span></p><blockquote><p><b>item</b></p><p><b>quantity</b>: 17 pieces</p><h3>Items</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Concept</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://costateixeira.github.io/spenser/CodeSystem/SpenserMeds chocolate-dark}\">Dark chocolate</span></td></tr></table></blockquote></blockquote></div>"
  },
  "status" : "draft",
  "countType" : "snapshot",
  "reportedDateTime" : "2025-05-01T12:00:00Z",
  "inventoryListing" : [
    {
      "location" : {
        "display" : "Bin 1"
      },
      "itemStatus" : {
        "coding" : [
          {
            "code" : "available"
          }
        ]
      },
      "item" : [
        {
          "quantity" : {
            "value" : 17,
            "unit" : "pieces"
          },
          "item" : {
            "concept" : {
              "coding" : [
                {
                  "system" : "http://costateixeira.github.io/spenser/CodeSystem/SpenserMeds",
                  "code" : "chocolate-dark",
                  "display" : "Dark chocolate"
                }
              ]
            }
          }
        }
      ]
    }
  ]
}