Skip to content

Commit 21a5706

Browse files
committed
update comment
1 parent 0e9a41d commit 21a5706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utils/lib/helpers/labs/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ export const getTestNameFromDr = (dr: DiagnosticReport): string | undefined => {
169169
const testName =
170170
dr.code.coding?.find((temp) => temp.system === OYSTEHR_LAB_OI_CODE_SYSTEM)?.display ||
171171
dr.code.coding?.find((temp) => temp.system === 'http://loinc.org')?.display ||
172-
dr.code.coding?.find((temp) => temp.system?.endsWith(DEFAULT_OYSTEHR_LABS_HL7_SYSTEM))?.display;
172+
dr.code.coding?.find((temp) => temp.system?.endsWith(DEFAULT_OYSTEHR_LABS_HL7_SYSTEM))?.display; // Oystehr postfixes any system it doesn't recognize with this HL7 system string, so this ensures we still pull the value
173173
return testName;
174174
};
175175

176176
export const getTestItemCodeFromDr = (diagnosticReport: DiagnosticReport): string | undefined => {
177177
const testItemCode =
178178
diagnosticReport.code.coding?.find((temp) => temp.system === OYSTEHR_LAB_OI_CODE_SYSTEM)?.code ||
179179
diagnosticReport.code.coding?.find((temp) => temp.system === 'http://loinc.org')?.code ||
180-
diagnosticReport.code.coding?.find((temp) => temp.system?.endsWith(DEFAULT_OYSTEHR_LABS_HL7_SYSTEM))?.code;
180+
diagnosticReport.code.coding?.find((temp) => temp.system?.endsWith(DEFAULT_OYSTEHR_LABS_HL7_SYSTEM))?.code; // Oystehr postfixes any system it doesn't recognize with this HL7 system string, so this ensures we still pull the value
181181
return testItemCode;
182182
};
183183

0 commit comments

Comments
 (0)