Da Vinci - Coverage Requirements Discovery
2.2.0-ballot - STU 2.2 Ballot United States of America flag

This page is part of the Da Vinci Coverage Requirements Discovery (CRD) FHIR IG (v2.2.0-ballot: STU 2.2 Ballot) based on FHIR (HL7® FHIR® Standard) R4. This version is a pre-release. The current official version is 2.1.0. For a full list of available versions, see the Directory of published versions

Logical Model: CRDHooksResponse - Detailed Descriptions

Page standards status: Trial-use Maturity Level: 4

Definitions for the CRDHooksResponse logical model.

Guidance on how to interpret the contents of this table can be foundhere

0. CDSHooksResponse
Definition

The response to the discovery endpoint

ShortThe response to the discovery endpoint
Control0..*
Is Modifierfalse
Logical ModelInstances of this logical model are not marked to be the target of a Reference
2. CDSHooksResponse.extension
Definition

A JSON object that has properties where the names are defined by the extension definitions

ShortObject that has Named Extension Properties
Comments

Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

Control0..1
Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
4. CDSHooksResponse.cards
Definition

An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

ShortCDS responses to show user
Comments

The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

Control0..*
Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
SlicingThis element introduces a set of slices on CDSHooksResponse.cards. The slices areUnordered and Open, and can be differentiated using the following discriminators:
  • profile @ $this
  • 6. CDSHooksResponse.cards.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    8. CDSHooksResponse.cards.uuid
    Definition

    Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

    ShortUnique identifier of the card (for logging/feedback)
    Control1..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    10. CDSHooksResponse.cards.summary
    Definition

    One-sentence, <140-character summary message for display to the user inside of this card.

    ShortSummary message for display to the user (<140 char)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    12. CDSHooksResponse.cards.detail
    Definition

    Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

    ShortOptional detailed information to display (GitHub Flavored Markdown)
    Control0..1
    Typemarkdown
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    14. CDSHooksResponse.cards.indicator
    Definition

    Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

    Shortinfo, warning, critical - Urgency/importance of what this card conveys
    Comments

    The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

    Control0..1
    BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    16. CDSHooksResponse.cards.source
    Definition

    The source should be the primary source of guidance for the decision support the card represents.

    ShortThe primary source of guidance for the content the card represents.
    Control1..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Must Supporttrue
    18. CDSHooksResponse.cards.source.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    20. CDSHooksResponse.cards.source.label
    Definition

    A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

    ShortShort, human-readable label to display for the source.
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    22. CDSHooksResponse.cards.source.url
    Definition

    An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

    ShortLink for when user clicks for more information about the source
    Comments

    Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    24. CDSHooksResponse.cards.source.icon
    Definition

    An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

    Shortabsolute URL to an icon for the source (<100x100 PNG))
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    26. CDSHooksResponse.cards.source.topic
    Definition

    A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

    ShortDescribes the content of the card
    Comments

    This specification does not prescribe a standard set of topics

    Control1..1
    BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
    (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
    TypeCoding
    Must Supporttrue
    28. CDSHooksResponse.cards.suggestions
    Definition

    Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

    ShortSuggest a set of changes in the context of the current activity
    Control0..*
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
    30. CDSHooksResponse.cards.suggestions.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    32. CDSHooksResponse.cards.suggestions.label
    Definition

    Human-readable label to display for this suggestion

    ShortHuman-readable label to display for this suggestion
    Comments

    e.g. the CDS Client might render this as the text on a button tied to this suggestion

    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    34. CDSHooksResponse.cards.suggestions.uuid
    Definition

    Unique identifier, used for auditing and logging suggestions

    ShortUnique identifier, used for auditing and logging suggestions
    Control0..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    36. CDSHooksResponse.cards.suggestions.isRecommended
    Definition

    When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

    ShortWhich suggestion is most preferred of a set
    Comments

    CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

    Control0..1
    Typeboolean
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    38. CDSHooksResponse.cards.suggestions.actions
    Definition

    Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

    ShortDefines a suggested action (all apply)
    Comments

    When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
    40. CDSHooksResponse.cards.suggestions.actions.extension
    Definition

    An Extension

    ShortExtension
    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    42. CDSHooksResponse.cards.suggestions.actions.type
    Definition

    The type of action being performed. Allowed values are: create, update, delete.

    Shortcreate, update, delete - type of action performed
    Control1..1
    BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    44. CDSHooksResponse.cards.suggestions.actions.description
    Definition

    Human-readable description of the suggested action that MAY be presented to the end-user.

    ShortHuman-readable description of the suggested action
    Control1..1
    This element is affected by the following invariants: cds-resp-5
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    46. CDSHooksResponse.cards.suggestions.actions.resource
    Definition

    When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

    ShortFHIR resource to create/update
    Comments

    Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

    Control0..1
    TypeResource
    48. CDSHooksResponse.cards.suggestions.actions.resourceId
    Definition

    A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

    ShortA relative reference to the relevant resource.
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    50. CDSHooksResponse.cards.selectionBehavior
    Definition

    Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

    Shortat-most-one | any
    Comments

    CDS Clients that do not understand the value MUST treat the card as an error.

    Control0..1
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    52. CDSHooksResponse.cards.overrideReasons
    Definition

    Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

    ShortFeedback from user on card - why not acted on
    Comments

    The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

    Control0..*
    TypeCoding
    Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
    54. CDSHooksResponse.cards.links
    Definition

    Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

    ShortLink to app or additional information
    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
    56. CDSHooksResponse.cards.links.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    58. CDSHooksResponse.cards.links.label
    Definition

    Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

    ShortHuman-readable label to display for this link
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    60. CDSHooksResponse.cards.links.url
    Definition

    URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

    ShortURL to load
    Control1..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    62. CDSHooksResponse.cards.links.type
    Definition

    The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

    Shortabsolute | smart
    Control1..1
    BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    64. CDSHooksResponse.cards.links.appContext
    Definition

    An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

    ShortInformation to share when launching SMART app
    Comments

    CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    66. CDSHooksResponse.cards:externalReference
    Slice NameexternalReference
    Definition

    An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

    ShortCDS responses to show user
    Comments

    The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks External Reference Response (Logical Definition))
    JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
    Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
    cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
    68. CDSHooksResponse.cards:externalReference.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    70. CDSHooksResponse.cards:externalReference.uuid
    Definition

    Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

    ShortUnique identifier of the card (for logging/feedback)
    Control1..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    72. CDSHooksResponse.cards:externalReference.summary
    Definition

    One-sentence, <140-character summary message for display to the user inside of this card.

    ShortSummary message for display to the user (<140 char)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    74. CDSHooksResponse.cards:externalReference.detail
    Definition

    Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

    ShortOptional detailed information to display (GitHub Flavored Markdown)
    Control0..1
    Typemarkdown
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    76. CDSHooksResponse.cards:externalReference.indicator
    Definition

    Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

    Shortinfo, warning, critical - Urgency/importance of what this card conveys
    Comments

    The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

    Control0..1
    BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    78. CDSHooksResponse.cards:externalReference.source
    Definition

    The source should be the primary source of guidance for the decision support the card represents.

    ShortThe primary source of guidance for the content the card represents.
    Control1..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Must Supporttrue
    80. CDSHooksResponse.cards:externalReference.source.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    82. CDSHooksResponse.cards:externalReference.source.label
    Definition

    A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

    ShortShort, human-readable label to display for the source.
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    84. CDSHooksResponse.cards:externalReference.source.url
    Definition

    An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

    ShortLink for when user clicks for more information about the source
    Comments

    Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    86. CDSHooksResponse.cards:externalReference.source.icon
    Definition

    An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

    Shortabsolute URL to an icon for the source (<100x100 PNG))
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    88. CDSHooksResponse.cards:externalReference.source.topic
    Definition

    A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

    ShortDescribes the content of the card
    Comments

    This specification does not prescribe a standard set of topics

    Control1..1
    BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
    (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
    TypeCoding
    Must Supporttrue
    90. CDSHooksResponse.cards:externalReference.suggestions
    Definition

    Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

    ShortSuggest a set of changes in the context of the current activity
    Control0..*
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
    92. CDSHooksResponse.cards:externalReference.suggestions.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    94. CDSHooksResponse.cards:externalReference.suggestions.label
    Definition

    Human-readable label to display for this suggestion

    ShortHuman-readable label to display for this suggestion
    Comments

    e.g. the CDS Client might render this as the text on a button tied to this suggestion

    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    96. CDSHooksResponse.cards:externalReference.suggestions.uuid
    Definition

    Unique identifier, used for auditing and logging suggestions

    ShortUnique identifier, used for auditing and logging suggestions
    Control0..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    98. CDSHooksResponse.cards:externalReference.suggestions.isRecommended
    Definition

    When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

    ShortWhich suggestion is most preferred of a set
    Comments

    CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

    Control0..1
    Typeboolean
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    100. CDSHooksResponse.cards:externalReference.suggestions.actions
    Definition

    Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

    ShortDefines a suggested action (all apply)
    Comments

    When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
    102. CDSHooksResponse.cards:externalReference.suggestions.actions.extension
    Definition

    An Extension

    ShortExtension
    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    104. CDSHooksResponse.cards:externalReference.suggestions.actions.type
    Definition

    The type of action being performed. Allowed values are: create, update, delete.

    Shortcreate, update, delete - type of action performed
    Control1..1
    BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    106. CDSHooksResponse.cards:externalReference.suggestions.actions.description
    Definition

    Human-readable description of the suggested action that MAY be presented to the end-user.

    ShortHuman-readable description of the suggested action
    Control1..1
    This element is affected by the following invariants: cds-resp-5
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    108. CDSHooksResponse.cards:externalReference.suggestions.actions.resource
    Definition

    When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

    ShortFHIR resource to create/update
    Comments

    Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

    Control0..1
    TypeResource
    110. CDSHooksResponse.cards:externalReference.suggestions.actions.resourceId
    Definition

    A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

    ShortA relative reference to the relevant resource.
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    112. CDSHooksResponse.cards:externalReference.selectionBehavior
    Definition

    Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

    Shortat-most-one | any
    Comments

    CDS Clients that do not understand the value MUST treat the card as an error.

    Control0..1
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    114. CDSHooksResponse.cards:externalReference.overrideReasons
    Definition

    Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

    ShortFeedback from user on card - why not acted on
    Comments

    The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

    Control0..*
    TypeCoding
    Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
    116. CDSHooksResponse.cards:externalReference.links
    Definition

    Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

    ShortLink to app or additional information
    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
    118. CDSHooksResponse.cards:externalReference.links.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    120. CDSHooksResponse.cards:externalReference.links.label
    Definition

    Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

    ShortHuman-readable label to display for this link
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    122. CDSHooksResponse.cards:externalReference.links.url
    Definition

    URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

    ShortURL to load
    Control1..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    124. CDSHooksResponse.cards:externalReference.links.type
    Definition

    The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

    Shortabsolute | smart
    Control1..1
    BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    126. CDSHooksResponse.cards:externalReference.links.appContext
    Definition

    An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

    ShortInformation to share when launching SMART app
    Comments

    CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    128. CDSHooksResponse.cards:instructions
    Slice Nameinstructions
    Definition

    An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

    ShortCDS responses to show user
    Comments

    The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Instructions Response (Logical Definition))
    JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
    Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
    cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
    130. CDSHooksResponse.cards:instructions.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    132. CDSHooksResponse.cards:instructions.uuid
    Definition

    Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

    ShortUnique identifier of the card (for logging/feedback)
    Control1..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    134. CDSHooksResponse.cards:instructions.summary
    Definition

    One-sentence, <140-character summary message for display to the user inside of this card.

    ShortSummary message for display to the user (<140 char)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    136. CDSHooksResponse.cards:instructions.detail
    Definition

    Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

    ShortOptional detailed information to display (GitHub Flavored Markdown)
    Control0..1
    Typemarkdown
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    138. CDSHooksResponse.cards:instructions.indicator
    Definition

    Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

    Shortinfo, warning, critical - Urgency/importance of what this card conveys
    Comments

    The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

    Control0..1
    BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    140. CDSHooksResponse.cards:instructions.source
    Definition

    The source should be the primary source of guidance for the decision support the card represents.

    ShortThe primary source of guidance for the content the card represents.
    Control1..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Must Supporttrue
    142. CDSHooksResponse.cards:instructions.source.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    144. CDSHooksResponse.cards:instructions.source.label
    Definition

    A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

    ShortShort, human-readable label to display for the source.
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    146. CDSHooksResponse.cards:instructions.source.url
    Definition

    An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

    ShortLink for when user clicks for more information about the source
    Comments

    Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    148. CDSHooksResponse.cards:instructions.source.icon
    Definition

    An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

    Shortabsolute URL to an icon for the source (<100x100 PNG))
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    150. CDSHooksResponse.cards:instructions.source.topic
    Definition

    A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

    ShortDescribes the content of the card
    Comments

    This specification does not prescribe a standard set of topics

    Control1..1
    BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
    (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
    TypeCoding
    Must Supporttrue
    152. CDSHooksResponse.cards:instructions.suggestions
    Definition

    Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

    ShortSuggest a set of changes in the context of the current activity
    Control0..*
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
    154. CDSHooksResponse.cards:instructions.suggestions.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    156. CDSHooksResponse.cards:instructions.suggestions.label
    Definition

    Human-readable label to display for this suggestion

    ShortHuman-readable label to display for this suggestion
    Comments

    e.g. the CDS Client might render this as the text on a button tied to this suggestion

    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    158. CDSHooksResponse.cards:instructions.suggestions.uuid
    Definition

    Unique identifier, used for auditing and logging suggestions

    ShortUnique identifier, used for auditing and logging suggestions
    Control0..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    160. CDSHooksResponse.cards:instructions.suggestions.isRecommended
    Definition

    When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

    ShortWhich suggestion is most preferred of a set
    Comments

    CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

    Control0..1
    Typeboolean
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    162. CDSHooksResponse.cards:instructions.suggestions.actions
    Definition

    Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

    ShortDefines a suggested action (all apply)
    Comments

    When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
    164. CDSHooksResponse.cards:instructions.suggestions.actions.extension
    Definition

    An Extension

    ShortExtension
    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    166. CDSHooksResponse.cards:instructions.suggestions.actions.type
    Definition

    The type of action being performed. Allowed values are: create, update, delete.

    Shortcreate, update, delete - type of action performed
    Control1..1
    BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    168. CDSHooksResponse.cards:instructions.suggestions.actions.description
    Definition

    Human-readable description of the suggested action that MAY be presented to the end-user.

    ShortHuman-readable description of the suggested action
    Control1..1
    This element is affected by the following invariants: cds-resp-5
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    170. CDSHooksResponse.cards:instructions.suggestions.actions.resource
    Definition

    When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

    ShortFHIR resource to create/update
    Comments

    Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

    Control0..1
    TypeResource
    172. CDSHooksResponse.cards:instructions.suggestions.actions.resourceId
    Definition

    A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

    ShortA relative reference to the relevant resource.
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    174. CDSHooksResponse.cards:instructions.selectionBehavior
    Definition

    Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

    Shortat-most-one | any
    Comments

    CDS Clients that do not understand the value MUST treat the card as an error.

    Control0..1
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    176. CDSHooksResponse.cards:instructions.overrideReasons
    Definition

    Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

    ShortFeedback from user on card - why not acted on
    Comments

    The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

    Control0..*
    TypeCoding
    Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
    178. CDSHooksResponse.cards:instructions.links
    Definition

    Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

    ShortLink to app or additional information
    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
    180. CDSHooksResponse.cards:instructions.links.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    182. CDSHooksResponse.cards:instructions.links.label
    Definition

    Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

    ShortHuman-readable label to display for this link
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    184. CDSHooksResponse.cards:instructions.links.url
    Definition

    URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

    ShortURL to load
    Control1..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    186. CDSHooksResponse.cards:instructions.links.type
    Definition

    The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

    Shortabsolute | smart
    Control1..1
    BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    188. CDSHooksResponse.cards:instructions.links.appContext
    Definition

    An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

    ShortInformation to share when launching SMART app
    Comments

    CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    190. CDSHooksResponse.cards:alternateRequest
    Slice NamealternateRequest
    Definition

    An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

    ShortCDS responses to show user
    Comments

    The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Alternate Request Response (Logical Definition))
    JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
    Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
    cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
    192. CDSHooksResponse.cards:alternateRequest.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    194. CDSHooksResponse.cards:alternateRequest.uuid
    Definition

    Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

    ShortUnique identifier of the card (for logging/feedback)
    Control1..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    196. CDSHooksResponse.cards:alternateRequest.summary
    Definition

    One-sentence, <140-character summary message for display to the user inside of this card.

    ShortSummary message for display to the user (<140 char)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    198. CDSHooksResponse.cards:alternateRequest.detail
    Definition

    Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

    ShortOptional detailed information to display (GitHub Flavored Markdown)
    Control0..1
    Typemarkdown
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    200. CDSHooksResponse.cards:alternateRequest.indicator
    Definition

    Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

    Shortinfo, warning, critical - Urgency/importance of what this card conveys
    Comments

    The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

    Control0..1
    BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    202. CDSHooksResponse.cards:alternateRequest.source
    Definition

    The source should be the primary source of guidance for the decision support the card represents.

    ShortThe primary source of guidance for the content the card represents.
    Control1..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Must Supporttrue
    204. CDSHooksResponse.cards:alternateRequest.source.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    206. CDSHooksResponse.cards:alternateRequest.source.label
    Definition

    A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

    ShortShort, human-readable label to display for the source.
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    208. CDSHooksResponse.cards:alternateRequest.source.url
    Definition

    An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

    ShortLink for when user clicks for more information about the source
    Comments

    Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    210. CDSHooksResponse.cards:alternateRequest.source.icon
    Definition

    An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

    Shortabsolute URL to an icon for the source (<100x100 PNG))
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    212. CDSHooksResponse.cards:alternateRequest.source.topic
    Definition

    A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

    ShortDescribes the content of the card
    Comments

    This specification does not prescribe a standard set of topics

    Control1..1
    BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
    (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
    TypeCoding
    Must Supporttrue
    214. CDSHooksResponse.cards:alternateRequest.suggestions
    Definition

    Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

    ShortSuggest a set of changes in the context of the current activity
    Control0..*
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
    216. CDSHooksResponse.cards:alternateRequest.suggestions.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    218. CDSHooksResponse.cards:alternateRequest.suggestions.label
    Definition

    Human-readable label to display for this suggestion

    ShortHuman-readable label to display for this suggestion
    Comments

    e.g. the CDS Client might render this as the text on a button tied to this suggestion

    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    220. CDSHooksResponse.cards:alternateRequest.suggestions.uuid
    Definition

    Unique identifier, used for auditing and logging suggestions

    ShortUnique identifier, used for auditing and logging suggestions
    Control0..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    222. CDSHooksResponse.cards:alternateRequest.suggestions.isRecommended
    Definition

    When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

    ShortWhich suggestion is most preferred of a set
    Comments

    CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

    Control0..1
    Typeboolean
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    224. CDSHooksResponse.cards:alternateRequest.suggestions.actions
    Definition

    Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

    ShortDefines a suggested action (all apply)
    Comments

    When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
    226. CDSHooksResponse.cards:alternateRequest.suggestions.actions.extension
    Definition

    An Extension

    ShortExtension
    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    228. CDSHooksResponse.cards:alternateRequest.suggestions.actions.type
    Definition

    The type of action being performed. Allowed values are: create, update, delete.

    Shortcreate, update, delete - type of action performed
    Control1..1
    BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    230. CDSHooksResponse.cards:alternateRequest.suggestions.actions.description
    Definition

    Human-readable description of the suggested action that MAY be presented to the end-user.

    ShortHuman-readable description of the suggested action
    Control1..1
    This element is affected by the following invariants: cds-resp-5
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    232. CDSHooksResponse.cards:alternateRequest.suggestions.actions.resource
    Definition

    When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

    ShortFHIR resource to create/update
    Comments

    Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

    Control0..1
    TypeResource
    234. CDSHooksResponse.cards:alternateRequest.suggestions.actions.resourceId
    Definition

    A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

    ShortA relative reference to the relevant resource.
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    236. CDSHooksResponse.cards:alternateRequest.selectionBehavior
    Definition

    Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

    Shortat-most-one | any
    Comments

    CDS Clients that do not understand the value MUST treat the card as an error.

    Control0..1
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    238. CDSHooksResponse.cards:alternateRequest.overrideReasons
    Definition

    Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

    ShortFeedback from user on card - why not acted on
    Comments

    The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

    Control0..*
    TypeCoding
    Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
    240. CDSHooksResponse.cards:alternateRequest.links
    Definition

    Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

    ShortLink to app or additional information
    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
    242. CDSHooksResponse.cards:alternateRequest.links.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    244. CDSHooksResponse.cards:alternateRequest.links.label
    Definition

    Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

    ShortHuman-readable label to display for this link
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    246. CDSHooksResponse.cards:alternateRequest.links.url
    Definition

    URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

    ShortURL to load
    Control1..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    248. CDSHooksResponse.cards:alternateRequest.links.type
    Definition

    The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

    Shortabsolute | smart
    Control1..1
    BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    250. CDSHooksResponse.cards:alternateRequest.links.appContext
    Definition

    An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

    ShortInformation to share when launching SMART app
    Comments

    CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    252. CDSHooksResponse.cards:additionalOrders
    Slice NameadditionalOrders
    Definition

    An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

    ShortCDS responses to show user
    Comments

    The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Additional Orders Response (Logical Definition))
    JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
    Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
    cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
    254. CDSHooksResponse.cards:additionalOrders.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    256. CDSHooksResponse.cards:additionalOrders.uuid
    Definition

    Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

    ShortUnique identifier of the card (for logging/feedback)
    Control1..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    258. CDSHooksResponse.cards:additionalOrders.summary
    Definition

    One-sentence, <140-character summary message for display to the user inside of this card.

    ShortSummary message for display to the user (<140 char)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    260. CDSHooksResponse.cards:additionalOrders.detail
    Definition

    Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

    ShortOptional detailed information to display (GitHub Flavored Markdown)
    Control0..1
    Typemarkdown
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    262. CDSHooksResponse.cards:additionalOrders.indicator
    Definition

    Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

    Shortinfo, warning, critical - Urgency/importance of what this card conveys
    Comments

    The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

    Control0..1
    BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    264. CDSHooksResponse.cards:additionalOrders.source
    Definition

    The source should be the primary source of guidance for the decision support the card represents.

    ShortThe primary source of guidance for the content the card represents.
    Control1..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Must Supporttrue
    266. CDSHooksResponse.cards:additionalOrders.source.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    268. CDSHooksResponse.cards:additionalOrders.source.label
    Definition

    A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

    ShortShort, human-readable label to display for the source.
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    270. CDSHooksResponse.cards:additionalOrders.source.url
    Definition

    An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

    ShortLink for when user clicks for more information about the source
    Comments

    Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    272. CDSHooksResponse.cards:additionalOrders.source.icon
    Definition

    An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

    Shortabsolute URL to an icon for the source (<100x100 PNG))
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    274. CDSHooksResponse.cards:additionalOrders.source.topic
    Definition

    A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

    ShortDescribes the content of the card
    Comments

    This specification does not prescribe a standard set of topics

    Control1..1
    BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
    (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
    TypeCoding
    Must Supporttrue
    276. CDSHooksResponse.cards:additionalOrders.suggestions
    Definition

    Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

    ShortSuggest a set of changes in the context of the current activity
    Control0..*
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
    278. CDSHooksResponse.cards:additionalOrders.suggestions.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    280. CDSHooksResponse.cards:additionalOrders.suggestions.label
    Definition

    Human-readable label to display for this suggestion

    ShortHuman-readable label to display for this suggestion
    Comments

    e.g. the CDS Client might render this as the text on a button tied to this suggestion

    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    282. CDSHooksResponse.cards:additionalOrders.suggestions.uuid
    Definition

    Unique identifier, used for auditing and logging suggestions

    ShortUnique identifier, used for auditing and logging suggestions
    Control0..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    284. CDSHooksResponse.cards:additionalOrders.suggestions.isRecommended
    Definition

    When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

    ShortWhich suggestion is most preferred of a set
    Comments

    CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

    Control0..1
    Typeboolean
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    286. CDSHooksResponse.cards:additionalOrders.suggestions.actions
    Definition

    Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

    ShortDefines a suggested action (all apply)
    Comments

    When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
    288. CDSHooksResponse.cards:additionalOrders.suggestions.actions.extension
    Definition

    An Extension

    ShortExtension
    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    290. CDSHooksResponse.cards:additionalOrders.suggestions.actions.type
    Definition

    The type of action being performed. Allowed values are: create, update, delete.

    Shortcreate, update, delete - type of action performed
    Control1..1
    BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    292. CDSHooksResponse.cards:additionalOrders.suggestions.actions.description
    Definition

    Human-readable description of the suggested action that MAY be presented to the end-user.

    ShortHuman-readable description of the suggested action
    Control1..1
    This element is affected by the following invariants: cds-resp-5
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    294. CDSHooksResponse.cards:additionalOrders.suggestions.actions.resource
    Definition

    When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

    ShortFHIR resource to create/update
    Comments

    Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

    Control0..1
    TypeResource
    296. CDSHooksResponse.cards:additionalOrders.suggestions.actions.resourceId
    Definition

    A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

    ShortA relative reference to the relevant resource.
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    298. CDSHooksResponse.cards:additionalOrders.selectionBehavior
    Definition

    Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

    Shortat-most-one | any
    Comments

    CDS Clients that do not understand the value MUST treat the card as an error.

    Control0..1
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    300. CDSHooksResponse.cards:additionalOrders.overrideReasons
    Definition

    Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

    ShortFeedback from user on card - why not acted on
    Comments

    The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

    Control0..*
    TypeCoding
    Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
    302. CDSHooksResponse.cards:additionalOrders.links
    Definition

    Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

    ShortLink to app or additional information
    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
    304. CDSHooksResponse.cards:additionalOrders.links.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    306. CDSHooksResponse.cards:additionalOrders.links.label
    Definition

    Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

    ShortHuman-readable label to display for this link
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    308. CDSHooksResponse.cards:additionalOrders.links.url
    Definition

    URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

    ShortURL to load
    Control1..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    310. CDSHooksResponse.cards:additionalOrders.links.type
    Definition

    The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

    Shortabsolute | smart
    Control1..1
    BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    312. CDSHooksResponse.cards:additionalOrders.links.appContext
    Definition

    An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

    ShortInformation to share when launching SMART app
    Comments

    CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    314. CDSHooksResponse.cards:formCompletion
    Slice NameformCompletion
    Definition

    An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

    ShortCDS responses to show user
    Comments

    The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Form Completion Response (Logical Definition))
    JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
    Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
    cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
    316. CDSHooksResponse.cards:formCompletion.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    318. CDSHooksResponse.cards:formCompletion.uuid
    Definition

    Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

    ShortUnique identifier of the card (for logging/feedback)
    Control1..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    320. CDSHooksResponse.cards:formCompletion.summary
    Definition

    One-sentence, <140-character summary message for display to the user inside of this card.

    ShortSummary message for display to the user (<140 char)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    322. CDSHooksResponse.cards:formCompletion.detail
    Definition

    Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

    ShortOptional detailed information to display (GitHub Flavored Markdown)
    Control0..1
    Typemarkdown
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    324. CDSHooksResponse.cards:formCompletion.indicator
    Definition

    Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

    Shortinfo, warning, critical - Urgency/importance of what this card conveys
    Comments

    The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

    Control0..1
    BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    326. CDSHooksResponse.cards:formCompletion.source
    Definition

    The source should be the primary source of guidance for the decision support the card represents.

    ShortThe primary source of guidance for the content the card represents.
    Control1..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Must Supporttrue
    328. CDSHooksResponse.cards:formCompletion.source.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    330. CDSHooksResponse.cards:formCompletion.source.label
    Definition

    A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

    ShortShort, human-readable label to display for the source.
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    332. CDSHooksResponse.cards:formCompletion.source.url
    Definition

    An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

    ShortLink for when user clicks for more information about the source
    Comments

    Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    334. CDSHooksResponse.cards:formCompletion.source.icon
    Definition

    An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

    Shortabsolute URL to an icon for the source (<100x100 PNG))
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    336. CDSHooksResponse.cards:formCompletion.source.topic
    Definition

    A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

    ShortDescribes the content of the card
    Comments

    This specification does not prescribe a standard set of topics

    Control1..1
    BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
    (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
    TypeCoding
    Must Supporttrue
    338. CDSHooksResponse.cards:formCompletion.suggestions
    Definition

    Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

    ShortSuggest a set of changes in the context of the current activity
    Control0..*
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
    340. CDSHooksResponse.cards:formCompletion.suggestions.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    342. CDSHooksResponse.cards:formCompletion.suggestions.label
    Definition

    Human-readable label to display for this suggestion

    ShortHuman-readable label to display for this suggestion
    Comments

    e.g. the CDS Client might render this as the text on a button tied to this suggestion

    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    344. CDSHooksResponse.cards:formCompletion.suggestions.uuid
    Definition

    Unique identifier, used for auditing and logging suggestions

    ShortUnique identifier, used for auditing and logging suggestions
    Control0..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    346. CDSHooksResponse.cards:formCompletion.suggestions.isRecommended
    Definition

    When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

    ShortWhich suggestion is most preferred of a set
    Comments

    CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

    Control0..1
    Typeboolean
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    348. CDSHooksResponse.cards:formCompletion.suggestions.actions
    Definition

    Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

    ShortDefines a suggested action (all apply)
    Comments

    When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
    350. CDSHooksResponse.cards:formCompletion.suggestions.actions.extension
    Definition

    An Extension

    ShortExtension
    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    352. CDSHooksResponse.cards:formCompletion.suggestions.actions.type
    Definition

    The type of action being performed. Allowed values are: create, update, delete.

    Shortcreate, update, delete - type of action performed
    Control1..1
    BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    354. CDSHooksResponse.cards:formCompletion.suggestions.actions.description
    Definition

    Human-readable description of the suggested action that MAY be presented to the end-user.

    ShortHuman-readable description of the suggested action
    Control1..1
    This element is affected by the following invariants: cds-resp-5
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    356. CDSHooksResponse.cards:formCompletion.suggestions.actions.resource
    Definition

    When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

    ShortFHIR resource to create/update
    Comments

    Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

    Control0..1
    TypeResource
    358. CDSHooksResponse.cards:formCompletion.suggestions.actions.resourceId
    Definition

    A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

    ShortA relative reference to the relevant resource.
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    360. CDSHooksResponse.cards:formCompletion.selectionBehavior
    Definition

    Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

    Shortat-most-one | any
    Comments

    CDS Clients that do not understand the value MUST treat the card as an error.

    Control0..1
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    362. CDSHooksResponse.cards:formCompletion.overrideReasons
    Definition

    Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

    ShortFeedback from user on card - why not acted on
    Comments

    The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

    Control0..*
    TypeCoding
    Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
    364. CDSHooksResponse.cards:formCompletion.links
    Definition

    Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

    ShortLink to app or additional information
    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
    366. CDSHooksResponse.cards:formCompletion.links.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    368. CDSHooksResponse.cards:formCompletion.links.label
    Definition

    Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

    ShortHuman-readable label to display for this link
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    370. CDSHooksResponse.cards:formCompletion.links.url
    Definition

    URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

    ShortURL to load
    Control1..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    372. CDSHooksResponse.cards:formCompletion.links.type
    Definition

    The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

    Shortabsolute | smart
    Control1..1
    BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    374. CDSHooksResponse.cards:formCompletion.links.appContext
    Definition

    An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

    ShortInformation to share when launching SMART app
    Comments

    CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    376. CDSHooksResponse.cards:adjustCoverage
    Slice NameadjustCoverage
    Definition

    An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

    ShortCDS responses to show user
    Comments

    The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Adjust Coverage Response (Logical Definition))
    JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
    Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
    cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
    378. CDSHooksResponse.cards:adjustCoverage.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    380. CDSHooksResponse.cards:adjustCoverage.uuid
    Definition

    Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

    ShortUnique identifier of the card (for logging/feedback)
    Control1..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    382. CDSHooksResponse.cards:adjustCoverage.summary
    Definition

    One-sentence, <140-character summary message for display to the user inside of this card.

    ShortSummary message for display to the user (<140 char)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    384. CDSHooksResponse.cards:adjustCoverage.detail
    Definition

    Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

    ShortOptional detailed information to display (GitHub Flavored Markdown)
    Control0..1
    Typemarkdown
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    386. CDSHooksResponse.cards:adjustCoverage.indicator
    Definition

    Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

    Shortinfo, warning, critical - Urgency/importance of what this card conveys
    Comments

    The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

    Control0..1
    BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    388. CDSHooksResponse.cards:adjustCoverage.source
    Definition

    The source should be the primary source of guidance for the decision support the card represents.

    ShortThe primary source of guidance for the content the card represents.
    Control1..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Must Supporttrue
    390. CDSHooksResponse.cards:adjustCoverage.source.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    392. CDSHooksResponse.cards:adjustCoverage.source.label
    Definition

    A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

    ShortShort, human-readable label to display for the source.
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    394. CDSHooksResponse.cards:adjustCoverage.source.url
    Definition

    An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

    ShortLink for when user clicks for more information about the source
    Comments

    Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    396. CDSHooksResponse.cards:adjustCoverage.source.icon
    Definition

    An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

    Shortabsolute URL to an icon for the source (<100x100 PNG))
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    398. CDSHooksResponse.cards:adjustCoverage.source.topic
    Definition

    A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

    ShortDescribes the content of the card
    Comments

    This specification does not prescribe a standard set of topics

    Control1..1
    BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
    (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
    TypeCoding
    Must Supporttrue
    400. CDSHooksResponse.cards:adjustCoverage.suggestions
    Definition

    Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

    ShortSuggest a set of changes in the context of the current activity
    Control0..*
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
    402. CDSHooksResponse.cards:adjustCoverage.suggestions.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    404. CDSHooksResponse.cards:adjustCoverage.suggestions.label
    Definition

    Human-readable label to display for this suggestion

    ShortHuman-readable label to display for this suggestion
    Comments

    e.g. the CDS Client might render this as the text on a button tied to this suggestion

    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    406. CDSHooksResponse.cards:adjustCoverage.suggestions.uuid
    Definition

    Unique identifier, used for auditing and logging suggestions

    ShortUnique identifier, used for auditing and logging suggestions
    Control0..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    408. CDSHooksResponse.cards:adjustCoverage.suggestions.isRecommended
    Definition

    When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

    ShortWhich suggestion is most preferred of a set
    Comments

    CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

    Control0..1
    Typeboolean
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    410. CDSHooksResponse.cards:adjustCoverage.suggestions.actions
    Definition

    Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

    ShortDefines a suggested action (all apply)
    Comments

    When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
    412. CDSHooksResponse.cards:adjustCoverage.suggestions.actions.extension
    Definition

    An Extension

    ShortExtension
    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    414. CDSHooksResponse.cards:adjustCoverage.suggestions.actions.type
    Definition

    The type of action being performed. Allowed values are: create, update, delete.

    Shortcreate, update, delete - type of action performed
    Control1..1
    BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    416. CDSHooksResponse.cards:adjustCoverage.suggestions.actions.description
    Definition

    Human-readable description of the suggested action that MAY be presented to the end-user.

    ShortHuman-readable description of the suggested action
    Control1..1
    This element is affected by the following invariants: cds-resp-5
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    418. CDSHooksResponse.cards:adjustCoverage.suggestions.actions.resource
    Definition

    When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

    ShortFHIR resource to create/update
    Comments

    Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

    Control0..1
    TypeResource
    420. CDSHooksResponse.cards:adjustCoverage.suggestions.actions.resourceId
    Definition

    A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

    ShortA relative reference to the relevant resource.
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    422. CDSHooksResponse.cards:adjustCoverage.selectionBehavior
    Definition

    Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

    Shortat-most-one | any
    Comments

    CDS Clients that do not understand the value MUST treat the card as an error.

    Control0..1
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    424. CDSHooksResponse.cards:adjustCoverage.overrideReasons
    Definition

    Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

    ShortFeedback from user on card - why not acted on
    Comments

    The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

    Control0..*
    TypeCoding
    Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
    426. CDSHooksResponse.cards:adjustCoverage.links
    Definition

    Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

    ShortLink to app or additional information
    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
    428. CDSHooksResponse.cards:adjustCoverage.links.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    430. CDSHooksResponse.cards:adjustCoverage.links.label
    Definition

    Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

    ShortHuman-readable label to display for this link
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    432. CDSHooksResponse.cards:adjustCoverage.links.url
    Definition

    URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

    ShortURL to load
    Control1..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    434. CDSHooksResponse.cards:adjustCoverage.links.type
    Definition

    The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

    Shortabsolute | smart
    Control1..1
    BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    436. CDSHooksResponse.cards:adjustCoverage.links.appContext
    Definition

    An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

    ShortInformation to share when launching SMART app
    Comments

    CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    438. CDSHooksResponse.cards:launchSMART
    Slice NamelaunchSMART
    Definition

    An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

    ShortCDS responses to show user
    Comments

    The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks SMART App Response (Logical Definition))
    JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
    Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
    cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
    440. CDSHooksResponse.cards:launchSMART.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    442. CDSHooksResponse.cards:launchSMART.uuid
    Definition

    Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

    ShortUnique identifier of the card (for logging/feedback)
    Control1..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    444. CDSHooksResponse.cards:launchSMART.summary
    Definition

    One-sentence, <140-character summary message for display to the user inside of this card.

    ShortSummary message for display to the user (<140 char)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    446. CDSHooksResponse.cards:launchSMART.detail
    Definition

    Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

    ShortOptional detailed information to display (GitHub Flavored Markdown)
    Control0..1
    Typemarkdown
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    448. CDSHooksResponse.cards:launchSMART.indicator
    Definition

    Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

    Shortinfo, warning, critical - Urgency/importance of what this card conveys
    Comments

    The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

    Control0..1
    BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    450. CDSHooksResponse.cards:launchSMART.source
    Definition

    The source should be the primary source of guidance for the decision support the card represents.

    ShortThe primary source of guidance for the content the card represents.
    Control1..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Must Supporttrue
    452. CDSHooksResponse.cards:launchSMART.source.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    454. CDSHooksResponse.cards:launchSMART.source.label
    Definition

    A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

    ShortShort, human-readable label to display for the source.
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    456. CDSHooksResponse.cards:launchSMART.source.url
    Definition

    An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

    ShortLink for when user clicks for more information about the source
    Comments

    Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    458. CDSHooksResponse.cards:launchSMART.source.icon
    Definition

    An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

    Shortabsolute URL to an icon for the source (<100x100 PNG))
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    460. CDSHooksResponse.cards:launchSMART.source.topic
    Definition

    A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

    ShortDescribes the content of the card
    Comments

    This specification does not prescribe a standard set of topics

    Control1..1
    BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
    (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
    TypeCoding
    Must Supporttrue
    462. CDSHooksResponse.cards:launchSMART.suggestions
    Definition

    Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

    ShortSuggest a set of changes in the context of the current activity
    Control0..*
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
    464. CDSHooksResponse.cards:launchSMART.suggestions.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    466. CDSHooksResponse.cards:launchSMART.suggestions.label
    Definition

    Human-readable label to display for this suggestion

    ShortHuman-readable label to display for this suggestion
    Comments

    e.g. the CDS Client might render this as the text on a button tied to this suggestion

    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    468. CDSHooksResponse.cards:launchSMART.suggestions.uuid
    Definition

    Unique identifier, used for auditing and logging suggestions

    ShortUnique identifier, used for auditing and logging suggestions
    Control0..1
    Typeuuid
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
    470. CDSHooksResponse.cards:launchSMART.suggestions.isRecommended
    Definition

    When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

    ShortWhich suggestion is most preferred of a set
    Comments

    CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

    Control0..1
    Typeboolean
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    472. CDSHooksResponse.cards:launchSMART.suggestions.actions
    Definition

    Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

    ShortDefines a suggested action (all apply)
    Comments

    When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
    474. CDSHooksResponse.cards:launchSMART.suggestions.actions.extension
    Definition

    An Extension

    ShortExtension
    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    476. CDSHooksResponse.cards:launchSMART.suggestions.actions.type
    Definition

    The type of action being performed. Allowed values are: create, update, delete.

    Shortcreate, update, delete - type of action performed
    Control1..1
    BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    478. CDSHooksResponse.cards:launchSMART.suggestions.actions.description
    Definition

    Human-readable description of the suggested action that MAY be presented to the end-user.

    ShortHuman-readable description of the suggested action
    Control1..1
    This element is affected by the following invariants: cds-resp-5
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    480. CDSHooksResponse.cards:launchSMART.suggestions.actions.resource
    Definition

    When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

    ShortFHIR resource to create/update
    Comments

    Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

    Control0..1
    TypeResource
    482. CDSHooksResponse.cards:launchSMART.suggestions.actions.resourceId
    Definition

    A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

    ShortA relative reference to the relevant resource.
    Control0..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    484. CDSHooksResponse.cards:launchSMART.selectionBehavior
    Definition

    Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

    Shortat-most-one | any
    Comments

    CDS Clients that do not understand the value MUST treat the card as an error.

    Control0..1
    This element is affected by the following invariants: cds-resp-1, cds-resp-6
    BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    486. CDSHooksResponse.cards:launchSMART.overrideReasons
    Definition

    Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

    ShortFeedback from user on card - why not acted on
    Comments

    The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

    Control0..*
    TypeCoding
    Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
    488. CDSHooksResponse.cards:launchSMART.links
    Definition

    Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

    ShortLink to app or additional information
    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
    490. CDSHooksResponse.cards:launchSMART.links.extension
    Definition

    A JSON object that has properties where the names are defined by the extension definitions

    ShortObject that has Named Extension Properties
    Comments

    Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

    Control0..1
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
    492. CDSHooksResponse.cards:launchSMART.links.label
    Definition

    Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

    ShortHuman-readable label to display for this link
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    494. CDSHooksResponse.cards:launchSMART.links.url
    Definition

    URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

    ShortURL to load
    Control1..1
    Typeurl
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    496. CDSHooksResponse.cards:launchSMART.links.type
    Definition

    The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

    Shortabsolute | smart
    Control1..1
    BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
    (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    498. CDSHooksResponse.cards:launchSMART.links.appContext
    Definition

    An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

    ShortInformation to share when launching SMART app
    Comments

    CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Must Supporttrue
    500. CDSHooksResponse.systemActions
    Definition

    An array of Actions that the CDS Service proposes to auto-apply

    ShortActions to auto-apply
    Comments

    Each action follows the schema of a card-based suggestion.action. The CDS Client decides whether to auto-apply actions.

    Control0..*
    Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
    JSON FormatThe JSON Array for this property is not present when there are no items in the instance (e.g. never as an empty array)
    SlicingThis element introduces a set of slices on CDSHooksResponse.systemActions. The slices areUnordered and Open, and can be differentiated using the following discriminators:
    • profile @ $this
    • 502. CDSHooksResponse.systemActions.extension
      Definition

      A JSON object that has properties where the names are defined by the extension definitions

      ShortObject that has Named Extension Properties
      Comments

      Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

      Control0..1
      Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
      504. CDSHooksResponse.systemActions.type
      Definition

      The type of action being performed. Allowed values are: create, update, delete.

      Shortcreate, update, delete - type of action performed
      Control1..1
      BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
      (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
      Typecode
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      Must Supporttrue
      506. CDSHooksResponse.systemActions.description
      Definition

      Human-readable description of the suggested action that MAY be presented to the end-user.

      ShortHuman-readable description of the suggested action
      Control0..1
      This element is affected by the following invariants: cds-resp-5
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      508. CDSHooksResponse.systemActions.resource
      Definition

      When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

      ShortFHIR resource to create/update
      Comments

      Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

      Control0..1
      TypeResource
      510. CDSHooksResponse.systemActions.resourceId
      Definition

      A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

      ShortA relative reference to the relevant resource.
      Control0..1
      Typeurl
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      512. CDSHooksResponse.systemActions:coverageInformation
      Slice NamecoverageInformation
      Definition

      An array of Actions that the CDS Service proposes to auto-apply

      ShortActions to auto-apply
      Comments

      Each action follows the schema of a card-based suggestion.action. The CDS Client decides whether to auto-apply actions.

      Control0..*
      Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Coverage Information Response (Logical Definition))
      JSON FormatThe JSON Array for this property is not present when there are no items in the instance (e.g. never as an empty array)
      514. CDSHooksResponse.systemActions:coverageInformation.extension
      Definition

      A JSON object that has properties where the names are defined by the extension definitions

      ShortObject that has Named Extension Properties
      Comments

      Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

      Control0..1
      Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
      516. CDSHooksResponse.systemActions:coverageInformation.type
      Definition

      The type of action being performed. Allowed values are: create, update, delete.

      Shortcreate, update, delete - type of action performed
      Control1..1
      BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
      (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
      Typecode
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      Must Supporttrue
      518. CDSHooksResponse.systemActions:coverageInformation.description
      Definition

      Human-readable description of the suggested action that MAY be presented to the end-user.

      ShortHuman-readable description of the suggested action
      Control0..1
      This element is affected by the following invariants: cds-resp-5
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      520. CDSHooksResponse.systemActions:coverageInformation.resource
      Definition

      When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

      ShortFHIR resource to create/update
      Comments

      Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

      Control0..1
      TypeResource
      522. CDSHooksResponse.systemActions:coverageInformation.resourceId
      Definition

      A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

      ShortA relative reference to the relevant resource.
      Control0..1
      Typeurl
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      524. CDSHooksResponse.systemActions:formCompletion
      Slice NameformCompletion
      Definition

      An array of Actions that the CDS Service proposes to auto-apply

      ShortActions to auto-apply
      Comments

      Each action follows the schema of a card-based suggestion.action. The CDS Client decides whether to auto-apply actions.

      Control0..*
      Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Form Completion Response (Logical Definition))
      JSON FormatThe JSON Array for this property is not present when there are no items in the instance (e.g. never as an empty array)
      526. CDSHooksResponse.systemActions:formCompletion.extension
      Definition

      A JSON object that has properties where the names are defined by the extension definitions

      ShortObject that has Named Extension Properties
      Comments

      Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

      Control0..1
      Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
      528. CDSHooksResponse.systemActions:formCompletion.type
      Definition

      The type of action being performed. Allowed values are: create, update, delete.

      Shortcreate, update, delete - type of action performed
      Control1..1
      BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
      (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
      Typecode
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      Must Supporttrue
      530. CDSHooksResponse.systemActions:formCompletion.description
      Definition

      Human-readable description of the suggested action that MAY be presented to the end-user.

      ShortHuman-readable description of the suggested action
      Control0..1
      This element is affected by the following invariants: cds-resp-5
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      532. CDSHooksResponse.systemActions:formCompletion.resource
      Definition

      When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

      ShortFHIR resource to create/update
      Comments

      Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

      Control0..1
      TypeResource
      534. CDSHooksResponse.systemActions:formCompletion.resourceId
      Definition

      A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

      ShortA relative reference to the relevant resource.
      Control0..1
      Typeurl
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      536. CDSHooksResponse.systemActions:adjustCoverage
      Slice NameadjustCoverage
      Definition

      An array of Actions that the CDS Service proposes to auto-apply

      ShortActions to auto-apply
      Comments

      Each action follows the schema of a card-based suggestion.action. The CDS Client decides whether to auto-apply actions.

      Control0..*
      Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Adjust Coverage Response (Logical Definition))
      JSON FormatThe JSON Array for this property is not present when there are no items in the instance (e.g. never as an empty array)
      538. CDSHooksResponse.systemActions:adjustCoverage.extension
      Definition

      A JSON object that has properties where the names are defined by the extension definitions

      ShortObject that has Named Extension Properties
      Comments

      Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

      Control0..1
      Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
      540. CDSHooksResponse.systemActions:adjustCoverage.type
      Definition

      The type of action being performed. Allowed values are: create, update, delete.

      Shortcreate, update, delete - type of action performed
      Control1..1
      BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
      (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
      Typecode
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      Must Supporttrue
      542. CDSHooksResponse.systemActions:adjustCoverage.description
      Definition

      Human-readable description of the suggested action that MAY be presented to the end-user.

      ShortHuman-readable description of the suggested action
      Control0..1
      This element is affected by the following invariants: cds-resp-5
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      544. CDSHooksResponse.systemActions:adjustCoverage.resource
      Definition

      When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

      ShortFHIR resource to create/update
      Comments

      Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

      Control0..1
      TypeResource
      546. CDSHooksResponse.systemActions:adjustCoverage.resourceId
      Definition

      A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

      ShortA relative reference to the relevant resource.
      Control0..1
      Typeurl
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension

      Guidance on how to interpret the contents of this table can be foundhere

      0. CDSHooksResponse
      Logical ModelInstances of this logical model are not marked to be the target of a Reference
      2. CDSHooksResponse.cards
      SlicingThis element introduces a set of slices on CDSHooksResponse.cards. The slices areUnordered and Open, and can be differentiated using the following discriminators:
      • profile @ $this
      • 4. CDSHooksResponse.cards:externalReference
        Slice NameexternalReference
        Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks External Reference Response (Logical Definition))
        6. CDSHooksResponse.cards:instructions
        Slice Nameinstructions
        Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Instructions Response (Logical Definition))
        8. CDSHooksResponse.cards:alternateRequest
        Slice NamealternateRequest
        Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Alternate Request Response (Logical Definition))
        10. CDSHooksResponse.cards:additionalOrders
        Slice NameadditionalOrders
        Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Additional Orders Response (Logical Definition))
        12. CDSHooksResponse.cards:formCompletion
        Slice NameformCompletion
        Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Form Completion Response (Logical Definition))
        14. CDSHooksResponse.cards:adjustCoverage
        Slice NameadjustCoverage
        Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Adjust Coverage Response (Logical Definition))
        16. CDSHooksResponse.cards:launchSMART
        Slice NamelaunchSMART
        Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks SMART App Response (Logical Definition))
        18. CDSHooksResponse.systemActions
        SlicingThis element introduces a set of slices on CDSHooksResponse.systemActions. The slices areUnordered and Open, and can be differentiated using the following discriminators:
        • profile @ $this
        • 20. CDSHooksResponse.systemActions:coverageInformation
          Slice NamecoverageInformation
          Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Coverage Information Response (Logical Definition))
          22. CDSHooksResponse.systemActions:formCompletion
          Slice NameformCompletion
          Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Form Completion Response (Logical Definition))
          24. CDSHooksResponse.systemActions:adjustCoverage
          Slice NameadjustCoverage
          Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Adjust Coverage Response (Logical Definition))

          Guidance on how to interpret the contents of this table can be foundhere

          0. CDSHooksResponse
          Definition

          The response to the discovery endpoint

          ShortThe response to the discovery endpoint
          Control0..*
          Is Modifierfalse
          Logical ModelInstances of this logical model are not marked to be the target of a Reference
          2. CDSHooksResponse.extension
          Definition

          A JSON object that has properties where the names are defined by the extension definitions

          ShortObject that has Named Extension Properties
          Comments

          Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

          Control0..1
          Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
          4. CDSHooksResponse.cards
          Definition

          An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

          ShortCDS responses to show user
          Comments

          The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

          Control0..*
          Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
          JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
          Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
          cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
          SlicingThis element introduces a set of slices on CDSHooksResponse.cards. The slices areUnordered and Open, and can be differentiated using the following discriminators:
          • profile @ $this
          • 6. CDSHooksResponse.cards.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            8. CDSHooksResponse.cards.uuid
            Definition

            Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

            ShortUnique identifier of the card (for logging/feedback)
            Control1..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            10. CDSHooksResponse.cards.summary
            Definition

            One-sentence, <140-character summary message for display to the user inside of this card.

            ShortSummary message for display to the user (<140 char)
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            12. CDSHooksResponse.cards.detail
            Definition

            Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

            ShortOptional detailed information to display (GitHub Flavored Markdown)
            Control0..1
            Typemarkdown
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            14. CDSHooksResponse.cards.indicator
            Definition

            Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

            Shortinfo, warning, critical - Urgency/importance of what this card conveys
            Comments

            The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

            Control0..1
            BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            16. CDSHooksResponse.cards.source
            Definition

            The source should be the primary source of guidance for the decision support the card represents.

            ShortThe primary source of guidance for the content the card represents.
            Control1..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Must Supporttrue
            18. CDSHooksResponse.cards.source.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            20. CDSHooksResponse.cards.source.label
            Definition

            A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

            ShortShort, human-readable label to display for the source.
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            22. CDSHooksResponse.cards.source.url
            Definition

            An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

            ShortLink for when user clicks for more information about the source
            Comments

            Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            24. CDSHooksResponse.cards.source.icon
            Definition

            An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

            Shortabsolute URL to an icon for the source (<100x100 PNG))
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            26. CDSHooksResponse.cards.source.topic
            Definition

            A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

            ShortDescribes the content of the card
            Comments

            This specification does not prescribe a standard set of topics

            Control1..1
            BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
            (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
            TypeCoding
            Must Supporttrue
            28. CDSHooksResponse.cards.suggestions
            Definition

            Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

            ShortSuggest a set of changes in the context of the current activity
            Control0..*
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
            30. CDSHooksResponse.cards.suggestions.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            32. CDSHooksResponse.cards.suggestions.label
            Definition

            Human-readable label to display for this suggestion

            ShortHuman-readable label to display for this suggestion
            Comments

            e.g. the CDS Client might render this as the text on a button tied to this suggestion

            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            34. CDSHooksResponse.cards.suggestions.uuid
            Definition

            Unique identifier, used for auditing and logging suggestions

            ShortUnique identifier, used for auditing and logging suggestions
            Control0..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            36. CDSHooksResponse.cards.suggestions.isRecommended
            Definition

            When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

            ShortWhich suggestion is most preferred of a set
            Comments

            CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

            Control0..1
            Typeboolean
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            38. CDSHooksResponse.cards.suggestions.actions
            Definition

            Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

            ShortDefines a suggested action (all apply)
            Comments

            When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
            40. CDSHooksResponse.cards.suggestions.actions.extension
            Definition

            An Extension

            ShortExtension
            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            42. CDSHooksResponse.cards.suggestions.actions.type
            Definition

            The type of action being performed. Allowed values are: create, update, delete.

            Shortcreate, update, delete - type of action performed
            Control1..1
            BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            44. CDSHooksResponse.cards.suggestions.actions.description
            Definition

            Human-readable description of the suggested action that MAY be presented to the end-user.

            ShortHuman-readable description of the suggested action
            Control1..1
            This element is affected by the following invariants: cds-resp-5
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            46. CDSHooksResponse.cards.suggestions.actions.resource
            Definition

            When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

            ShortFHIR resource to create/update
            Comments

            Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

            Control0..1
            TypeResource
            48. CDSHooksResponse.cards.suggestions.actions.resourceId
            Definition

            A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

            ShortA relative reference to the relevant resource.
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            50. CDSHooksResponse.cards.selectionBehavior
            Definition

            Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

            Shortat-most-one | any
            Comments

            CDS Clients that do not understand the value MUST treat the card as an error.

            Control0..1
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            52. CDSHooksResponse.cards.overrideReasons
            Definition

            Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

            ShortFeedback from user on card - why not acted on
            Comments

            The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

            Control0..*
            TypeCoding
            Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
            54. CDSHooksResponse.cards.links
            Definition

            Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

            ShortLink to app or additional information
            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
            56. CDSHooksResponse.cards.links.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            58. CDSHooksResponse.cards.links.label
            Definition

            Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

            ShortHuman-readable label to display for this link
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            60. CDSHooksResponse.cards.links.url
            Definition

            URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

            ShortURL to load
            Control1..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            62. CDSHooksResponse.cards.links.type
            Definition

            The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

            Shortabsolute | smart
            Control1..1
            BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            64. CDSHooksResponse.cards.links.appContext
            Definition

            An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

            ShortInformation to share when launching SMART app
            Comments

            CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

            Control0..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            66. CDSHooksResponse.cards:externalReference
            Slice NameexternalReference
            Definition

            An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

            ShortCDS responses to show user
            Comments

            The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks External Reference Response (Logical Definition))
            JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
            Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
            cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
            68. CDSHooksResponse.cards:externalReference.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            70. CDSHooksResponse.cards:externalReference.uuid
            Definition

            Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

            ShortUnique identifier of the card (for logging/feedback)
            Control1..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            72. CDSHooksResponse.cards:externalReference.summary
            Definition

            One-sentence, <140-character summary message for display to the user inside of this card.

            ShortSummary message for display to the user (<140 char)
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            74. CDSHooksResponse.cards:externalReference.detail
            Definition

            Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

            ShortOptional detailed information to display (GitHub Flavored Markdown)
            Control0..1
            Typemarkdown
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            76. CDSHooksResponse.cards:externalReference.indicator
            Definition

            Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

            Shortinfo, warning, critical - Urgency/importance of what this card conveys
            Comments

            The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

            Control0..1
            BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            78. CDSHooksResponse.cards:externalReference.source
            Definition

            The source should be the primary source of guidance for the decision support the card represents.

            ShortThe primary source of guidance for the content the card represents.
            Control1..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Must Supporttrue
            80. CDSHooksResponse.cards:externalReference.source.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            82. CDSHooksResponse.cards:externalReference.source.label
            Definition

            A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

            ShortShort, human-readable label to display for the source.
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            84. CDSHooksResponse.cards:externalReference.source.url
            Definition

            An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

            ShortLink for when user clicks for more information about the source
            Comments

            Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            86. CDSHooksResponse.cards:externalReference.source.icon
            Definition

            An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

            Shortabsolute URL to an icon for the source (<100x100 PNG))
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            88. CDSHooksResponse.cards:externalReference.source.topic
            Definition

            A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

            ShortDescribes the content of the card
            Comments

            This specification does not prescribe a standard set of topics

            Control1..1
            BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
            (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
            TypeCoding
            Must Supporttrue
            90. CDSHooksResponse.cards:externalReference.suggestions
            Definition

            Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

            ShortSuggest a set of changes in the context of the current activity
            Control0..*
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
            92. CDSHooksResponse.cards:externalReference.suggestions.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            94. CDSHooksResponse.cards:externalReference.suggestions.label
            Definition

            Human-readable label to display for this suggestion

            ShortHuman-readable label to display for this suggestion
            Comments

            e.g. the CDS Client might render this as the text on a button tied to this suggestion

            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            96. CDSHooksResponse.cards:externalReference.suggestions.uuid
            Definition

            Unique identifier, used for auditing and logging suggestions

            ShortUnique identifier, used for auditing and logging suggestions
            Control0..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            98. CDSHooksResponse.cards:externalReference.suggestions.isRecommended
            Definition

            When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

            ShortWhich suggestion is most preferred of a set
            Comments

            CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

            Control0..1
            Typeboolean
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            100. CDSHooksResponse.cards:externalReference.suggestions.actions
            Definition

            Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

            ShortDefines a suggested action (all apply)
            Comments

            When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
            102. CDSHooksResponse.cards:externalReference.suggestions.actions.extension
            Definition

            An Extension

            ShortExtension
            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            104. CDSHooksResponse.cards:externalReference.suggestions.actions.type
            Definition

            The type of action being performed. Allowed values are: create, update, delete.

            Shortcreate, update, delete - type of action performed
            Control1..1
            BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            106. CDSHooksResponse.cards:externalReference.suggestions.actions.description
            Definition

            Human-readable description of the suggested action that MAY be presented to the end-user.

            ShortHuman-readable description of the suggested action
            Control1..1
            This element is affected by the following invariants: cds-resp-5
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            108. CDSHooksResponse.cards:externalReference.suggestions.actions.resource
            Definition

            When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

            ShortFHIR resource to create/update
            Comments

            Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

            Control0..1
            TypeResource
            110. CDSHooksResponse.cards:externalReference.suggestions.actions.resourceId
            Definition

            A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

            ShortA relative reference to the relevant resource.
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            112. CDSHooksResponse.cards:externalReference.selectionBehavior
            Definition

            Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

            Shortat-most-one | any
            Comments

            CDS Clients that do not understand the value MUST treat the card as an error.

            Control0..1
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            114. CDSHooksResponse.cards:externalReference.overrideReasons
            Definition

            Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

            ShortFeedback from user on card - why not acted on
            Comments

            The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

            Control0..*
            TypeCoding
            Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
            116. CDSHooksResponse.cards:externalReference.links
            Definition

            Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

            ShortLink to app or additional information
            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
            118. CDSHooksResponse.cards:externalReference.links.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            120. CDSHooksResponse.cards:externalReference.links.label
            Definition

            Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

            ShortHuman-readable label to display for this link
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            122. CDSHooksResponse.cards:externalReference.links.url
            Definition

            URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

            ShortURL to load
            Control1..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            124. CDSHooksResponse.cards:externalReference.links.type
            Definition

            The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

            Shortabsolute | smart
            Control1..1
            BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            126. CDSHooksResponse.cards:externalReference.links.appContext
            Definition

            An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

            ShortInformation to share when launching SMART app
            Comments

            CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

            Control0..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            128. CDSHooksResponse.cards:instructions
            Slice Nameinstructions
            Definition

            An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

            ShortCDS responses to show user
            Comments

            The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Instructions Response (Logical Definition))
            JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
            Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
            cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
            130. CDSHooksResponse.cards:instructions.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            132. CDSHooksResponse.cards:instructions.uuid
            Definition

            Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

            ShortUnique identifier of the card (for logging/feedback)
            Control1..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            134. CDSHooksResponse.cards:instructions.summary
            Definition

            One-sentence, <140-character summary message for display to the user inside of this card.

            ShortSummary message for display to the user (<140 char)
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            136. CDSHooksResponse.cards:instructions.detail
            Definition

            Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

            ShortOptional detailed information to display (GitHub Flavored Markdown)
            Control0..1
            Typemarkdown
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            138. CDSHooksResponse.cards:instructions.indicator
            Definition

            Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

            Shortinfo, warning, critical - Urgency/importance of what this card conveys
            Comments

            The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

            Control0..1
            BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            140. CDSHooksResponse.cards:instructions.source
            Definition

            The source should be the primary source of guidance for the decision support the card represents.

            ShortThe primary source of guidance for the content the card represents.
            Control1..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Must Supporttrue
            142. CDSHooksResponse.cards:instructions.source.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            144. CDSHooksResponse.cards:instructions.source.label
            Definition

            A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

            ShortShort, human-readable label to display for the source.
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            146. CDSHooksResponse.cards:instructions.source.url
            Definition

            An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

            ShortLink for when user clicks for more information about the source
            Comments

            Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            148. CDSHooksResponse.cards:instructions.source.icon
            Definition

            An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

            Shortabsolute URL to an icon for the source (<100x100 PNG))
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            150. CDSHooksResponse.cards:instructions.source.topic
            Definition

            A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

            ShortDescribes the content of the card
            Comments

            This specification does not prescribe a standard set of topics

            Control1..1
            BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
            (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
            TypeCoding
            Must Supporttrue
            152. CDSHooksResponse.cards:instructions.suggestions
            Definition

            Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

            ShortSuggest a set of changes in the context of the current activity
            Control0..*
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
            154. CDSHooksResponse.cards:instructions.suggestions.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            156. CDSHooksResponse.cards:instructions.suggestions.label
            Definition

            Human-readable label to display for this suggestion

            ShortHuman-readable label to display for this suggestion
            Comments

            e.g. the CDS Client might render this as the text on a button tied to this suggestion

            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            158. CDSHooksResponse.cards:instructions.suggestions.uuid
            Definition

            Unique identifier, used for auditing and logging suggestions

            ShortUnique identifier, used for auditing and logging suggestions
            Control0..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            160. CDSHooksResponse.cards:instructions.suggestions.isRecommended
            Definition

            When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

            ShortWhich suggestion is most preferred of a set
            Comments

            CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

            Control0..1
            Typeboolean
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            162. CDSHooksResponse.cards:instructions.suggestions.actions
            Definition

            Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

            ShortDefines a suggested action (all apply)
            Comments

            When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
            164. CDSHooksResponse.cards:instructions.suggestions.actions.extension
            Definition

            An Extension

            ShortExtension
            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            166. CDSHooksResponse.cards:instructions.suggestions.actions.type
            Definition

            The type of action being performed. Allowed values are: create, update, delete.

            Shortcreate, update, delete - type of action performed
            Control1..1
            BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            168. CDSHooksResponse.cards:instructions.suggestions.actions.description
            Definition

            Human-readable description of the suggested action that MAY be presented to the end-user.

            ShortHuman-readable description of the suggested action
            Control1..1
            This element is affected by the following invariants: cds-resp-5
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            170. CDSHooksResponse.cards:instructions.suggestions.actions.resource
            Definition

            When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

            ShortFHIR resource to create/update
            Comments

            Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

            Control0..1
            TypeResource
            172. CDSHooksResponse.cards:instructions.suggestions.actions.resourceId
            Definition

            A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

            ShortA relative reference to the relevant resource.
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            174. CDSHooksResponse.cards:instructions.selectionBehavior
            Definition

            Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

            Shortat-most-one | any
            Comments

            CDS Clients that do not understand the value MUST treat the card as an error.

            Control0..1
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            176. CDSHooksResponse.cards:instructions.overrideReasons
            Definition

            Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

            ShortFeedback from user on card - why not acted on
            Comments

            The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

            Control0..*
            TypeCoding
            Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
            178. CDSHooksResponse.cards:instructions.links
            Definition

            Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

            ShortLink to app or additional information
            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
            180. CDSHooksResponse.cards:instructions.links.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            182. CDSHooksResponse.cards:instructions.links.label
            Definition

            Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

            ShortHuman-readable label to display for this link
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            184. CDSHooksResponse.cards:instructions.links.url
            Definition

            URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

            ShortURL to load
            Control1..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            186. CDSHooksResponse.cards:instructions.links.type
            Definition

            The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

            Shortabsolute | smart
            Control1..1
            BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            188. CDSHooksResponse.cards:instructions.links.appContext
            Definition

            An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

            ShortInformation to share when launching SMART app
            Comments

            CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

            Control0..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            190. CDSHooksResponse.cards:alternateRequest
            Slice NamealternateRequest
            Definition

            An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

            ShortCDS responses to show user
            Comments

            The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Alternate Request Response (Logical Definition))
            JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
            Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
            cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
            192. CDSHooksResponse.cards:alternateRequest.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            194. CDSHooksResponse.cards:alternateRequest.uuid
            Definition

            Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

            ShortUnique identifier of the card (for logging/feedback)
            Control1..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            196. CDSHooksResponse.cards:alternateRequest.summary
            Definition

            One-sentence, <140-character summary message for display to the user inside of this card.

            ShortSummary message for display to the user (<140 char)
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            198. CDSHooksResponse.cards:alternateRequest.detail
            Definition

            Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

            ShortOptional detailed information to display (GitHub Flavored Markdown)
            Control0..1
            Typemarkdown
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            200. CDSHooksResponse.cards:alternateRequest.indicator
            Definition

            Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

            Shortinfo, warning, critical - Urgency/importance of what this card conveys
            Comments

            The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

            Control0..1
            BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            202. CDSHooksResponse.cards:alternateRequest.source
            Definition

            The source should be the primary source of guidance for the decision support the card represents.

            ShortThe primary source of guidance for the content the card represents.
            Control1..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Must Supporttrue
            204. CDSHooksResponse.cards:alternateRequest.source.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            206. CDSHooksResponse.cards:alternateRequest.source.label
            Definition

            A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

            ShortShort, human-readable label to display for the source.
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            208. CDSHooksResponse.cards:alternateRequest.source.url
            Definition

            An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

            ShortLink for when user clicks for more information about the source
            Comments

            Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            210. CDSHooksResponse.cards:alternateRequest.source.icon
            Definition

            An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

            Shortabsolute URL to an icon for the source (<100x100 PNG))
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            212. CDSHooksResponse.cards:alternateRequest.source.topic
            Definition

            A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

            ShortDescribes the content of the card
            Comments

            This specification does not prescribe a standard set of topics

            Control1..1
            BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
            (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
            TypeCoding
            Must Supporttrue
            214. CDSHooksResponse.cards:alternateRequest.suggestions
            Definition

            Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

            ShortSuggest a set of changes in the context of the current activity
            Control0..*
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
            216. CDSHooksResponse.cards:alternateRequest.suggestions.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            218. CDSHooksResponse.cards:alternateRequest.suggestions.label
            Definition

            Human-readable label to display for this suggestion

            ShortHuman-readable label to display for this suggestion
            Comments

            e.g. the CDS Client might render this as the text on a button tied to this suggestion

            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            220. CDSHooksResponse.cards:alternateRequest.suggestions.uuid
            Definition

            Unique identifier, used for auditing and logging suggestions

            ShortUnique identifier, used for auditing and logging suggestions
            Control0..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            222. CDSHooksResponse.cards:alternateRequest.suggestions.isRecommended
            Definition

            When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

            ShortWhich suggestion is most preferred of a set
            Comments

            CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

            Control0..1
            Typeboolean
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            224. CDSHooksResponse.cards:alternateRequest.suggestions.actions
            Definition

            Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

            ShortDefines a suggested action (all apply)
            Comments

            When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
            226. CDSHooksResponse.cards:alternateRequest.suggestions.actions.extension
            Definition

            An Extension

            ShortExtension
            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            228. CDSHooksResponse.cards:alternateRequest.suggestions.actions.type
            Definition

            The type of action being performed. Allowed values are: create, update, delete.

            Shortcreate, update, delete - type of action performed
            Control1..1
            BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            230. CDSHooksResponse.cards:alternateRequest.suggestions.actions.description
            Definition

            Human-readable description of the suggested action that MAY be presented to the end-user.

            ShortHuman-readable description of the suggested action
            Control1..1
            This element is affected by the following invariants: cds-resp-5
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            232. CDSHooksResponse.cards:alternateRequest.suggestions.actions.resource
            Definition

            When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

            ShortFHIR resource to create/update
            Comments

            Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

            Control0..1
            TypeResource
            234. CDSHooksResponse.cards:alternateRequest.suggestions.actions.resourceId
            Definition

            A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

            ShortA relative reference to the relevant resource.
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            236. CDSHooksResponse.cards:alternateRequest.selectionBehavior
            Definition

            Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

            Shortat-most-one | any
            Comments

            CDS Clients that do not understand the value MUST treat the card as an error.

            Control0..1
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            238. CDSHooksResponse.cards:alternateRequest.overrideReasons
            Definition

            Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

            ShortFeedback from user on card - why not acted on
            Comments

            The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

            Control0..*
            TypeCoding
            Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
            240. CDSHooksResponse.cards:alternateRequest.links
            Definition

            Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

            ShortLink to app or additional information
            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
            242. CDSHooksResponse.cards:alternateRequest.links.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            244. CDSHooksResponse.cards:alternateRequest.links.label
            Definition

            Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

            ShortHuman-readable label to display for this link
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            246. CDSHooksResponse.cards:alternateRequest.links.url
            Definition

            URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

            ShortURL to load
            Control1..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            248. CDSHooksResponse.cards:alternateRequest.links.type
            Definition

            The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

            Shortabsolute | smart
            Control1..1
            BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            250. CDSHooksResponse.cards:alternateRequest.links.appContext
            Definition

            An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

            ShortInformation to share when launching SMART app
            Comments

            CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

            Control0..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            252. CDSHooksResponse.cards:additionalOrders
            Slice NameadditionalOrders
            Definition

            An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

            ShortCDS responses to show user
            Comments

            The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Additional Orders Response (Logical Definition))
            JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
            Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
            cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
            254. CDSHooksResponse.cards:additionalOrders.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            256. CDSHooksResponse.cards:additionalOrders.uuid
            Definition

            Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

            ShortUnique identifier of the card (for logging/feedback)
            Control1..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            258. CDSHooksResponse.cards:additionalOrders.summary
            Definition

            One-sentence, <140-character summary message for display to the user inside of this card.

            ShortSummary message for display to the user (<140 char)
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            260. CDSHooksResponse.cards:additionalOrders.detail
            Definition

            Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

            ShortOptional detailed information to display (GitHub Flavored Markdown)
            Control0..1
            Typemarkdown
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            262. CDSHooksResponse.cards:additionalOrders.indicator
            Definition

            Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

            Shortinfo, warning, critical - Urgency/importance of what this card conveys
            Comments

            The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

            Control0..1
            BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            264. CDSHooksResponse.cards:additionalOrders.source
            Definition

            The source should be the primary source of guidance for the decision support the card represents.

            ShortThe primary source of guidance for the content the card represents.
            Control1..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Must Supporttrue
            266. CDSHooksResponse.cards:additionalOrders.source.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            268. CDSHooksResponse.cards:additionalOrders.source.label
            Definition

            A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

            ShortShort, human-readable label to display for the source.
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            270. CDSHooksResponse.cards:additionalOrders.source.url
            Definition

            An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

            ShortLink for when user clicks for more information about the source
            Comments

            Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            272. CDSHooksResponse.cards:additionalOrders.source.icon
            Definition

            An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

            Shortabsolute URL to an icon for the source (<100x100 PNG))
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            274. CDSHooksResponse.cards:additionalOrders.source.topic
            Definition

            A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

            ShortDescribes the content of the card
            Comments

            This specification does not prescribe a standard set of topics

            Control1..1
            BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
            (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
            TypeCoding
            Must Supporttrue
            276. CDSHooksResponse.cards:additionalOrders.suggestions
            Definition

            Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

            ShortSuggest a set of changes in the context of the current activity
            Control0..*
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
            278. CDSHooksResponse.cards:additionalOrders.suggestions.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            280. CDSHooksResponse.cards:additionalOrders.suggestions.label
            Definition

            Human-readable label to display for this suggestion

            ShortHuman-readable label to display for this suggestion
            Comments

            e.g. the CDS Client might render this as the text on a button tied to this suggestion

            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            282. CDSHooksResponse.cards:additionalOrders.suggestions.uuid
            Definition

            Unique identifier, used for auditing and logging suggestions

            ShortUnique identifier, used for auditing and logging suggestions
            Control0..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            284. CDSHooksResponse.cards:additionalOrders.suggestions.isRecommended
            Definition

            When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

            ShortWhich suggestion is most preferred of a set
            Comments

            CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

            Control0..1
            Typeboolean
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            286. CDSHooksResponse.cards:additionalOrders.suggestions.actions
            Definition

            Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

            ShortDefines a suggested action (all apply)
            Comments

            When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
            288. CDSHooksResponse.cards:additionalOrders.suggestions.actions.extension
            Definition

            An Extension

            ShortExtension
            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            290. CDSHooksResponse.cards:additionalOrders.suggestions.actions.type
            Definition

            The type of action being performed. Allowed values are: create, update, delete.

            Shortcreate, update, delete - type of action performed
            Control1..1
            BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            292. CDSHooksResponse.cards:additionalOrders.suggestions.actions.description
            Definition

            Human-readable description of the suggested action that MAY be presented to the end-user.

            ShortHuman-readable description of the suggested action
            Control1..1
            This element is affected by the following invariants: cds-resp-5
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            294. CDSHooksResponse.cards:additionalOrders.suggestions.actions.resource
            Definition

            When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

            ShortFHIR resource to create/update
            Comments

            Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

            Control0..1
            TypeResource
            296. CDSHooksResponse.cards:additionalOrders.suggestions.actions.resourceId
            Definition

            A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

            ShortA relative reference to the relevant resource.
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            298. CDSHooksResponse.cards:additionalOrders.selectionBehavior
            Definition

            Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

            Shortat-most-one | any
            Comments

            CDS Clients that do not understand the value MUST treat the card as an error.

            Control0..1
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            300. CDSHooksResponse.cards:additionalOrders.overrideReasons
            Definition

            Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

            ShortFeedback from user on card - why not acted on
            Comments

            The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

            Control0..*
            TypeCoding
            Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
            302. CDSHooksResponse.cards:additionalOrders.links
            Definition

            Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

            ShortLink to app or additional information
            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
            304. CDSHooksResponse.cards:additionalOrders.links.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            306. CDSHooksResponse.cards:additionalOrders.links.label
            Definition

            Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

            ShortHuman-readable label to display for this link
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            308. CDSHooksResponse.cards:additionalOrders.links.url
            Definition

            URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

            ShortURL to load
            Control1..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            310. CDSHooksResponse.cards:additionalOrders.links.type
            Definition

            The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

            Shortabsolute | smart
            Control1..1
            BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            312. CDSHooksResponse.cards:additionalOrders.links.appContext
            Definition

            An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

            ShortInformation to share when launching SMART app
            Comments

            CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

            Control0..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            314. CDSHooksResponse.cards:formCompletion
            Slice NameformCompletion
            Definition

            An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

            ShortCDS responses to show user
            Comments

            The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Form Completion Response (Logical Definition))
            JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
            Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
            cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
            316. CDSHooksResponse.cards:formCompletion.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            318. CDSHooksResponse.cards:formCompletion.uuid
            Definition

            Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

            ShortUnique identifier of the card (for logging/feedback)
            Control1..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            320. CDSHooksResponse.cards:formCompletion.summary
            Definition

            One-sentence, <140-character summary message for display to the user inside of this card.

            ShortSummary message for display to the user (<140 char)
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            322. CDSHooksResponse.cards:formCompletion.detail
            Definition

            Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

            ShortOptional detailed information to display (GitHub Flavored Markdown)
            Control0..1
            Typemarkdown
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            324. CDSHooksResponse.cards:formCompletion.indicator
            Definition

            Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

            Shortinfo, warning, critical - Urgency/importance of what this card conveys
            Comments

            The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

            Control0..1
            BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            326. CDSHooksResponse.cards:formCompletion.source
            Definition

            The source should be the primary source of guidance for the decision support the card represents.

            ShortThe primary source of guidance for the content the card represents.
            Control1..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Must Supporttrue
            328. CDSHooksResponse.cards:formCompletion.source.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            330. CDSHooksResponse.cards:formCompletion.source.label
            Definition

            A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

            ShortShort, human-readable label to display for the source.
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            332. CDSHooksResponse.cards:formCompletion.source.url
            Definition

            An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

            ShortLink for when user clicks for more information about the source
            Comments

            Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            334. CDSHooksResponse.cards:formCompletion.source.icon
            Definition

            An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

            Shortabsolute URL to an icon for the source (<100x100 PNG))
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            336. CDSHooksResponse.cards:formCompletion.source.topic
            Definition

            A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

            ShortDescribes the content of the card
            Comments

            This specification does not prescribe a standard set of topics

            Control1..1
            BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
            (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
            TypeCoding
            Must Supporttrue
            338. CDSHooksResponse.cards:formCompletion.suggestions
            Definition

            Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

            ShortSuggest a set of changes in the context of the current activity
            Control0..*
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
            340. CDSHooksResponse.cards:formCompletion.suggestions.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            342. CDSHooksResponse.cards:formCompletion.suggestions.label
            Definition

            Human-readable label to display for this suggestion

            ShortHuman-readable label to display for this suggestion
            Comments

            e.g. the CDS Client might render this as the text on a button tied to this suggestion

            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            344. CDSHooksResponse.cards:formCompletion.suggestions.uuid
            Definition

            Unique identifier, used for auditing and logging suggestions

            ShortUnique identifier, used for auditing and logging suggestions
            Control0..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            346. CDSHooksResponse.cards:formCompletion.suggestions.isRecommended
            Definition

            When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

            ShortWhich suggestion is most preferred of a set
            Comments

            CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

            Control0..1
            Typeboolean
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            348. CDSHooksResponse.cards:formCompletion.suggestions.actions
            Definition

            Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

            ShortDefines a suggested action (all apply)
            Comments

            When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
            350. CDSHooksResponse.cards:formCompletion.suggestions.actions.extension
            Definition

            An Extension

            ShortExtension
            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            352. CDSHooksResponse.cards:formCompletion.suggestions.actions.type
            Definition

            The type of action being performed. Allowed values are: create, update, delete.

            Shortcreate, update, delete - type of action performed
            Control1..1
            BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            354. CDSHooksResponse.cards:formCompletion.suggestions.actions.description
            Definition

            Human-readable description of the suggested action that MAY be presented to the end-user.

            ShortHuman-readable description of the suggested action
            Control1..1
            This element is affected by the following invariants: cds-resp-5
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            356. CDSHooksResponse.cards:formCompletion.suggestions.actions.resource
            Definition

            When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

            ShortFHIR resource to create/update
            Comments

            Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

            Control0..1
            TypeResource
            358. CDSHooksResponse.cards:formCompletion.suggestions.actions.resourceId
            Definition

            A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

            ShortA relative reference to the relevant resource.
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            360. CDSHooksResponse.cards:formCompletion.selectionBehavior
            Definition

            Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

            Shortat-most-one | any
            Comments

            CDS Clients that do not understand the value MUST treat the card as an error.

            Control0..1
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            362. CDSHooksResponse.cards:formCompletion.overrideReasons
            Definition

            Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

            ShortFeedback from user on card - why not acted on
            Comments

            The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

            Control0..*
            TypeCoding
            Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
            364. CDSHooksResponse.cards:formCompletion.links
            Definition

            Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

            ShortLink to app or additional information
            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
            366. CDSHooksResponse.cards:formCompletion.links.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            368. CDSHooksResponse.cards:formCompletion.links.label
            Definition

            Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

            ShortHuman-readable label to display for this link
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            370. CDSHooksResponse.cards:formCompletion.links.url
            Definition

            URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

            ShortURL to load
            Control1..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            372. CDSHooksResponse.cards:formCompletion.links.type
            Definition

            The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

            Shortabsolute | smart
            Control1..1
            BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            374. CDSHooksResponse.cards:formCompletion.links.appContext
            Definition

            An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

            ShortInformation to share when launching SMART app
            Comments

            CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

            Control0..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            376. CDSHooksResponse.cards:adjustCoverage
            Slice NameadjustCoverage
            Definition

            An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

            ShortCDS responses to show user
            Comments

            The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Adjust Coverage Response (Logical Definition))
            JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
            Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
            cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
            378. CDSHooksResponse.cards:adjustCoverage.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            380. CDSHooksResponse.cards:adjustCoverage.uuid
            Definition

            Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

            ShortUnique identifier of the card (for logging/feedback)
            Control1..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            382. CDSHooksResponse.cards:adjustCoverage.summary
            Definition

            One-sentence, <140-character summary message for display to the user inside of this card.

            ShortSummary message for display to the user (<140 char)
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            384. CDSHooksResponse.cards:adjustCoverage.detail
            Definition

            Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

            ShortOptional detailed information to display (GitHub Flavored Markdown)
            Control0..1
            Typemarkdown
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            386. CDSHooksResponse.cards:adjustCoverage.indicator
            Definition

            Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

            Shortinfo, warning, critical - Urgency/importance of what this card conveys
            Comments

            The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

            Control0..1
            BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            388. CDSHooksResponse.cards:adjustCoverage.source
            Definition

            The source should be the primary source of guidance for the decision support the card represents.

            ShortThe primary source of guidance for the content the card represents.
            Control1..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Must Supporttrue
            390. CDSHooksResponse.cards:adjustCoverage.source.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            392. CDSHooksResponse.cards:adjustCoverage.source.label
            Definition

            A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

            ShortShort, human-readable label to display for the source.
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            394. CDSHooksResponse.cards:adjustCoverage.source.url
            Definition

            An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

            ShortLink for when user clicks for more information about the source
            Comments

            Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            396. CDSHooksResponse.cards:adjustCoverage.source.icon
            Definition

            An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

            Shortabsolute URL to an icon for the source (<100x100 PNG))
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            398. CDSHooksResponse.cards:adjustCoverage.source.topic
            Definition

            A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

            ShortDescribes the content of the card
            Comments

            This specification does not prescribe a standard set of topics

            Control1..1
            BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
            (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
            TypeCoding
            Must Supporttrue
            400. CDSHooksResponse.cards:adjustCoverage.suggestions
            Definition

            Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

            ShortSuggest a set of changes in the context of the current activity
            Control0..*
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
            402. CDSHooksResponse.cards:adjustCoverage.suggestions.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            404. CDSHooksResponse.cards:adjustCoverage.suggestions.label
            Definition

            Human-readable label to display for this suggestion

            ShortHuman-readable label to display for this suggestion
            Comments

            e.g. the CDS Client might render this as the text on a button tied to this suggestion

            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            406. CDSHooksResponse.cards:adjustCoverage.suggestions.uuid
            Definition

            Unique identifier, used for auditing and logging suggestions

            ShortUnique identifier, used for auditing and logging suggestions
            Control0..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            408. CDSHooksResponse.cards:adjustCoverage.suggestions.isRecommended
            Definition

            When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

            ShortWhich suggestion is most preferred of a set
            Comments

            CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

            Control0..1
            Typeboolean
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            410. CDSHooksResponse.cards:adjustCoverage.suggestions.actions
            Definition

            Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

            ShortDefines a suggested action (all apply)
            Comments

            When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
            412. CDSHooksResponse.cards:adjustCoverage.suggestions.actions.extension
            Definition

            An Extension

            ShortExtension
            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            414. CDSHooksResponse.cards:adjustCoverage.suggestions.actions.type
            Definition

            The type of action being performed. Allowed values are: create, update, delete.

            Shortcreate, update, delete - type of action performed
            Control1..1
            BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            416. CDSHooksResponse.cards:adjustCoverage.suggestions.actions.description
            Definition

            Human-readable description of the suggested action that MAY be presented to the end-user.

            ShortHuman-readable description of the suggested action
            Control1..1
            This element is affected by the following invariants: cds-resp-5
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            418. CDSHooksResponse.cards:adjustCoverage.suggestions.actions.resource
            Definition

            When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

            ShortFHIR resource to create/update
            Comments

            Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

            Control0..1
            TypeResource
            420. CDSHooksResponse.cards:adjustCoverage.suggestions.actions.resourceId
            Definition

            A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

            ShortA relative reference to the relevant resource.
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            422. CDSHooksResponse.cards:adjustCoverage.selectionBehavior
            Definition

            Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

            Shortat-most-one | any
            Comments

            CDS Clients that do not understand the value MUST treat the card as an error.

            Control0..1
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            424. CDSHooksResponse.cards:adjustCoverage.overrideReasons
            Definition

            Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

            ShortFeedback from user on card - why not acted on
            Comments

            The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

            Control0..*
            TypeCoding
            Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
            426. CDSHooksResponse.cards:adjustCoverage.links
            Definition

            Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

            ShortLink to app or additional information
            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
            428. CDSHooksResponse.cards:adjustCoverage.links.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            430. CDSHooksResponse.cards:adjustCoverage.links.label
            Definition

            Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

            ShortHuman-readable label to display for this link
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            432. CDSHooksResponse.cards:adjustCoverage.links.url
            Definition

            URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

            ShortURL to load
            Control1..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            434. CDSHooksResponse.cards:adjustCoverage.links.type
            Definition

            The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

            Shortabsolute | smart
            Control1..1
            BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            436. CDSHooksResponse.cards:adjustCoverage.links.appContext
            Definition

            An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

            ShortInformation to share when launching SMART app
            Comments

            CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

            Control0..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            438. CDSHooksResponse.cards:launchSMART
            Slice NamelaunchSMART
            Definition

            An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them).

            ShortCDS responses to show user
            Comments

            The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text.

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks SMART App Response (Logical Definition))
            JSON FormatThe JSON Array for this property is present even when there are no items in the instance (e.g. as an empty array)
            Invariantscds-resp-1: only one action can be suggested if selectionBehavior = at-most-one ((selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() <= 1)
            cds-resp-6: If suggestions are present, selectionBehavior MUST also be provided. (suggestions.exists() implies selectionBehavior.exists())
            440. CDSHooksResponse.cards:launchSMART.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            442. CDSHooksResponse.cards:launchSMART.uuid
            Definition

            Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint.

            ShortUnique identifier of the card (for logging/feedback)
            Control1..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            444. CDSHooksResponse.cards:launchSMART.summary
            Definition

            One-sentence, <140-character summary message for display to the user inside of this card.

            ShortSummary message for display to the user (<140 char)
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            446. CDSHooksResponse.cards:launchSMART.detail
            Definition

            Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...').

            ShortOptional detailed information to display (GitHub Flavored Markdown)
            Control0..1
            Typemarkdown
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            448. CDSHooksResponse.cards:launchSMART.indicator
            Definition

            Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical.

            Shortinfo, warning, critical - Urgency/importance of what this card conveys
            Comments

            The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring.

            Control0..1
            BindingThe codes SHALL be taken from CDSIndicator Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSIndicator)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            450. CDSHooksResponse.cards:launchSMART.source
            Definition

            The source should be the primary source of guidance for the decision support the card represents.

            ShortThe primary source of guidance for the content the card represents.
            Control1..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Must Supporttrue
            452. CDSHooksResponse.cards:launchSMART.source.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            454. CDSHooksResponse.cards:launchSMART.source.label
            Definition

            A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink.

            ShortShort, human-readable label to display for the source.
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            456. CDSHooksResponse.cards:launchSMART.source.url
            Definition

            An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card.

            ShortLink for when user clicks for more information about the source
            Comments

            Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead.

            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            458. CDSHooksResponse.cards:launchSMART.source.icon
            Definition

            An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience.

            Shortabsolute URL to an icon for the source (<100x100 PNG))
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            460. CDSHooksResponse.cards:launchSMART.source.topic
            Definition

            A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics

            ShortDescribes the content of the card
            Comments

            This specification does not prescribe a standard set of topics

            Control1..1
            BindingUnless not suitable, these codes SHALL be taken from CRD Card Types Value Set
            (extensible to http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType)
            TypeCoding
            Must Supporttrue
            462. CDSHooksResponse.cards:launchSMART.suggestions
            Definition

            Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity).

            ShortSuggest a set of changes in the context of the current activity
            Control0..*
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-5: All suggestion actions must have a description (actions.all(description.exists()))
            464. CDSHooksResponse.cards:launchSMART.suggestions.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            466. CDSHooksResponse.cards:launchSMART.suggestions.label
            Definition

            Human-readable label to display for this suggestion

            ShortHuman-readable label to display for this suggestion
            Comments

            e.g. the CDS Client might render this as the text on a button tied to this suggestion

            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            468. CDSHooksResponse.cards:launchSMART.suggestions.uuid
            Definition

            Unique identifier, used for auditing and logging suggestions

            ShortUnique identifier, used for auditing and logging suggestions
            Control0..1
            Typeuuid
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            String FormatWhen this element is read urn:uuid:is prefixed to the value before validation
            470. CDSHooksResponse.cards:launchSMART.suggestions.isRecommended
            Definition

            When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card

            ShortWhich suggestion is most preferred of a set
            Comments

            CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any.

            Control0..1
            Typeboolean
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            472. CDSHooksResponse.cards:launchSMART.suggestions.actions
            Definition

            Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it

            ShortDefines a suggested action (all apply)
            Comments

            When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates).

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-2: A resourceId not a resource must be provided when type = delete ((type = 'delete') implies (resourceId.exists() and resource.empty()))
            474. CDSHooksResponse.cards:launchSMART.suggestions.actions.extension
            Definition

            An Extension

            ShortExtension
            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            476. CDSHooksResponse.cards:launchSMART.suggestions.actions.type
            Definition

            The type of action being performed. Allowed values are: create, update, delete.

            Shortcreate, update, delete - type of action performed
            Control1..1
            BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            478. CDSHooksResponse.cards:launchSMART.suggestions.actions.description
            Definition

            Human-readable description of the suggested action that MAY be presented to the end-user.

            ShortHuman-readable description of the suggested action
            Control1..1
            This element is affected by the following invariants: cds-resp-5
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            480. CDSHooksResponse.cards:launchSMART.suggestions.actions.resource
            Definition

            When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

            ShortFHIR resource to create/update
            Comments

            Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

            Control0..1
            TypeResource
            482. CDSHooksResponse.cards:launchSMART.suggestions.actions.resourceId
            Definition

            A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

            ShortA relative reference to the relevant resource.
            Control0..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            484. CDSHooksResponse.cards:launchSMART.selectionBehavior
            Definition

            Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them

            Shortat-most-one | any
            Comments

            CDS Clients that do not understand the value MUST treat the card as an error.

            Control0..1
            This element is affected by the following invariants: cds-resp-1, cds-resp-6
            BindingThe codes SHALL be taken from CDSSelectionBehavior Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            486. CDSHooksResponse.cards:launchSMART.overrideReasons
            Definition

            Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client.

            ShortFeedback from user on card - why not acted on
            Comments

            The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons

            Control0..*
            TypeCoding
            Invariantscds-resp-4: the CDS Service MUST populate a display value for each reason's Coding (all(display.exists()))
            488. CDSHooksResponse.cards:launchSMART.links
            Definition

            Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision.

            ShortLink to app or additional information
            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            Invariantscds-resp-3: AppContext only for smart Apps ((type != 'smart') implies (appContext.empty()))
            490. CDSHooksResponse.cards:launchSMART.links.extension
            Definition

            A JSON object that has properties where the names are defined by the extension definitions

            ShortObject that has Named Extension Properties
            Comments

            Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

            Control0..1
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
            492. CDSHooksResponse.cards:launchSMART.links.label
            Definition

            Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link).

            ShortHuman-readable label to display for this link
            Control1..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            494. CDSHooksResponse.cards:launchSMART.links.url
            Definition

            URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash.

            ShortURL to load
            Control1..1
            Typeurl
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            496. CDSHooksResponse.cards:launchSMART.links.type
            Definition

            The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters

            Shortabsolute | smart
            Control1..1
            BindingThe codes SHALL be taken from CDSLinkType Codes ValueSet
            (required to http://hl7.org/fhir/tools/ValueSet/CDSLinkType)
            Typecode
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            498. CDSHooksResponse.cards:launchSMART.links.appContext
            Definition

            An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it.

            ShortInformation to share when launching SMART app
            Comments

            CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART.

            Control0..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            Must Supporttrue
            500. CDSHooksResponse.systemActions
            Definition

            An array of Actions that the CDS Service proposes to auto-apply

            ShortActions to auto-apply
            Comments

            Each action follows the schema of a card-based suggestion.action. The CDS Client decides whether to auto-apply actions.

            Control0..*
            Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement
            JSON FormatThe JSON Array for this property is not present when there are no items in the instance (e.g. never as an empty array)
            SlicingThis element introduces a set of slices on CDSHooksResponse.systemActions. The slices areUnordered and Open, and can be differentiated using the following discriminators:
            • profile @ $this
            • 502. CDSHooksResponse.systemActions.extension
              Definition

              A JSON object that has properties where the names are defined by the extension definitions

              ShortObject that has Named Extension Properties
              Comments

              Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

              Control0..1
              Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
              504. CDSHooksResponse.systemActions.type
              Definition

              The type of action being performed. Allowed values are: create, update, delete.

              Shortcreate, update, delete - type of action performed
              Control1..1
              BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
              (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
              Typecode
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              Must Supporttrue
              506. CDSHooksResponse.systemActions.description
              Definition

              Human-readable description of the suggested action that MAY be presented to the end-user.

              ShortHuman-readable description of the suggested action
              Control0..1
              This element is affected by the following invariants: cds-resp-5
              Typestring
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              508. CDSHooksResponse.systemActions.resource
              Definition

              When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

              ShortFHIR resource to create/update
              Comments

              Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

              Control0..1
              TypeResource
              510. CDSHooksResponse.systemActions.resourceId
              Definition

              A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

              ShortA relative reference to the relevant resource.
              Control0..1
              Typeurl
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              512. CDSHooksResponse.systemActions:coverageInformation
              Slice NamecoverageInformation
              Definition

              An array of Actions that the CDS Service proposes to auto-apply

              ShortActions to auto-apply
              Comments

              Each action follows the schema of a card-based suggestion.action. The CDS Client decides whether to auto-apply actions.

              Control0..*
              Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Coverage Information Response (Logical Definition))
              JSON FormatThe JSON Array for this property is not present when there are no items in the instance (e.g. never as an empty array)
              514. CDSHooksResponse.systemActions:coverageInformation.extension
              Definition

              A JSON object that has properties where the names are defined by the extension definitions

              ShortObject that has Named Extension Properties
              Comments

              Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

              Control0..1
              Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
              516. CDSHooksResponse.systemActions:coverageInformation.type
              Definition

              The type of action being performed. Allowed values are: create, update, delete.

              Shortcreate, update, delete - type of action performed
              Control1..1
              BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
              (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
              Typecode
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              Must Supporttrue
              518. CDSHooksResponse.systemActions:coverageInformation.description
              Definition

              Human-readable description of the suggested action that MAY be presented to the end-user.

              ShortHuman-readable description of the suggested action
              Control0..1
              This element is affected by the following invariants: cds-resp-5
              Typestring
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              520. CDSHooksResponse.systemActions:coverageInformation.resource
              Definition

              When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

              ShortFHIR resource to create/update
              Comments

              Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

              Control0..1
              TypeResource
              522. CDSHooksResponse.systemActions:coverageInformation.resourceId
              Definition

              A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

              ShortA relative reference to the relevant resource.
              Control0..1
              Typeurl
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              524. CDSHooksResponse.systemActions:formCompletion
              Slice NameformCompletion
              Definition

              An array of Actions that the CDS Service proposes to auto-apply

              ShortActions to auto-apply
              Comments

              Each action follows the schema of a card-based suggestion.action. The CDS Client decides whether to auto-apply actions.

              Control0..*
              Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Form Completion Response (Logical Definition))
              JSON FormatThe JSON Array for this property is not present when there are no items in the instance (e.g. never as an empty array)
              526. CDSHooksResponse.systemActions:formCompletion.extension
              Definition

              A JSON object that has properties where the names are defined by the extension definitions

              ShortObject that has Named Extension Properties
              Comments

              Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

              Control0..1
              Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
              528. CDSHooksResponse.systemActions:formCompletion.type
              Definition

              The type of action being performed. Allowed values are: create, update, delete.

              Shortcreate, update, delete - type of action performed
              Control1..1
              BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
              (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
              Typecode
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              Must Supporttrue
              530. CDSHooksResponse.systemActions:formCompletion.description
              Definition

              Human-readable description of the suggested action that MAY be presented to the end-user.

              ShortHuman-readable description of the suggested action
              Control0..1
              This element is affected by the following invariants: cds-resp-5
              Typestring
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              532. CDSHooksResponse.systemActions:formCompletion.resource
              Definition

              When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

              ShortFHIR resource to create/update
              Comments

              Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

              Control0..1
              TypeResource
              534. CDSHooksResponse.systemActions:formCompletion.resourceId
              Definition

              A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

              ShortA relative reference to the relevant resource.
              Control0..1
              Typeurl
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              536. CDSHooksResponse.systemActions:adjustCoverage
              Slice NameadjustCoverage
              Definition

              An array of Actions that the CDS Service proposes to auto-apply

              ShortActions to auto-apply
              Comments

              Each action follows the schema of a card-based suggestion.action. The CDS Client decides whether to auto-apply actions.

              Control0..*
              Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement(CRD CDSHooks Adjust Coverage Response (Logical Definition))
              JSON FormatThe JSON Array for this property is not present when there are no items in the instance (e.g. never as an empty array)
              538. CDSHooksResponse.systemActions:adjustCoverage.extension
              Definition

              A JSON object that has properties where the names are defined by the extension definitions

              ShortObject that has Named Extension Properties
              Comments

              Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined

              Control0..1
              Typehttp://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions
              540. CDSHooksResponse.systemActions:adjustCoverage.type
              Definition

              The type of action being performed. Allowed values are: create, update, delete.

              Shortcreate, update, delete - type of action performed
              Control1..1
              BindingThe codes SHALL be taken from CDSActionType Codes ValueSet
              (required to http://hl7.org/fhir/tools/ValueSet/CDSActionType)
              Typecode
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              Must Supporttrue
              542. CDSHooksResponse.systemActions:adjustCoverage.description
              Definition

              Human-readable description of the suggested action that MAY be presented to the end-user.

              ShortHuman-readable description of the suggested action
              Control0..1
              This element is affected by the following invariants: cds-resp-5
              Typestring
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              544. CDSHooksResponse.systemActions:adjustCoverage.resource
              Definition

              When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields.

              ShortFHIR resource to create/update
              Comments

              Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead.

              Control0..1
              TypeResource
              546. CDSHooksResponse.systemActions:adjustCoverage.resourceId
              Definition

              A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete.

              ShortA relative reference to the relevant resource.
              Control0..1
              Typeurl
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension