We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 65b0cdc + 1806ec8 commit f212e8fCopy full SHA for f212e8f
src/lib/SHX.js
@@ -169,10 +169,11 @@ async function _verifySHX(shx, passcode) {
169
}
170
// Check if the 'section' field is missing or empty in each FHIR bundle
171
statusObj.bundles.forEach(bundle => {
172
- if (!bundle.fhir || !bundle.fhir.entry || !bundle.fhir.entry.some(entry => entry.resource && entry.resource.section)) {
173
- throw new DataMissingError("The provided Smart Health Link does not contain any healthcare data.");
+ if (!bundle.fhir || !bundle.fhir.entry) {
+ throw new DataMissingError("The provided Smart Health Link does not contain any data.");
174
175
});
176
+
177
// build up our organized resources
178
const labelCounters = { };
179
for (const i in statusObj.bundles) {
0 commit comments