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

BFD-3818: IDR-based mapping of Patient resource using FHIR Mapping Language #2541

Merged
merged 22 commits into from
Feb 6, 2025

Conversation

alex-dzeda
Copy link
Contributor

@alex-dzeda alex-dzeda commented Feb 4, 2025

JIRA Ticket:
BFD-3818

What Does This PR Do?

This PR builds off BFD-3817 and updates the StructureDefinitions to allow for a complete mapping of the Patient resource using IDR columns. Of note, the race/ethnicity conceptmap structure is messy; the FHIR Validator does not want to play nice on the ConceptMap translation, and this is a point for future improvement (ideally, we could consolidate this significantly by passing the source value in and getting a complete coding, but the use of extensions complicates this due to the validator assuming the slicing.)

What Should Reviewers Watch For?

If you're reviewing this PR, please check for these things in particular:

Really, the biggest concerns may revolve around syntax and directory structure. If there's a foreseen problem, please speak up!

What Security Implications Does This PR Have?

Please indicate if this PR does any of the following:

  • Adds any new software dependencies

  • Modifies any security controls

  • Adds new transmission or storage of data

  • Any other changes that could possibly affect security?

  • I have considered the above security implications as it relates to this PR. (If one or more of the above apply, it cannot be merged without the ISSO or team security engineer's (@sb-benohe) approval.)

Validation

Have you fully verified and tested these changes? Is the acceptance criteria met? Please provide reproducible testing instructions, code snippets, or screenshots as applicable.

Following the instructions in the README allows one to

  1. Generate a StructureMap
  2. Execute the StructureMap and transform the base resource to FHIR
  3. Validate the resultant FHIR Patient resource against the target implementation guides.

Example Output Resource:
{ "resourceType" : "Patient", "id" : "123456789", "meta" : { "lastUpdated" : "2020-01-07T03:02:28.000000Z", "profile" : ["http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Patient|2.0.0", "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|3.1.1"] }, "extension" : [{ "extension" : [{ "url" : "ombCategory", "valueCoding" : { "system" : "urn:oid:2.16.840.1.113883.6.238", "code" : "2135-2", "display" : "Hispanic or Latino" } }, { "url" : "text", "valueString" : "Hispanic or Latino" }], "url" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" }], "identifier" : [{ "type" : { "coding" : [{ "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", "code" : "MB" }] }, "system" : "http://hl7.org/fhir/sid/us-mbi", "value" : "AAA1AA0AA11", "period" : { "start" : "2017-05-11", "end" : "2017-07-01" } }, { "type" : { "coding" : [{ "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", "code" : "MB" }] }, "system" : "http://hl7.org/fhir/sid/us-mbi", "value" : "ABB2BB0BB22", "period" : { "start" : "2017-07-02" } }], "name" : [{ "family" : "Sheep", "given" : ["Frankie", "Le Petit Prince"] }], "telecom" : [{ "system" : "phone", "value" : "1-800-MEDICARE", "use" : "home" }], "gender" : "female", "birthDate" : "1995-03-11", "deceasedDateTime" : "2024-03-11", "address" : [{ "line" : ["600 John Kimbrough Blvd", "TEST for line 2"], "city" : "College Station", "state" : "TX", "postalCode" : "77843" }], "link" : [{ "other" : { "reference" : "Patient/234567891", "display" : "234567891" }, "type" : "replaces" }] }

@alex-dzeda alex-dzeda marked this pull request as ready for review February 5, 2025 13:58
@mjburling mjburling enabled auto-merge (squash) February 6, 2025 20:37
@mjburling mjburling merged commit 3cc7ece into master Feb 6, 2025
7 checks passed
@mjburling mjburling deleted the alex/bfd-3818 branch February 6, 2025 20:37
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.

3 participants