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

Inconsistent on conditional required element

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive with Modification
    • Icon: Highest Highest
    • US Core (FHIR)
    • 4.1.0 [deprecated]
    • Cross-Group Projects
    • STU
    • US Core DiagnosticReport Profile for Laboratory Results Reporting
    • 10.107.1.3
    • Hide

      Background:

      DiagnosticReport.effective and DiagnosticReport.issued were made conditionally mandatory for this ballot based on FHIR-34330 . Which resulted in the invariant referenced by the commenter:

      for example:

      Constraints

      Id Grade Path Details Requirements
      us-core-10 error DiagnosticReport effective[x] SHALL be present if the status is 'partial', 'preliminary', 'final', 'amended', 'corrected' or 'appended'
      : (status='partial' or status='preliminary' or status='final' or status='amended' or status='corrected' or status='appended' ) implies effective.exists()

      The targets of these constraints currently have a minimum cardinality of 1, because the tracker was only partially applied:

      for example:

       

      Reasoning:

      We agree with the commenter. This is an editorial error. The minimum cardinality for the elements targeted by the invariant should be 0.

       

      Proposed Changes:

      Will change the minimum cardinality for the following elements from 1 to 0 :

      US Core DiagnosticReport Profile for Report and Note exchange

      US Core DiagnosticReport Profile for Laboratory Results Reporting

      Show
      Background: DiagnosticReport.effective and DiagnosticReport.issued were made conditionally mandatory for this ballot based on  FHIR-34330  . Which resulted in the invariant referenced by the commenter: for example: Constraints Id Grade Path Details Requirements us-core-10 error DiagnosticReport effective [x] SHALL be present if the status is 'partial', 'preliminary', 'final', 'amended', 'corrected' or 'appended' : (status='partial' or status='preliminary' or status='final' or status='amended' or status='corrected' or status='appended' ) implies effective.exists() The targets of these constraints currently have a minimum cardinality of 1, because the tracker was only partially applied: for example:   Reasoning: We agree with the commenter. This is an editorial error. The minimum cardinality for the elements targeted by the invariant should be 0.   Proposed Changes: Will change the minimum cardinality for the following elements from 1 to 0 : US Core DiagnosticReport Profile for Report and Note exchange DiagnosticReport.effective[x] US Core DiagnosticReport Profile for Laboratory Results Reporting DiagnosticReport.effective[x] DiagnosticReport.issued
    • Floyd Eisenberg/Eric Haas: 12-0-2
    • Correction
    • Compatible, substantive

    Description

      DiagnosticReport for Lab has constraint us-core-8 "effective[x] SHALL be present if the status is 'partial', 'preliminary', 'final', 'amended', 'corrected' or 'appended'". DiangosticReport.effective[x] has card. [1..1] in StructureDefinition

      Similarly, AllergyIntolerance (and Condition) has constraint ait-1 "The clinicalStatus element has the following constraints: SHALL be present if verification status is not entered-in-error".
      AllergyIntolerance.clinicalStatus has card. [0..1] in StructureDefinition.

      Why these two elements have similar constraints but different cardinality?

      Attachments

        Activity

          People

            Unassigned Unassigned
            yunwwang Yunwei Wang
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: