Skip to content

Commit d8793c0

Browse files
authored
Update src/helpers/contextUtils.js
1 parent 3c3c470 commit d8793c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/contextUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { getBundleResourcesByType } = require('./fhirUtils');
44
async function getPatientFromContext(mrn, context) {
55
const patientInContext = getBundleResourcesByType(context, 'Patient', {}, true);
66
if (!patientInContext) {
7-
throw Error('Could not find a patient in context');
7+
throw Error('Could not find a patient in context; ensure that a PatientExtractor is used earlier in your extraction configuration');
88
}
99
logger.debug('Patient resource found in context.');
1010
return patientInContext;

0 commit comments

Comments
 (0)