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

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="flag-status"/>
  <meta>
    <lastUpdated value="2026-04-01T17:59:15.240+00:00"/>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p class="res-header-id">
        <b>Generated Narrative: CodeSystem flag-status</b>
      </p>
      <a name="flag-status"> </a>
      <a name="hcflag-status"> </a>
      <p>This case-sensitive code system 
        <code>http://hl7.org/fhir/flag-status</code> defines the following codes:
      </p>
      <table class="codes">
        <tr>
          <td style="white-space:nowrap">
            <b>Code</b>
          </td>
          <td>
            <b>Display</b>
          </td>
          <td>
            <b>Definition</b>
          </td>
        </tr>
        <tr>
          <td style="white-space:nowrap">active
            <a name="flag-status-active"> </a>
          </td>
          <td>Active</td>
          <td>A current flag that should be displayed to a user. A system may use the category to determine which user roles should view the flag.</td>
        </tr>
        <tr>
          <td style="white-space:nowrap">inactive
            <a name="flag-status-inactive"> </a>
          </td>
          <td>Inactive</td>
          <td>The flag no longer needs to be displayed.</td>
        </tr>
        <tr>
          <td style="white-space:nowrap">entered-in-error
            <a name="flag-status-entered-in-error"> </a>
          </td>
          <td>Entered in Error</td>
          <td>The flag was added in error and should no longer be displayed.</td>
        </tr>
      </table>
    </div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pc"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="normative"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1"/>
  </extension>
  <url value="http://hl7.org/fhir/flag-status"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.4.642.4.121"/>
  </identifier>
  <identifier>
    <use value="old"/>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.4.642.1.111"/>
  </identifier>
  <identifier>
    <use value="old"/>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.4.642.2.49"/>
  </identifier>
  <version value="6.0.0-ballot4"/>
  <name value="FlagStatus"/>
  <title value="Flag Status"/>
  <status value="active"/>
  <experimental value="false"/>
  <date value="2021-01-05T10:01:24+11:00"/>
  <publisher value="HL7 (FHIR Project)"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://hl7.org/fhir"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="fhir@lists.hl7.org"/>
    </telecom>
  </contact>
  <description value="Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or was entered in error."/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
      <display value="World"/>
    </coding>
  </jurisdiction>
  <caseSensitive value="true"/>
  <valueSet value="http://hl7.org/fhir/ValueSet/flag-status"/>
  <content value="complete"/>
  <concept>
    <code value="active"/>
    <display value="Active"/>
    <definition value="A current flag that should be displayed to a user. A system may use the category to determine which user roles should view the flag."/>
  </concept>
  <concept>
    <code value="inactive"/>
    <display value="Inactive"/>
    <definition value="The flag no longer needs to be displayed."/>
  </concept>
  <concept>
    <code value="entered-in-error"/>
    <display value="Entered in Error"/>
    <definition value="The flag was added in error and should no longer be displayed."/>
  </concept>
</CodeSystem>