FHIR Chat · docs: issue 23: Format of Suggestion.create · cds hooks

Stream: cds hooks

Topic: docs: issue 23: Format of Suggestion.create


view this post on Zulip Github Notifications (Jan 25 2017 at 20:38):

robs16 opened issue 23

The documentation for Suggestion.create states:

string. new resource(s) that this suggestion applies within the current activity (e.g. for medication-prescribe, this holds the updated prescription as proposed by the suggestion).

The .yml in Swagger shows:

  Suggestion:
    type: object
    properties:
      label:
        type: string
      create:
        type: array
        items:
          type: object
      delete:
        type: array
        items:
          type: object

A string is not sufficient to hold the resource, so the docs need updating for consistency. Should this be an array of resources, a Bundle.entry (like prefetch), or a Bundle? Should Suggestion.delete be a simple list of strings or consistent with create?


Last updated: Apr 12 2022 at 19:14 UTC