Skip to content

Commit

Permalink
fixing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Apr 30, 2023
1 parent 9523e5c commit 41dc78d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class ReportMedicalHistoryExplanationOfBenefitComponent implements OnInit
this.eobDisplayModel.procedures?.forEach((procedure) => {
let procedureModel = new ProcedureModel({})
procedureModel.performed_datetime = procedure.date
procedureModel.coding = procedure.procedureCodeableConcept.coding?.[0]
procedureModel.coding = procedure.procedureCodeableConcept.coding
procedureModel.display = procedure.procedureCodeableConcept.text || procedure.procedureCodeableConcept.coding?.[0]?.display
this.procedures.push(procedureModel)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ describe('DiagnosticReportModel', () => {
{ system: 'http://snomed.info/sct', code: '252275004', display: 'Haematology test' },
{ system: 'http://hl7.org/fhir/v2/0074', code: 'HM' }
]
expected.code_coding = [
{ system: 'http://loinc.org', code: '58410-2', display: 'Complete blood count (hemogram) panel - Blood by Automated count' }
]
expected.has_category_coding = true
expected.has_performer = true
expected.conclusion = 'Core lab'
Expand Down

0 comments on commit 41dc78d

Please sign in to comment.