Skip to content

Commit 3a6ed8a

Browse files
committed
modifying primarysource field and unit test fixes
1 parent c60d0c8 commit 3a6ed8a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

delta_backend/tests/sample_data/fhir_sample.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"coding": [
4747
{
4848
"system": "http://snomed.info/sct",
49-
"code": "abletimes",
49+
"code": "1324681000000101",
5050
"display": "Administration of first dose of severe acute respiratory syndrome coronavirus 2 vaccine (procedure)"
5151
}
5252
]
@@ -131,7 +131,7 @@
131131
{
132132
"coding": [
133133
{
134-
"code": "nauthgy",
134+
"code": "443684005",
135135
"system": "http://snomed.info/sct"
136136
}
137137
]

delta_backend/tests/utils_for_converter_tests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ValuesForTests:
5555
"patient": {"reference": "#Pat1"},
5656
"occurrenceDateTime": "2021-02-07T13:28:17+00:00",
5757
"recorded": "2021-02-07T13:28:17+00:00",
58-
"primarySource": "true",
58+
"primarySource": True,
5959
"manufacturer": {"display": "AstraZeneca Ltd"},
6060
"location": {
6161
"type": "Location",
@@ -184,7 +184,7 @@ def get_expected_imms(expected_action_flag):
184184
"PERFORMING_PROFESSIONAL_FORENAME": "Florence",
185185
"PERFORMING_PROFESSIONAL_SURNAME": "Nightingale",
186186
"RECORDED_DATE": "20210207",
187-
"PRIMARY_SOURCE": "true",
187+
"PRIMARY_SOURCE": True,
188188
"VACCINATION_PROCEDURE_CODE": "13246814444444",
189189
"VACCINATION_PROCEDURE_TERM": "Administration of first dose of severe acute respiratory syndrome coronavirus 2 vaccine (procedure)",
190190
"DOSE_SEQUENCE": 1,
@@ -223,7 +223,7 @@ def get_expected_imms(expected_action_flag):
223223
"PERFORMING_PROFESSIONAL_FORENAME": "Florence",
224224
"PERFORMING_PROFESSIONAL_SURNAME": "Nightingale",
225225
"RECORDED_DATE": "20210207",
226-
"PRIMARY_SOURCE": "true",
226+
"PRIMARY_SOURCE": True,
227227
"VACCINATION_PROCEDURE_CODE": "13246814444444",
228228
"VACCINATION_PROCEDURE_TERM": "Administration of first dose of severe acute respiratory syndrome coronavirus 2 vaccine (procedure)",
229229
"DOSE_SEQUENCE": 1,
@@ -294,7 +294,7 @@ class ErrorValuesForTests:
294294
"patient": {"reference": "#Pat1"},
295295
"occurrenceDateTime": "2021-02-07T13:28:17+00:00",
296296
"recorded": "2021-02-07T13:28:17+00:00",
297-
"primarySource": "true",
297+
"primarySource": "True",
298298
"manufacturer": {"display": "AstraZeneca Ltd"},
299299
"location": {
300300
"type": "Location",
@@ -376,7 +376,7 @@ def get_expected_imms_error_output(expected_action_flag):
376376
"PERFORMING_PROFESSIONAL_FORENAME": "Florence",
377377
"PERFORMING_PROFESSIONAL_SURNAME": "Nightingale",
378378
"RECORDED_DATE": "20210207",
379-
"PRIMARY_SOURCE": "true",
379+
"PRIMARY_SOURCE": True,
380380
"VACCINATION_PROCEDURE_CODE": "13246814444444",
381381
"VACCINATION_PROCEDURE_TERM": "Administration of first dose of severe acute respiratory syndrome coronavirus 2 vaccine (procedure)",
382382
"DOSE_SEQUENCE": 1,

0 commit comments

Comments
 (0)