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

FHIR DocumentReference.type from i2b2 ObservationFact #115

Closed
comorbidity opened this issue Dec 27, 2022 · 1 comment
Closed

FHIR DocumentReference.type from i2b2 ObservationFact #115

comorbidity opened this issue Dec 27, 2022 · 1 comment

Comments

@comorbidity
Copy link
Contributor

actual: DocumentReference.type is entered as "text" , which is removed by DEID and also doesn't include the code.
docref.type = CodeableConcept({'text': str(obsfact.concept_cd)}) # i2b2 Note Type
Expected:
code = obsfact.concept_cd
display = obsfact.TVAL_CHAR
coding = fhir_comon.fhir_coding(None, code, display)
docref.type = CodeableConcept(.... coding ...)

note coding.system is not required
https://build.fhir.org/datatypes-definitions.html#Coding.system

@mikix
Copy link
Contributor

mikix commented Dec 28, 2022

Fixed by #108

@mikix mikix closed this as completed Dec 28, 2022
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

2 participants