Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Example CodeSystem/discriminator-type (JSON)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: Informative

Raw JSON (canonical form + also see JSON Format Specification)

Definition for Code SystemDiscriminatorType

{
  "resourceType" : "CodeSystem",
  "id" : "discriminator-type",
  "meta" : {
    "lastUpdated" : "2023-03-26T15:21:02.749+11:00"
  },
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Properties</b></p><p><b>This code system  defines the following properties for its concepts</b></p><table class=\"grid\"><tr><td><b>Code</b></td><td><b>URI</b></td><td><b>Type</b></td><td><b>Description</b></td></tr><tr><td>status</td><td>http://hl7.org/fhir/concept-properties#status</td><td>code</td><td>A property that indicates the status of the concept. One of active, experimental, deprecated, retired</td></tr><tr><td>deprecationDate</td><td>http://hl7.org/fhir/concept-properties#deprecationDate</td><td>dateTime</td><td>The date at which a concept was deprecated. Concepts that are deprecated but not inactive can still be used, but their use is discouraged</td></tr></table><p><b>Concepts</b></p><p>This code system <code>http://hl7.org/fhir/discriminator-type</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><td><b>Deprecated</b></td><td><b>Status</b></td><td><b>Deprecation Date</b></td></tr><tr><td style=\"white-space:nowrap\">value<a name=\"discriminator-type-value\"> </a></td><td>Value</td><td>The slices have different values in the nominated element, as determined by the applicable fixed value, pattern, or required ValueSet binding.</td><td/><td/><td/></tr><tr><td style=\"white-space:nowrap\">exists<a name=\"discriminator-type-exists\"> </a></td><td>Exists</td><td>The slices are differentiated by the presence or absence of the nominated element. There SHALL be no more than two slices. The slices are differentiated by the fact that one must have a max of 0 and the other must have a min of 1 (or more).  The order in which the slices are declared doesn't matter.</td><td/><td/><td/></tr><tr style=\"background-color: #ffeeee\"><td style=\"white-space:nowrap\">pattern<a name=\"discriminator-type-pattern\"> </a></td><td>Pattern</td><td>The slices have different values in the nominated element, as determined by the applicable fixed value, pattern, or required ValueSet binding. This has the same meaning as 'value' and is deprecated.</td><td>Deprecated<div><p>Pattern' is deprecated - it works exactly the same as 'value'</p>\n</div></td><td>deprecated</td><td>2022-08-19</td></tr><tr><td style=\"white-space:nowrap\">type<a name=\"discriminator-type-type\"> </a></td><td>Type</td><td>The slices are differentiated by type of the nominated element.</td><td/><td/><td/></tr><tr><td style=\"white-space:nowrap\">profile<a name=\"discriminator-type-profile\"> </a></td><td>Profile</td><td>The slices are differentiated by conformance of the nominated element to a specified profile. Note that if the path specifies .resolve() then the profile is the target profile on the reference. In this case, validation by the possible profiles is required to differentiate the slices.</td><td/><td/><td/></tr><tr><td style=\"white-space:nowrap\">position<a name=\"discriminator-type-position\"> </a></td><td>Position</td><td>The slices are differentiated by their index. This is only possible if all but the last slice have min=max cardinality, and the (optional) last slice contains other undifferentiated elements.</td><td/><td/><td/></tr></table></div>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "fhir"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "normative"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
    "valueCode" : "4.0.0"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 5
  }],
  "url" : "http://hl7.org/fhir/discriminator-type",
  "identifier" : [{
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:oid:2.16.840.1.113883.4.642.1.92"
  }],
  "version" : "5.0.0",
  "name" : "DiscriminatorType",
  "title" : "DiscriminatorType",
  "status" : "active",
  "experimental" : false,
  "date" : "2023-03-26T15:21:02+11:00",
  "publisher" : "HL7 (FHIR Project)",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://hl7.org/fhir"
    },
    {
      "system" : "email",
      "value" : "fhir@lists.hl7.org"
    }]
  }],
  "description" : "How an element value is interpreted when discrimination is evaluated.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "001",
      "display" : "World"
    }]
  }],
  "caseSensitive" : true,
  "valueSet" : "http://hl7.org/fhir/ValueSet/discriminator-type",
  "content" : "complete",
  "property" : [{
    "code" : "status",
    "uri" : "http://hl7.org/fhir/concept-properties#status",
    "description" : "A property that indicates the status of the concept. One of active, experimental, deprecated, retired",
    "type" : "code"
  },
  {
    "code" : "deprecationDate",
    "uri" : "http://hl7.org/fhir/concept-properties#deprecationDate",
    "description" : "The date at which a concept was deprecated. Concepts that are deprecated but not inactive can still be used, but their use is discouraged",
    "type" : "dateTime"
  }],
  "concept" : [{
    "code" : "value",
    "display" : "Value",
    "definition" : "The slices have different values in the nominated element, as determined by the applicable fixed value, pattern, or required ValueSet binding."
  },
  {
    "code" : "exists",
    "display" : "Exists",
    "definition" : "The slices are differentiated by the presence or absence of the nominated element. There SHALL be no more than two slices. The slices are differentiated by the fact that one must have a max of 0 and the other must have a min of 1 (or more).  The order in which the slices are declared doesn't matter."
  },
  {
    "extension" : [{
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode" : "deprecated",
      "_valueCode" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status-reason",
          "valueMarkdown" : "Pattern' is deprecated - it works exactly the same as 'value'"
        }]
      }
    }],
    "code" : "pattern",
    "display" : "Pattern",
    "definition" : "The slices have different values in the nominated element, as determined by the applicable fixed value, pattern, or required ValueSet binding. This has the same meaning as 'value' and is deprecated.",
    "property" : [{
      "code" : "status",
      "valueCode" : "deprecated"
    },
    {
      "code" : "deprecationDate",
      "valueDateTime" : "2022-08-19"
    }]
  },
  {
    "code" : "type",
    "display" : "Type",
    "definition" : "The slices are differentiated by type of the nominated element."
  },
  {
    "code" : "profile",
    "display" : "Profile",
    "definition" : "The slices are differentiated by conformance of the nominated element to a specified profile. Note that if the path specifies .resolve() then the profile is the target profile on the reference. In this case, validation by the possible profiles is required to differentiate the slices."
  },
  {
    "code" : "position",
    "display" : "Position",
    "definition" : "The slices are differentiated by their index. This is only possible if all but the last slice have min=max cardinality, and the (optional) last slice contains other undifferentiated elements."
  }]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.