<?xml version="1.0" encoding="UTF-8"?>

<Flag xmlns="http://hl7.org/fhir">
  <id value="example-psychiatry-flag"/>
  <meta>
    <profile value="https://dhp.uz/fhir/integrations/StructureDefinition/narcology-psychiatry-flag"/>
  </meta>
  <language value="en"/>
  <text>
    <status value="generated"/><div xml:lang="en" lang="en"><hr/><p><b>English</b></p><hr/><p class="res-header-id"><b>Generated Narrative: Flag example-psychiatry-flag</b></p><a name="example-psychiatry-flag"> </a><a name="hcexample-psychiatry-flag"> </a><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-narcology-psychiatry-flag.html">Narcology and Psychiatry Flag</a></p></div><p><b>status</b>: Active</p><p><b>code</b>: <span title="Codes:{https://terminology.dhp.uz/fhir/integrations/CodeSystem/narcology-psychiatry-episode-of-care-type-group-cs psycr0001-00001}">Compulsory inpatient treatment</span></p><p><b>subject</b>: <a href="Patient-example-patient-john.html">John Smith(official) Unknown, DoB: 2026-03-13 ( National unique individual identifier)</a></p><p><b>period</b>: 2026-08-15 --&gt; (ongoing)</p><p><b>encounter</b>: <a href="Encounter-example-psychiatry-encounter.html">Encounter: status = completed; type = Treatment services; actualPeriod = 2026-08-15 --&gt; (ongoing)</a></p><p><b>author</b>: <a href="PractitionerRole-example-commission-psychiatrist-role.html">PractitionerRole Vrach psixiatr</a></p></div>
  </text>
  <status value="active"/>
  <code>
    <coding>
      <system value="https://terminology.dhp.uz/fhir/integrations/CodeSystem/narcology-psychiatry-episode-of-care-type-group-cs"/>
      <code value="psycr0001-00001"/>
      <display value="Compulsory inpatient treatment"/>
    </coding>
  </code>
  <subject>
    <reference value="Patient/example-patient-john"/>
  </subject>
  <period>
    <start value="2026-08-15"/>
  </period>
  <encounter>
    <reference value="Encounter/example-psychiatry-encounter"/>
  </encounter>
  <author>
    <reference value="PractitionerRole/example-commission-psychiatrist-role"/>
  </author>
</Flag>