Skip to content

Commit

Permalink
Check if resourceType does not have searh params (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsaperelli authored Oct 31, 2023
1 parent 83b7eb3 commit 40b26fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/DataRequirementHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export function addFhirQueryPatternToDataRequirements(dataRequirement: fhir4.Dat
}

// Create an extension for each way that exists for referencing the patient
(<any>PatientParameters)[dataRequirement.type].forEach((patientContext: string) => {
(<any>PatientParameters)[dataRequirement.type]?.forEach((patientContext: string) => {
const fhirPathExtension: Extension = {
url: FHIR_QUERY_PATTERN_URL,
valueString: queryString.concat(`${patientContext}=Patient/{{context.patientId}}`)
Expand Down

0 comments on commit 40b26fb

Please sign in to comment.