Skip to content

Commit

Permalink
Add extension into test
Browse files Browse the repository at this point in the history
  • Loading branch information
pipliggins committed Aug 7, 2024
1 parent 1815387 commit e721389
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Binary file modified tests/data/diagnosticreport_flat.parquet
Binary file not shown.
18 changes: 18 additions & 0 deletions tests/test_diagnosticreport_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"value": "nr1239044",
}
],
"extension": [
{
"url": "timingPhase",
"valueCodeableConcept": {
"coding": [{"system": "timing.com", "code": "1234"}]
},
},
],
"basedOn": [{"reference": "ServiceRequest/req"}],
"status": "final",
"category": [
Expand Down Expand Up @@ -89,11 +97,21 @@
"code.code": ["http://loinc.org|58410-2"],
"code.text": ["Complete blood count (hemogram) panel - Blood by Automated count"],
"subject": "Patient/f001",
"extension.timingPhase.code": "timing.com|1234",
"extension.timingPhase.text": None,
}

DICT_OUT = {
"resourceType": "DiagnosticReport",
"id": "f001",
"extension": [
{
"url": "timingPhase",
"valueCodeableConcept": {
"coding": [{"system": "timing.com", "code": "1234"}]
},
},
],
"basedOn": [{"reference": "ServiceRequest/req"}],
"status": "final",
"category": [
Expand Down

0 comments on commit e721389

Please sign in to comment.