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

Request CDA namespace prefix be added to support Australian CDA transformations #1613

Open
robeastwood-agency opened this issue May 7, 2024 · 0 comments

Comments

@robeastwood-agency
Copy link

robeastwood-agency commented May 7, 2024

The Australian Digital Health Agency is commencing an exploration of transforming FHIR content (ie document bundles) into CDA content, specifically making use of Australian CDA extensions [1]. A working CDA logical model, adapted from the HL7 International CDA Logical Model Specification, is being used to represent the AU CDA extensions as the basis for successful transforms from FHIR Bundles to CDA instances. Transforms are being performed by the Matchbox server as well as the FHIR Validator.

Generated CDA instances however are populated with the namespace prefix ns0 instead of the defined prefix ext; as such:

<ClinicalDocument xmlns="urn:hl7-org:v3"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:ns0="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0"">
  ...
  <ns0:completionCode code="F" codeSystem="1.2.36.1.2001.1001.101.104.20104" displayName="Final"/>
  ...

@oliveregger has indicated that the namespace prefix is controlled by this repo, specifically these lines.

Therefore, this request is to add the following content to support the auto-generation of the Australian namespace extension prefix ext:

if (ns.equals("http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0"))
      return "ext:";

In support of this, I will shortly submit a PR for the above changes.

Thank you

Notes
[1] - https://developer.digitalhealth.gov.au/resources/australian-digital-health-agency-cda-schema-extension-3-0-cda-schema-v20201203

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

No branches or pull requests

1 participant