We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56fb69f commit 49f83fbCopy full SHA for 49f83fb
src/lib/FetchAD.svelte
@@ -203,6 +203,13 @@
203
if (resources.length === 0) {
204
console.warn("No advance directives found for patient "+patient.id);
205
}
206
+
207
+ // If resource.category doesn't exist, ignore the DR - DR's w/out that are simply signature DR's.
208
+ // Lambda function to check if resource.category exists
209
+ const nonSignatureDR = dr => dr.category !== undefined;
210
+ // Filter out resources that don't have a category
211
+ resources = resources.filter(nonSignatureDR);
212
213
resources.unshift(patient);
214
215
result = {
0 commit comments