FHIR SDC API
This article outlines operations from the FHIR SDC Implementation Guide.
Last updated
Was this helpful?
This article outlines operations from the FHIR SDC Implementation Guide.
Last updated
Was this helpful?
Implementation corresponds to
Aidbox Forms module supports FHIR SDC operations:
- filling out a form with existing data ()
- filling out a form with existing data, and return signed link to it ()
- extract data from QuestionnaireResponse to other FHIR resources ()
- create a simple collection of codes suitable for use for data entry or validation. ()
We have created an demonstrating different population and extraction methods
We have created an demonstrating different population and extraction methods:
The operation generates a based on a specific , filling in answers to questions where possible based on information provided as part of the operation or already known by the server about the subject of the Questionnaire.
This implementation supports the and population methods.
0..1
supported
0..1
supported
0..1
supported
0..1
supported
1..1
supported
0..*
supported
1..1
supported
1..*
supported
0..1
supported
0..1
not supported
Example
A logical questionnaire identifier (i.e. Questionnaire.identifier). The server must know the questionnaire or be able to retrieve it from other known repositories.
The canonical identifier for the questionnaire (optionally version-specific).
The Questionnaire is provided directly as part of the request. Servers may choose not to accept questionnaires in this fashion
The Questionnaire is provided as a resource reference. Servers may choose not to accept questionnaires in this fashion or may fail if they cannot resolve or access the referenced questionnaire.
The resource that is to be the QuestionnaireResponse.subject. The QuestionnaireResponse instance will reference the provided subject. In addition, if the local parameter is set to true, server information about the specified subject will be used to populate the instance.
If specified and set to true (and the server is capable), the server should use what resources and other knowledge it has about the referenced subject when pre-populating answers to questions.
Resources containing information to be used to help populate the QuestionnaireResponse. These will typically be FHIR resources.
Context paramertes are presented as pairs of name
and content
parameters that are placed under the part
key.
They should correspond launchContext parameter definitions.
patient
Patient Patient in context at launch time
encounter
Encounter context at launch time
location
Location context at launch time
user
User in context at launch time
study
ResearchStudy in context at launch time
WARN: This is non FHIR SDC compliant behavior!
identifier
basedOn
partOf
encounter
author
source
Example:
The name of the launchContext or root Questionnaire variable the passed content should be used as for population purposes. The name SHALL correspond to a launchContext or variable delared at the root of the Questionnaire.
The actual resource (or resources) to use as the value of the launchContext or variable.
Or
Resources that provide context for form processing logic (pre-population) when creating/displaying/editing a QuestionnaireResponse.
Success response shape
response
1..1
The partially (or fully)-populated set of answers for the specified Questionnaire
issues
0..1
A list of hints and warnings about problems encountered while populating the questionnaire.
WARN: The following parameters are not FHIR SDC compliant. This is an extension of the specification.
NOTE: Don't forget to wrap parameters in Parameters object
0..1
0..1
0..1
0..1
0..1
0..1
0..1
0..1
0..1
Whether the generated link will allow amending and re-submitting the form.
Whether the generated link will allow re-populating the form.
NOTE: Repopulate will be working only with forms that contain populate behavior
A URL where the user will be redirected to after successfully submitting the form.
A URL where the user will be redirected to after hitting Save button.
By default
Save button is not visible
- form autosaved after every keystroke. But sometimes it's usefull to close form in a partially-filled state
Link expiration period (days)
By default thir parameter = 7 days
Form theme. QuestionnaireTheme resource id.
Form config. SDCConfig resource id.
Open form in read-only mode.
Application name that will be used in Audit logging when returned link was used.
link
1..1
The URL for the web form that supports capturing the information defined by questionnaire
issues
0..1
A list of hints and warnings about problems encountered while populating the questionnaire
questionnaire-response
0..1
The QuestionnaireResponse to extract data from.
Example
return
1..1
FHIR Bundle with extracted resources
issues
0..1
A list of hints and warnings about problems encountered while extracting the data
Value Sets are used to define possible coded answer choices in a questionnaire.
The use of standardized codes is useful when data needs to be populated into the questionnaire or extracted from the questionnaire for other uses.
The expand
operation expand given ValueSet in to set of concepts.
Parameters are specified via FHIR type.
FHIR SDC launchContext extension possible context variables, they are:
/resource
/resource
/resource
/resource
/resource
Additionnaly Aidbox expands this list with parameters that mirrors root properties.
Paramerters passed directly to root properties and should not be used in populate expressions.
in failure case - response is specified as object.
in success case - response is specified as object.
The operation generates a link to a web page to be used to answer a specified . The form at the specified location will be pre-filled with answers to questions where possible based on information provided as part of the operation or already known by the server about the subject of the Questionnaire.
The base set of parameters is the same as for . On top of that, a few extra parameters are supported by Aidbox Forms.
Audit logging should be enabled via
in failure case - response is specified as object containing a link.
in success case - response is specified as object containing a list of issues.
The operation takes a completed QuestionnaireResponse
and extracts it's data to Bundle
of resources by using metadata embedded in the Questionnaire
the QuestionnaireResponse
is based on. The extracted resources might include Observations
, MedicationStatements and other standard FHIR resources which can then be shared and manipulated.
Aidbox supports only the and extraction methods.
In the future, Aidbox Forms will align with the implementation described in the .
Parameters are specified via FHIR type.
in failure case - response is specified as object.
in success case - response is specified as object.
This operation is described in detail .