Skip to content

Commit

Permalink
QuestionnaireResponse now displays the URI for the questionnaire, the
Browse files Browse the repository at this point in the history
source if it exists, and the authored datetime.
  • Loading branch information
mcjustin committed Jan 14, 2025
1 parent 6dd54dd commit 91faeb0
Showing 1 changed file with 9 additions and 25 deletions.
34 changes: 9 additions & 25 deletions src/lib/components/resource-templates/QuestionnaireResponse.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,15 @@
}
</script>

{#if resource.clinicalStatus || resource.verificationStatus}
<Badge color="primary">
{resource.clinicalStatus?.coding?.[0].code ?? ''}
{resource.clinicalStatus &&
resource.verificationStatus
? '/'
: ''}
{resource.verificationStatus?.coding?.[0].code ?? ''}
</Badge>
{/if}
<Badge color={badgeColor(resource.criticality ?? '')}>
{resource.type ? `${resource.type} - ` : ''}
criticality: {resource.criticality ?? 'unknown'}
</Badge>
{#if resource.code}
{#if resource.code.coding}
<Badge color="primary">{resource.code.coding[0].system} : {resource.code.coding[0].code}</Badge>
<strong>{resource.questionnaire}</strong>
<br />
Authored: {resource.authored}
{#if resource.source}
{#if resource.source.display}
<br />
Source: {resource.source.display}
{:else}
<br />
{#if resource.code.coding[0].display}
<strong>{resource.code.coding[0].display}</strong><br>
{:else if resource.code.text}
<strong>{resource.code.text}</strong><br>
{/if}
{:else if resource.code.text}
<strong>{resource.code.text}</strong><br>
Source: (unknown)
{/if}
{/if}
{resource.onsetDateTime ? `Since ${resource.onsetDateTime.split("T")[0]}` : ''}

0 comments on commit 91faeb0

Please sign in to comment.