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 - Add to inventory - 5 Milk Chocolates - XML Representation

Raw xml | Download


<InventoryReport xmlns="http://hl7.org/fhir">
  <id value="Add5Milk"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: InventoryReport Add5Milk</b></p><a name="Add5Milk"> </a><a name="hcAdd5Milk"> </a><a name="Add5Milk-en-US"> </a><p><b>status</b>: Draft</p><p><b>countType</b>: Difference</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>: 5 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-milk}">Milk chocolate</span></td></tr></table></blockquote></blockquote></div>
  </text>
  <status value="draft"/>
  <countType value="difference"/>
  <reportedDateTime value="2025-05-01T12:00:00Z"/>
  <inventoryListing>
    <location>
      <display value="Bin 1"/>
    </location>
    <itemStatus>
      <coding>
        <code value="available"/>
      </coding>
    </itemStatus>
    <item>
      <quantity>
        <value value="5"/>
        <unit value="pieces"/>
      </quantity>
      <item>
        <concept>
          <coding>
            <system
                    value="http://costateixeira.github.io/spenser/CodeSystem/SpenserMeds"/>
            <code value="chocolate-milk"/>
            <display value="Milk chocolate"/>
          </coding>
        </concept>
      </item>
    </item>
  </inventoryListing>
</InventoryReport>