Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-44961

The specification is internal in conflict on what a code system of type 'code' means

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Medium Medium
    • FHIR Core (FHIR)
    • R6
    • Terminology Infrastructure
    • CodeSystem

    Description

      The definition of the CodeSystem property 'type' is clear:

      The property value is a code that identifies a concept defined in the code system

      we double down on that in the definition of CodeSystem.property.type:

      Properties of type "code" contain a code defined by the code system (e.g. a reference to another defined concept).

      But then we use code differently. The following standard properties have type code:
      status, parent, child, partOf, synonym, and comment.

      Comment is clearly an error (see FHIR-44959). Of the others, parent, child and partOf are clearly 'codes that identify a concept defined in the code system', but status is clearly not - at least, we do not - and should not - define the status codes as part of the code system that uses them. Synonym... I'm not sure - see FHIR-44960

      Further, in THO we use 'code' for both purposes - an internal reference, and controlled set of values, and we 1200+ uses to disambiguate there

      My preference in R6 is to add a property that explains how to interpret 'code' - an internal reference, one of a set of defined codes, or simply conforming the 'code' data type with no extra validation (and then we can pre-adopt it as an extension in earlier versions)

      Attachments

        Activity

          People

            Unassigned Unassigned
            GrahameGrieve Grahame Grieve
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: