<Encounter xmlns="http://hl7.org/fhir">
  <id value="Esempio_Encounter" />
  <meta>
    <profile value="https://example.org/fhir/StructureDefinition/Encounter" />
  </meta>
  <extension url="http://example.org/FHIR/schema/encounter-dataPrericovero">
    <valuePeriod>
      <start value="2024-05-05T15:33:30+01:00" />
    </valuePeriod>
  </extension>
  <identifier>
    <system value="http://example.org/identifier/nosologico" />
    <value value="2024000000" />
  </identifier>
  <status value="in-progress" />
  <class>
    <system value="http://terminology.hl7.org/ValueSet/v3-ActEncounterCode" />
    <code value="IMP" />
    <display value="inpatient encounter" />
  </class>
  <type>
    <coding>
      <system value="http://example.org/FHIR/schema/encounter-typeCode" />
      <code value="1" />
      <display value="Programmato non urgente" />
    </coding>
  </type>
  <subject>
    <reference value="Patient/IdPaziente" />
  </subject>
  <participant>
    <individual>
      <reference value="Practitioner/IdMedico" />
    </individual>
  </participant>
  <period>
    <start value="2022-02-01T16:33:30+01:00" />
  </period>
  <reasonCode>
    <coding>
      <system value="http://hl7.org/fhir/sid/icd-9-cm" />
      <code value="codiceDiagnosi" />
      <display value="descrizioneDiagnosi" />
    </coding>
  </reasonCode>
  <hospitalization>
    <extension url="http://example.org/FHIR/schema/encounter-regime">
      <valueCodeableConcept>
        <coding>
          <system value="http://example.org/FHIR/schema/encounter-regimeCode" />
          <code value="I" />
          <display value="ORDINARIO" />
        </coding>
      </valueCodeableConcept>
    </extension>
  </hospitalization>
  <location>
    <location>
      <reference value="Location/Idreparto" />
    </location>
    <physicalType>
      <coding>
        <system value="http://example.org/FHIR/schema/location-type" />
        <code value="wa" />
        <display value="REPARTO" />
      </coding>
    </physicalType>
  </location>
  <location>
    <location>
      <reference value="Location/IdStanza" />
    </location>
    <physicalType>
      <coding>
        <system value="http://example.org/FHIR/schema/location-type" />
        <code value="ro" />
        <display value="ROOM" />
      </coding>
    </physicalType>
  </location>
  <location>
    <location>
      <reference value="Location/AREAS.IdLetto" />
    </location>
    <physicalType>
      <coding>
        <system value="http://example.org/FHIR/schema/location-type" />
        <code value="bd" />
        <display value="BED" />
      </coding>
    </physicalType>
  </location>
  <serviceProvider>
    <reference value="Organization/IdPresidio" />
  </serviceProvider>
</Encounter>