File tree 1 file changed +32
-4
lines changed
src/lib/resource-templates
1 file changed +32
-4
lines changed Original file line number Diff line number Diff line change 2
2
export let resource; // Define a prop to pass the data to the component
3
3
</script >
4
4
5
+ <!--
5
6
Type: {resource.resourceType}
6
7
<br />
7
8
Text:
@@ -11,15 +12,42 @@ Text:
11
12
<i>No text provided in resource</i>
12
13
{/if}
13
14
<br />
15
+ -->
16
+
14
17
Category:
15
18
{#if resource .category && resource .category [0 ] && resource .category [0 ].coding && resource .category [0 ].coding [0 ]}
16
- {resource .category [0 ].coding [0 ].display }
19
+ {resource .category [0 ].coding [0 ].display } (LOINC {resource .category [0 ].coding [0 ].code })
20
+ {/if }
21
+ <br />
22
+ Type:
23
+ <!-- 42348-3 is for "Advance Directive"; per cthon, it's presence here is redundant w/ category above. -->
24
+ {#if resource .type && resource .type .coding && resource .type .coding [0 ] && resource .type .coding [0 ].code != ' 42348-3' }
25
+ {resource .type .coding [0 ].display } (LOINC {resource .type .coding [0 ].code })
26
+ {/if }
27
+ {#if resource .type && resource .type .coding && resource .type .coding [1 ] && resource .type .coding [1 ].code != ' 42348-3' }
28
+ {resource .type .coding [1 ].display } (LOINC {resource .type .coding [1 ].code }).
29
+ {/if }
30
+ <br />
31
+ Description:
32
+ {#if resource .description }
33
+ {resource .description }
17
34
{/if }
18
35
<br />
19
- Intent :
20
- {#if resource .provision && resource . provision . code && resource . provision . code [ 0 ] && resource . provision . code [ 0 ]. coding && resource . provision . code [ 0 ]. coding [ 0 ] }
21
- {resource .provision . code [ 0 ]. coding [ 0 ]. display }
36
+ Date :
37
+ {#if resource .date }
38
+ {resource .date }
22
39
{/if }
40
+ <br />
41
+ Status:
42
+ {#if resource .status }
43
+ {resource .status }
44
+ {/if }
45
+ <br />
46
+ docStatus:
47
+ {#if resource .docStatus }
48
+ {resource .docStatus }
49
+ {/if }
50
+ <br />
23
51
{#if resource .description && resource .description .text }
24
52
{resource .description .text }
25
53
{/if }
You can’t perform that action at this time.
0 commit comments