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

Prefetch syntax in CRD not compatible with CDS Hooks

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive with Modification
    • Icon: Medium Medium
    • US Da Vinci CRD (FHIR)
    • current
    • Clinical Decision Support
    • Supported Hooks
    • 4.3.2.3
    • Hide

      Based on the WGM discussion, additional syntax and support for _include WILL be allowed in CDS Hooks.  However, the syntax may vary.  CRD will be updated to reflect the syntax landed on at CDS Hooks.  (Next discussion on the CDS Hooks call on Jan. 26)

      Show
      Based on the WGM discussion, additional syntax and support for _include WILL be allowed in CDS Hooks.  However, the syntax may vary.  CRD will be updated to reflect the syntax landed on at CDS Hooks.  (Next discussion on the CDS Hooks call on Jan. 26)
    • Lloyd McKenzie / Bob Dieterle: 19-0-3
    • Enhancement
    • Compatible, substantive

    Description

      During connectathon we ran into that the syntax CRD uses for prefetch (http://build.fhir.org/ig/HL7/davinci-crd/hooks.html#additional-prefetch-capabilities):

      "ServiceRequest?_id={{context.draftOrders.ServiceRequest.id}}&_include=ServiceRequest:insurance"

      Is incompatible with CDS Hooks, in https://cds-hooks.org/specification/current/#prefetch-tokens:

      Only root-level fields with a primitive value within the context object are eligible to be used as prefetch tokens. For example, {{context.medication.id}} is not a valid prefetch token because it attempts to access the id field of the medication field.

      And in https://cds-hooks.org/specification/current/#prefetch-query-restrictions

      When using this subset, valid prefetch templates MUST only make use of
      ... a list that doesn't have "_include"

       

      We should figure out a plan for resolving both of these incompatibilities.

      Zulip: https://chat.fhir.org/#narrow/stream/180803-Da-Vinci.20CRD/topic/Reconciling.20prefetch.20between.20CRD.20and.20CDS.20Hooks

      It looks like discussion of the first issue stalled, Lloyd is planning to bring it up again https://github.com/cds-hooks/docs/issues/377

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            kjohnsen Kyle Johnsen
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: