Skip to content

Commit

Permalink
Resolve errors related to converting/uploading eCR FHIR messages (#578)
Browse files Browse the repository at this point in the history
Updated templates to handle the MedicationStatement.statusCode properly as well as the diagnosticReport.code
  • Loading branch information
BradySkylight authored May 17, 2023
1 parent 81fcbbb commit 52bfda6
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"status":"{{ diagnosticReport.statusCode.code | get_property: 'ValueSet/DiagnosticReportStatus' }}",
"code":
{
{% if diagReport.code.translation -%}
{% if diagnosticReport.code.translation -%}
{% include 'DataType/CodeableConcept' CodeableConcept: diagnosticReport.code.translation -%}
{% endif -%}
{% if diagReport.code.translation == null -%}
{% if diagnosticReport.code.translation == null and diagnosticReport.code -%}
{% include 'DataType/CodeableConcept' CodeableConcept: diagnosticReport.code -%}
{% endif -%}
},
Expand Down
34 changes: 32 additions & 2 deletions containers/fhir-converter/Templates/eCR/ValueSet/ValueSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,38 @@
"aborted": {
"code": "stopped"
},
"active": {
"code": "active"
},
"completed": {
"code": "completed"
},
"entered-in-error": {
"code": "entered-in-error"
},
"intended": {
"code": "intended"
},
"stopped": {
"code": "stopped"
},
"on-hold": {
"code": "on-hold"
},
"unknown": {
"code": "unknown"
},
"not-taken": {
"code": "not-taken"
},
"draft": {
"code": "draft"
},
"recorded": {
"code": "recorded"
},
"__default__": {
"code": ""
"code": "unknown"
}
},
"ValueSet/NameUse": {
Expand Down Expand Up @@ -494,4 +524,4 @@
}
}
}
}
}

0 comments on commit 52bfda6

Please sign in to comment.