From 91faeb033ca5c6cdc16f7102b78f0c6a7354fad2 Mon Sep 17 00:00:00 2001 From: Justin McReynolds Date: Tue, 14 Jan 2025 11:39:22 -0800 Subject: [PATCH] QuestionnaireResponse now displays the URI for the questionnaire, the source if it exists, and the authored datetime. --- .../QuestionnaireResponse.svelte | 34 +++++-------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/src/lib/components/resource-templates/QuestionnaireResponse.svelte b/src/lib/components/resource-templates/QuestionnaireResponse.svelte index 1790a92..5ac2ffb 100644 --- a/src/lib/components/resource-templates/QuestionnaireResponse.svelte +++ b/src/lib/components/resource-templates/QuestionnaireResponse.svelte @@ -18,31 +18,15 @@ } -{#if resource.clinicalStatus || resource.verificationStatus} - - {resource.clinicalStatus?.coding?.[0].code ?? ''} - {resource.clinicalStatus && - resource.verificationStatus - ? '/' - : ''} - {resource.verificationStatus?.coding?.[0].code ?? ''} - -{/if} - - {resource.type ? `${resource.type} - ` : ''} - criticality: {resource.criticality ?? 'unknown'} - -{#if resource.code} - {#if resource.code.coding} - {resource.code.coding[0].system} : {resource.code.coding[0].code} +{resource.questionnaire} +
+Authored: {resource.authored} +{#if resource.source} + {#if resource.source.display} +
+ Source: {resource.source.display} + {:else}
- {#if resource.code.coding[0].display} - {resource.code.coding[0].display}
- {:else if resource.code.text} - {resource.code.text}
- {/if} - {:else if resource.code.text} - {resource.code.text}
+ Source: (unknown) {/if} {/if} -{resource.onsetDateTime ? `Since ${resource.onsetDateTime.split("T")[0]}` : ''}