Skip to content

Commit

Permalink
Add test interpretation and interp code to extended schema saving (#3073
Browse files Browse the repository at this point in the history
)

* add interpretation and interpretation code to extended sqlserver saving

* remove old comments
  • Loading branch information
gordonfarrell authored Dec 19, 2024
1 parent 77db6a9 commit fe69608
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,20 @@ export const saveMetadataToSqlServer = async (
sql.VarChar(50),
lab.test_result_code_system,
)
.input("test_result_interpretation", sql.VarChar(255), null) // Not implemented
.input("test_result_interpretation_code", sql.VarChar(50), null) // Not implemented
.input(
"test_result_interpretation",
sql.VarChar(255),
lab.test_result_interpretation,
)
.input(
"test_result_interpretation_code",
sql.VarChar(50),
lab.test_result_interpretation_code,
)
.input(
"test_result_interpretation_system",
sql.VarChar(255),
lab.test_result_interp_system,
lab.test_result_interpretation_system,
)
.input(
"test_result_ref_range_low_value",
Expand Down
4 changes: 3 additions & 1 deletion containers/ecr-viewer/src/app/api/save-fhir-data/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ interface Lab {
test_result_code: string | undefined;
test_result_code_display: string | undefined;
test_result_code_system: string | undefined;
test_result_interp_system: string | undefined;
test_result_interpretation: string | undefined;
test_result_interpretation_code: string | undefined;
test_result_interpretation_system: string | undefined;
test_result_ref_range_low: string | undefined;
test_result_ref_range_low_units: string | undefined;
test_result_ref_range_high: string | undefined;
Expand Down
6 changes: 3 additions & 3 deletions containers/message-parser/app/default_schemas/extended.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,17 @@
"data_type": "string",
"nullable": true
},
"test_result_interp": {
"test_result_interpretation": {
"fhir_path": "Observation.interpretation.coding.display",
"data_type": "string",
"nullable": true
},
"test_result_interp_code": {
"test_result_interpretation_code": {
"fhir_path": "Observation.interpretation.coding.code",
"data_type": "string",
"nullable": true
},
"test_result_interp_system": {
"test_result_interpretation_system": {
"fhir_path": "Observation.interpretation.coding.system",
"data_type": "string",
"nullable": true
Expand Down

0 comments on commit fe69608

Please sign in to comment.