{
  "resourceType" : "ConceptMap",
  "id" : "table-hl70004-to-encounter-status",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ConceptMap table-hl70004-to-encounter-status</b></p><a name=\"table-hl70004-to-encounter-status\"> </a><a name=\"hctable-hl70004-to-encounter-status\"> </a><p>Mapping from <a href=\"http://terminology.hl7.org/6.5.0/ValueSet-v2-0004.html\">hl7VS-patientClass</a> to <a href=\"http://hl7.org/fhir/R4/valueset-encounter-status.html\">EncounterStatus</a></p><br/><p><b>Group 1 </b>Mapping from <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v2-0004.html\">patientClass</a> to <a href=\"http://hl7.org/fhir/R4/codesystem-encounter-status.html\">EncounterStatus</a></p><table class=\"grid\"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td></tr><tr><td>E (Emergency)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>in-progress</td></tr><tr><td>I (Inpatient)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>in-progress</td></tr><tr><td>O (Outpatient)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>in-progress</td></tr><tr><td>P (Preadmit)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>planned</td></tr><tr><td>R (Recurring patient)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>in-progress</td></tr><tr><td>B (Obstetrics)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>in-progress</td></tr><tr><td>C (Commercial Account)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>in-progress</td></tr><tr><td>N (Not Applicable)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>in-progress</td></tr><tr><td>U (Unknown)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>unknown</td></tr></table></div>"
  },
  "extension" : [{
    "extension" : [{
      "url" : "type",
      "valueCode" : "derived-from"
    },
    {
      "url" : "label",
      "valueString" : "Table HL70004 to Encounter Status.fsh"
    },
    {
      "url" : "url",
      "valueUri" : "https://docs.google.com/spreadsheets/d/1-g6mrN1Q_Y_foJjlOXY32UAtMWwPi245mh3kRc8FBQ4/edit#gid=0"
    }],
    "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/RelatedArtifact"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "oo"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "informative",
    "_valueCode" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/uv/v2mappings/ImplementationGuide/hl7.fhir.uv.v2mappings"
      }]
    }
  }],
  "url" : "http://hl7.org/fhir/uv/v2mappings/ConceptMap/table-hl70004-to-encounter-status",
  "version" : "1.0.0",
  "name" : "TableHL70004ToEncounterStatus",
  "title" : "Table HL70004 to Encounter Status Map",
  "status" : "active",
  "experimental" : true,
  "date" : "2025-08-25",
  "publisher" : "HL7 International / Orders and Observations",
  "contact" : [{
    "name" : "HL7 Orders and Observations Workgroup",
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/orders"
    }]
  }],
  "description" : "This ConceptMap represents a mapping from the HL7 V2 Table HL70004 to the FHIR Encounter Status Value Set.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "001"
    }]
  }],
  "copyright" : "Copyright (c) 2025, HL7 International, Inc., All Rights Reserved.",
  "sourceUri" : "http://terminology.hl7.org/ValueSet/v2-0004",
  "targetUri" : "http://hl7.org/fhir/ValueSet/encounter-status",
  "group" : [{
    "source" : "http://terminology.hl7.org/CodeSystem/v2-0004",
    "target" : "http://hl7.org/fhir/encounter-status",
    "element" : [{
      "code" : "E",
      "display" : "Emergency",
      "target" : [{
        "code" : "in-progress",
        "equivalence" : "equivalent"
      }]
    },
    {
      "code" : "I",
      "display" : "Inpatient",
      "target" : [{
        "code" : "in-progress",
        "equivalence" : "equivalent"
      }]
    },
    {
      "code" : "O",
      "display" : "Outpatient",
      "target" : [{
        "code" : "in-progress",
        "equivalence" : "equivalent"
      }]
    },
    {
      "code" : "P",
      "display" : "Preadmit",
      "target" : [{
        "code" : "planned",
        "equivalence" : "equivalent"
      }]
    },
    {
      "code" : "R",
      "display" : "Recurring patient",
      "target" : [{
        "code" : "in-progress",
        "equivalence" : "equivalent"
      }]
    },
    {
      "code" : "B",
      "display" : "Obstetrics",
      "target" : [{
        "code" : "in-progress",
        "equivalence" : "equivalent"
      }]
    },
    {
      "code" : "C",
      "display" : "Commercial Account",
      "target" : [{
        "code" : "in-progress",
        "equivalence" : "equivalent"
      }]
    },
    {
      "code" : "N",
      "display" : "Not Applicable",
      "target" : [{
        "code" : "in-progress",
        "equivalence" : "equivalent"
      }]
    },
    {
      "code" : "U",
      "display" : "Unknown",
      "target" : [{
        "code" : "unknown",
        "equivalence" : "equivalent"
      }]
    }]
  }]
}