Skip to content

Prepopulation of QuestionnaireResponse is including non-conformant extensions from source system #2087

Description

@liambarnes

Describe the bug
When prepopulating answers in a QuestionnaireResponse, if the FHIRpath expression returns an unexpected extension as part of the query, it is being included when populating the answer. For example, if the expression retrieves a coding (e.g. MedicationStatement.code.coding(where.system='http://snomed.info/sct'), that coding may include the Medication Type extension. This is extension is not permitted to be used for QuestionnaireResponse.item.answerCoding.

To Reproduce
Was observed in Inferno. AU Base examples contain this extension and if used for prepop would reproduce.

Expected behavior
Prepopulation service should strip invalid extensions before including the datatype value in the QuestionnaireResponse.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions