Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Conversion of the Aidbox format questionnaire into FHIR-compliant format (launchContext) #558

Open
atuonufure opened this issue Apr 14, 2023 · 1 comment
Labels

Comments

@atuonufure
Copy link

Describe the bug
When converting a questionnaire from Aidbox format to FHIR, LaunchContext does not match the FHIR standard.

Severity
Critical

Steps to reproduce the behavior:
Sample questionnaire: https://github.com/beda-software/fhir-emr/blob/5d9f5de88c66af6201c2841ddae6320884670711/resources/seeds/Questionnaire/allergies.yaml#L15

Sample launchContext:

launchContext:
    - name:
          code: Patient
      type: 
        - Patient
    - name:
          code: Author
      type: 
        - Resource

LaunchContext in zen profile: https://github.com/beda-software/fhir-emr/blob/5d9f5de88c66af6201c2841ddae6320884670711/zenproject/zrc/questionnaire-profile.edn#L87

In Aidbox, open the questionnaire and try to convert it from Aidbox format to FHIR.

We get the questionnaire with launchContext in a format that does not conform to the FHIR standard.

Expected behavior
Conversion of the Aidbox format questionnaire into FHIR-compliant format.

Versions:

  • Aidbox image version:
  • version "2303"
  • channel "latest"
  • commit "0336bd87a"
@atuonufure atuonufure added the bug label Apr 14, 2023
@ir4y
Copy link
Member

ir4y commented Apr 16, 2023

Now Aidbox converts launch context to

extension:
  - url: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext
    type:
      - Patient
    extension:
      - url: name
        valueCoding:
          code: Patient

While it should be

extension:
  - url: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext
    extension:
      - url: name
        valueCoding:
          code: Patient
      - url: type
        valueCode : Patient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants