Skip to content

Commit

Permalink
lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljohanneskraft committed Dec 7, 2024
1 parent 09941ce commit fb17937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/models/src/fhir/fhirQuestionnaireResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface FHIRQuestionnaireResponseItemValue
typeof fhirQuestionnaireResponseItemBaseConverter.value.schema
> {
item?:
| z.input<typeof fhirQuestionnaireResponseItemConverter.value.schema>[]
| Array<z.input<typeof fhirQuestionnaireResponseItemConverter.value.schema>>
| null
| undefined
}
Expand Down Expand Up @@ -338,7 +338,7 @@ export class FHIRQuestionnaireResponse extends FHIRResource {
item: FHIRQuestionnaireResponseItem,
linkId: string,
): number {
const answers = item?.answer ?? []
const answers = item.answer ?? []
if (answers.length !== 1)
throw new Error(`Zero or multiple answers found for linkId ${linkId}.`)
const code = answers[0].valueCoding?.code
Expand Down

0 comments on commit fb17937

Please sign in to comment.