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

Consider tightening CQL Model Info profile requirements w/ invariants

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive
    • Icon: Medium Medium
    • Using CQL With FHIR (FHIR)
    • 1.0.0-ballot
    • Clinical Decision Support
    • CQL Model Info
    • 8.8.1
    • Hide

      Agreed, provide invariants to:

      1. Require that each content slice has either data or url
      2. Require that at least one slice of XML or JSON exists

      Show
      Agreed, provide invariants to: 1. Require that each content slice has either data or url 2. Require that at least one slice of XML or JSON exists
    • Chris Moesel / Juliet Rubini : 23-0-0
    • Enhancement
    • Non-substantive

    Description

      I expect that a CQL Model Info Library instance must provide an XML or JSON serialization (or both). Since the content xml and json slices are both optional, however, a library with neither would still conform to the profile. Consider adding an invariant that requires one or the other (or both) to exist. To make it easier for implementers, I suggest defining the invariant in terms of the contentType rather than slice membership. E.g., something like content.where(contentType = 'application/xml' or contentType = 'application/json').exists() (note: I haven't tested that fhirpath, but hopefully it's close enough to illustrate the idea).

      There is also an expectation that within each content, the data is either serialized or pointed to via a url, but this is not formally enforced. Consider adding invariants to each slice to require that data or url exists.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cmoesel Chris Moesel
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: