{
  "resourceType" : "CodeSystem",
  "id" : "diagnosis-role",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n            <p>This code system http://terminology.hl7.org/CodeSystem/diagnosis-role defines the following codes:</p>\n            <table class=\"codes\">\n              <tr>\n                <td style=\"white-space:nowrap\">\n                  <b>Code</b>\n                </td>\n                <td>\n                  <b>Display</b>\n                </td>\n              </tr>\n              <tr>\n                <td style=\"white-space:nowrap\">AD\n                  <a name=\"diagnosis-role-AD\"> </a>\n                </td>\n                <td>Admission diagnosis</td>\n              </tr>\n              <tr>\n                <td style=\"white-space:nowrap\">DD\n                  <a name=\"diagnosis-role-DD\"> </a>\n                </td>\n                <td>Discharge diagnosis</td>\n              </tr>\n              <tr>\n                <td style=\"white-space:nowrap\">CC\n                  <a name=\"diagnosis-role-CC\"> </a>\n                </td>\n                <td>Chief complaint</td>\n              </tr>\n              <tr>\n                <td style=\"white-space:nowrap\">CM\n                  <a name=\"diagnosis-role-CM\"> </a>\n                </td>\n                <td>Comorbidity diagnosis</td>\n              </tr>\n              <tr>\n                <td style=\"white-space:nowrap\">pre-op\n                  <a name=\"diagnosis-role-pre-op\"> </a>\n                </td>\n                <td>pre-op diagnosis</td>\n              </tr>\n              <tr>\n                <td style=\"white-space:nowrap\">post-op\n                  <a name=\"diagnosis-role-post-op\"> </a>\n                </td>\n                <td>post-op diagnosis</td>\n              </tr>\n              <tr>\n                <td style=\"white-space:nowrap\">billing\n                  <a name=\"diagnosis-role-billing\"> </a>\n                </td>\n                <td>Billing</td>\n              </tr>\n            </table>\n          </div>"
  },
  "extension" : [{
    "extension" : [{
      "url" : "packageId",
      "valueId" : "hl7.fhir.uv.xver-r4b.r3"
    },
    {
      "url" : "version",
      "valueString" : "0.1.0"
    },
    {
      "url" : "uri",
      "valueUri" : "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4b.r3"
    }],
    "url" : "http://hl7.org/fhir/StructureDefinition/package-source"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "pa"
  }],
  "url" : "http://terminology.hl7.org/CodeSystem/diagnosis-role",
  "version" : "4.3.0",
  "name" : "DiagnosisRole",
  "status" : "draft",
  "experimental" : false,
  "date" : "2026-03-20T13:55:37+11:00",
  "publisher" : "Patient Administration",
  "contact" : [{
    "name" : "Patient Administration",
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/pafm"
    }]
  }],
  "description" : "This value set defines a set of codes that can be used to express the role of a diagnosis on the Encounter or EpisodeOfCare record.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "001",
      "display" : "World"
    }]
  }],
  "caseSensitive" : true,
  "valueSet" : "http://hl7.org/fhir/ValueSet/diagnosis-role|3.0.2",
  "content" : "complete",
  "concept" : [{
    "code" : "AD",
    "display" : "Admission diagnosis"
  },
  {
    "code" : "DD",
    "display" : "Discharge diagnosis"
  },
  {
    "code" : "CC",
    "display" : "Chief complaint"
  },
  {
    "code" : "CM",
    "display" : "Comorbidity diagnosis"
  },
  {
    "code" : "pre-op",
    "display" : "pre-op diagnosis"
  },
  {
    "code" : "post-op",
    "display" : "post-op diagnosis"
  },
  {
    "code" : "billing",
    "display" : "Billing"
  }]
}