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

Capture Patient Telcom information #110

Closed
cragun47 opened this issue Jun 18, 2021 · 1 comment
Closed

Capture Patient Telcom information #110

cragun47 opened this issue Jun 18, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request FIXED

Comments

@cragun47
Copy link
Contributor

cragun47 commented Jun 18, 2021

Describe the bug
Add capability to find and convert the following patient information

To Reproduce
Create a sample HL7V2.6 patient PID segment with aforementioned patient information.

Expected behavior
Patient information should be detected and added to corresponding fields in HL7 FHIR resources.

Examples:

Telcom (both home and work): follow the Extended Telephone Communication XTN format (should allow for multiple)

  "telecom": [
    {
      "system": "phone",
      "value": "(203) 555 6473",
      "use": "home",
      "rank": 1
    },
    {
      "system": "phone",
      "value": "(203) 555 6473",
      "use": "work",
    }
    }
  ],

The following references PID.13, but the same applies to PID.14, or anything of type XTN

  1. Logic for what Data to put into ContactPoint.value:
    Use 13.5, 13.6, and 13.7 if 13.7 if not blank
    else use 13.12 if not blank
    else use 13.1 if not blank
    1. We will not check if these fields have inconsistent information, but use the first one that has data
  2. Format of data in ContactPoint.value:
    1. if using 13.5, 13.6, 13.7, and 13.5 is not blank, format like this:
      (607) 123 4567
    2. if using 13.5, 13.6, 13.7, and 13.5 is blank, format like this:
      +22 607 123 4567
    3. Otherwise take the value as it is (do not alter the format)
  3. We will not use the FHIR extensions at https://build.fhir.org/ig/HL7/v2-to-fhir/ConceptMap-datatype-xtn-to-contactpoint.html
  4. Use 13.18 Preference Order as the rank.
  5. If 13.3 is "CP" then set Patient.telecom.use to "mobile" and Patient.telecom.system to "phone"

Screenshots
N/A

Additional context
Add any other context about the problem here.

@LisaWellman
Copy link
Contributor

In Release 1.0.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request FIXED
Projects
None yet
Development

No branches or pull requests

2 participants