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

WIP: don't simply toss extensions #347

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

WIP: don't simply toss extensions #347

wants to merge 1 commit into from

Conversation

mikix
Copy link
Contributor

@mikix mikix commented Sep 10, 2024

Extremely not ready - just dropping this here as a step forward when I pick this up again.

TODO: it doesn't seem fully wise to simply erase the contents of an extension - maybe we should mark that we redacted it, for the future. There's a Meta.security way of doing that (which we normally strip out of resources) or... throw a valueString of "cumulus wuz here" in there... needs a think.

Fixes #346

Checklist

  • Consider if documentation (like in docs/) needs to be updated
  • Consider if tests should be added

- Print a report at the end of the ETL run of all extensions stripped
  by resource, URL, and count.
- Plus a report on resources skipped due to unrecognized modifier
  extensions.
- Leave stub extension in place, with just the `url` field, so that
  we can inspect stripped extensions in SQL if we want.

Allow the following new extensions:
- http://hl7.org/fhir/StructureDefinition/data-absent-reason
- http://hl7.org/fhir/StructureDefinition/derivation-reference
- http://hl7.org/fhir/StructureDefinition/event-performerFunction
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-jurisdiction
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication-
  adherence
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-sex
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-tribal-
  affiliation
- https://fhir-ehr.cerner.com/r4/StructureDefinition/client-
  organization
- https://fhir-ehr.cerner.com/r4/StructureDefinition/precision

Ignore the following extensions:
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct
- https://fhir-ehr.cerner.com/r4/StructureDefinition/estimated-
  financial-responsibility-amount

Drop support for the following extension:
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-sex-for-
  clinical-use (this was in US Core 6.0 ballot, but didn't make final
  cut - it seems to be replaced by just 'us-core-sex')
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

Successfully merging this pull request may close these issues.

Print extensions and modifierExtensions before stripping them
1 participant