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

HL7CDA #905

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

HL7CDA #905

wants to merge 15 commits into from

Conversation

md0u80c9
Copy link
Member

@md0u80c9 md0u80c9 commented Jan 28, 2017

Early HL7 CDA Support for ResearchKit

This PR adds some early support to produce HL7 CDA documents to ResearchKit applications.

The resulting documents can be easily imported to the Health app - so the user can store the results of their ResearchKit apps, print them, and share them with their physicians.

For researchers, the aim will be to work towards coding results with ResearchKit using SNOMED - so that results can be encapsulated into a document which is equally usable to patients, clinicians and researchers.

This PR focusses on trying to achieve a minimum working framework from which further development can occur.

A number of ORKResult types can generate by default results which are added into the result section of a document.

ORKSteps can insert text into any section of a document by using the hl7cda property, which can also be used to override any default results being produced by a step - there is an example of this in the Scales task in ORKTask. If you complete an ORKTask such as scales, for now ORKTest will produce the XML in debug - this can be copied and pasted into a text editor and passed to a validation tool, or you can send it to Health to upload into your own documents.

For now we are only creating the human-readable portions of the document - the coding will come later.

The framework allows us to generate any type of HL7 CDA document - for now only Continuity of Care Documents and Consultation Notes are defined.

Areas which need work (contributions welcomed!)

  • UI work for adding the documents to Health (or emailing them out or whatever the user wants to do with them).
  • Check the XML carefully - things like the id stuff are a bit fiendish so please check them for correctness.
  • We will need to add support to all ORKResult types and active tasks. I haven’t done them all. Most should be simple, but testing etc takes quite a while!
  • Update other ORKTest examples to produce sample documents to check their outputs.
  • Add in support for the other HL7 CDA types.
  • Begin work on SNOMED coding support.

# Conflicts:
#	ResearchKit.xcodeproj/project.pbxproj
#	ResearchKit/Common/ORKResult.h
#	ResearchKit/Common/ORKResult.m
#	ResearchKit/ResearchKit.h
…pleted information - skip optional sections unless they have content.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants