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

Add a capability to specify validation criteria associated with definition content.

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive
    • Icon: Medium Medium
    • FHIR Core (FHIR)
    • R4
    • Clinical Quality Information
    • Measure
    • Hide

      Define a cqf-targetInvariant extension:

      Can be used on any definitional artifact to define an invariant that is expected to be evaluated in the context of an instantiated resource with access to the following context variables:

      %target: The instantiated resource
      %definition: The definition resource

      The extension would have the following elements:

      key 1..1 id A unique identifier for the invariant (unique in the context of the resource)
      requirements 0..1 string Why this invariant is necessary or appropriate
      severity 1..1 code (ConstraintSeverity) error | warning
      expression 1..1 Expression

       

      Show
      Define a cqf-targetInvariant extension: Can be used on any definitional artifact to define an invariant that is expected to be evaluated in the context of an instantiated resource with access to the following context variables: %target: The instantiated resource %definition: The definition resource The extension would have the following elements: key 1..1 id A unique identifier for the invariant (unique in the context of the resource) requirements 0..1 string Why this invariant is necessary or appropriate severity 1..1 code (ConstraintSeverity) error | warning expression 1..1 Expression  
    • Keith Boone/Bryn Rhodes: 21-0-1
    • Enhancement
    • Compatible, substantive
    • R5

    Description

      Add a way to specify invariants in a definition that are applicable to the resource it defines.

       

      Such as: population[1].count >= population[2].count to express a constraint (business rule in the definition) that the value of population[1].count in MeasureReport cannot exceed the value of population[2].count (the total number of beds must exceed or equal to the number of beds in use).  This may likely be some form of expression, e.g., FHIRPath or CQL that could be evaluated in the context of the defined resource type.

      This would allow developers of definitions to create definition resources without having to create profiles just to get some level of validation support.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            Kwboone Keith W. Boone
            Keith W. Boone
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: