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

Import XML versions of compiled CQL Libraries #1423

Closed
vitorpamplona opened this issue May 26, 2022 · 1 comment · Fixed by cqframework/clinical_quality_language#752
Closed
Assignees
Labels
effort:small Small effort - 2 days P2 Medium priority issue

Comments

@vitorpamplona
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
FHIR allows CQL Library makers to expose their libraries as complied ELM objects exported to JSON and XML. While JSON libraries can easily be imported with Jackson, the XML versions of the same libraries historically required JAXB to import. JAXB is not available on Android.

For example, the FHIR Helpers library is exposed as:

"resource": {
  "resourceType": "Library",
  "id": "library-FHIRHelpers-4.0.0",
  "version": "4.0.0",
  "name": "FHIRHelpers",
  "status": "active",
  "experimental": true,
  "type": {
    "coding": [
      {
        "system": "https://hl7.org/fhir/codesystem-library-type.html",
        "code": "logic-library"
      }
    ]
  },
  "content": [
    {
      "contentType": "application/elm+xml",
      "data": "Base64 Content"
    }
 ]
}

there the Base64 Content contains an XML version of the ELM encoded as Base64

Describe the solution you'd like
Remove JAXB dependencies to import and export ELM Libraries from the CQL Translator and use Jackson's XML Parser instead.

Describe alternatives you've considered
We have tested bringing JAXB libraries to Android, but Jackson seems to have a brighter future.

Additional context

Would you like to work on the issue?
Yes.

@vitorpamplona
Copy link
Collaborator Author

Fixed on #1603

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort:small Small effort - 2 days P2 Medium priority issue
Projects
Status: Complete
Development

Successfully merging a pull request may close this issue.

3 participants