expand export summary.
This commit is contained in:
parent
907c9be8e2
commit
55509c9a92
|
@ -19,19 +19,16 @@ Planned End: CarePlan.period.end
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<th:block th:each="entry : ${resource.entry}" th:object="${entry.getResource()}">
|
{{- /*gotype: github.com/fastenhealth/fasten-onprem/backend/pkg/utils/ips.NarrativeTemplateData*/ -}}
|
||||||
<th:block th:unless='*{getResourceType().name() == "Composition"}'>
|
{{range $index, $entry := .CarePlan }}
|
||||||
<th:block th:with="extension=${entry.getResource().getExtensionByUrl('http://hl7.org/fhir/StructureDefinition/narrativeLink').getValue().getValue()}">
|
<tr id="{{$entry.SourceResourceID}}">
|
||||||
<tr th:id="${#strings.arraySplit(extension, '#')[1]}">
|
<td th:text="*{getDescription()}">Activity</td>
|
||||||
<td th:text="*{getDescription()}">Activity</td>
|
<td>{{pluckList "code" ($entry.Intent | parseList) | uniq | join "," }}</td> {{/* Intent */}}
|
||||||
<td th:text="*{getIntent().toCode()}">Intent</td>
|
<td th:insert="~{IpsUtilityFragments :: concat (list=*{getNote()},attr='text')}">Comments</td>
|
||||||
<td th:insert="~{IpsUtilityFragments :: concat (list=*{getNote()},attr='text')}">Comments</td>
|
<td>{{.$entry.Date}}</td>{{/* Planned Start */}}
|
||||||
<td th:text="*{getPeriod().getStartElement().getValue()}">Planned Start</td>
|
<td th:text="*{getPeriod().getEndElement().getValue()}">Planned End</td>
|
||||||
<td th:text="*{getPeriod().getEndElement().getValue()}">Planned End</td>
|
</tr>
|
||||||
</tr>
|
{{end}}
|
||||||
</th:block>
|
|
||||||
</th:block>
|
|
||||||
</th:block>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -17,18 +17,25 @@ Date: Observation.effectiveDateTime || Observation.effectivePeriod.start
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<th:block th:each="entry : ${resource.entry}" th:object="${entry.getResource()}">
|
{{- /*gotype: github.com/fastenhealth/fasten-onprem/backend/pkg/utils/ips.NarrativeTemplateData*/ -}}
|
||||||
<th:block th:unless='*{getResourceType().name() == "Composition"}'>
|
{{range $index, $entry := .Observation }}
|
||||||
<th:block th:with="extension=${entry.getResource().getExtensionByUrl('http://hl7.org/fhir/StructureDefinition/narrativeLink').getValue().getValue()}">
|
<tr id="{{$entry.SourceResourceID}}">
|
||||||
<tr th:id="${#strings.arraySplit(extension, '#')[1]}">
|
<td>{{pluckList "text" ($entry.Code | parseList) | uniq | join "," }}</td> {{/* Code */}}
|
||||||
<td th:insert="~{IpsUtilityFragments :: codeableConcept (cc=*{getCode()},attr='display')}">Code</td>
|
<td>
|
||||||
<td th:insert="~{IpsUtilityFragments :: renderValue (value=*{getValue()})}">Result</td>
|
{{if gt (len $entry.ValueString) 0 }}
|
||||||
<td th:insert="~{IpsUtilityFragments :: concat (list=*{getNote()},attr='text')}">Comments</td>
|
{{$entry.ValueString}}
|
||||||
<td th:insert="~{IpsUtilityFragments :: renderEffective (effective=*{getEffective()})}">Date</td>
|
{{else if gt (len ($entry.ValueQuantity | parseList)) 0 }}
|
||||||
</tr>
|
{{$entry.ValueQuantity}}
|
||||||
</th:block>
|
{{else if gt (len $entry.ValueDateTime) 0 }}
|
||||||
</th:block>
|
{{$entry.ValueDateTime | date "2006-01-02" }}
|
||||||
</th:block>
|
{{else if gt (len ($entry.ValueCodeableConcept | parseList)) 0 }}
|
||||||
|
{{$entry.ValueCodeableConcept}}
|
||||||
|
{{end}}
|
||||||
|
</td> {{/* Result */}}
|
||||||
|
<td th:insert="~{IpsUtilityFragments :: concat (list=*{getNote()},attr='text')}">Comments</td>
|
||||||
|
<td>{{$entry.Date | date "2006-01-02"}}</td> {{/* Date */}}
|
||||||
|
</tr>
|
||||||
|
{{end}}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -17,18 +17,15 @@ Onset Date: Condition.onsetDateTime || Condition.onsetPeriod.start && “-“ &&
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<th:block th:each="entry : ${resource.entry}" th:object="${entry.getResource()}">
|
{{- /*gotype: github.com/fastenhealth/fasten-onprem/backend/pkg/utils/ips.NarrativeTemplateData*/ -}}
|
||||||
<th:block th:unless='*{getResourceType().name() == "Composition"}'>
|
{{range $index, $entry := .Condition }}
|
||||||
<th:block th:with="extension=${entry.getResource().getExtensionByUrl('http://hl7.org/fhir/StructureDefinition/narrativeLink').getValue().getValue()}">
|
<tr id="{{$entry.SourceResourceID}}">
|
||||||
<tr th:id="${#strings.arraySplit(extension, '#')[1]}">
|
<td>{{pluckList "text" ($entry.Code | parseList) | uniq | join "," }}</td> {{/* Medical Problems */}}
|
||||||
<td th:insert="~{IpsUtilityFragments :: codeableConcept (cc=*{getCode()},attr='display')}">Medical Problems</td>
|
<td>{{pluckList "code" ($entry.ClinicalStatus | parseList) | uniq | join "," }}</td> {{/* Status */}}
|
||||||
<td th:insert="~{IpsUtilityFragments :: codeableConcept (cc=*{getClinicalStatus()},attr='code')}">Status</td>
|
<td th:insert="~{IpsUtilityFragments :: concat (list=*{getNote()},attr='text')}">Comments</td>
|
||||||
<td th:insert="~{IpsUtilityFragments :: concat (list=*{getNote()},attr='text')}">Comments</td>
|
<td>{{$entry.OnsetDate | date "2006-01-02"}}</td> {{/* Onset */}}
|
||||||
<td th:insert="~{IpsUtilityFragments :: renderOnset (onset=*{getOnset()})}">Onset Date</td>
|
</tr>
|
||||||
</tr>
|
{{end}}
|
||||||
</th:block>
|
|
||||||
</th:block>
|
|
||||||
</th:block>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,19 +19,26 @@ Date: Observation.effectiveDateTime || Observation.effectivePeriod.start
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<th:block th:each="entry : ${resource.entry}" th:object="${entry.getResource()}">
|
{{- /*gotype: github.com/fastenhealth/fasten-onprem/backend/pkg/utils/ips.NarrativeTemplateData*/ -}}
|
||||||
<th:block th:unless='*{getResourceType().name() == "Composition"}'>
|
{{range $index, $entry := .Observation }}
|
||||||
<th:block th:with="extension=${entry.getResource().getExtensionByUrl('http://hl7.org/fhir/StructureDefinition/narrativeLink').getValue().getValue()}">
|
<tr id="{{$entry.SourceResourceID}}">
|
||||||
<tr th:id="${#strings.arraySplit(extension, '#')[1]}">
|
<td>{{pluckList "text" ($entry.Code | parseList) | uniq | join "," }}</td> {{/* Code */}}
|
||||||
<td th:insert="~{IpsUtilityFragments :: codeableConcept (cc=*{getCode()},attr='display')}">Code</td>
|
<td>
|
||||||
<td th:insert="~{IpsUtilityFragments :: renderValue (value=*{getValue()})}">Result</td>
|
{{if gt (len $entry.ValueString) 0 }}
|
||||||
<td th:insert="~{IpsUtilityFragments :: renderValueUnit (value=*{getValue()})}">Unit</td>
|
{{$entry.ValueString}}
|
||||||
<td th:insert="~{IpsUtilityFragments :: concat (list=*{getNote()},attr='text')}">Comments</td>
|
{{else if gt (len ($entry.ValueQuantity | parseList)) 0 }}
|
||||||
<td th:insert="~{IpsUtilityFragments :: renderEffective (effective=*{getEffective()})}">Date</td>
|
{{$entry.ValueQuantity}}
|
||||||
</tr>
|
{{else if gt (len $entry.ValueDateTime) 0 }}
|
||||||
</th:block>
|
{{$entry.ValueDateTime | date "2006-01-02" }}
|
||||||
</th:block>
|
{{else if gt (len ($entry.ValueCodeableConcept | parseList)) 0 }}
|
||||||
</th:block>
|
{{$entry.ValueCodeableConcept}}
|
||||||
|
{{end}}
|
||||||
|
</td> {{/* Result */}}
|
||||||
|
<td th:insert="~{IpsUtilityFragments :: renderValueUnit (value=*{getValue()})}">Unit</td>
|
||||||
|
<td th:insert="~{IpsUtilityFragments :: concat (list=*{getNote()},attr='text')}">Comments</td>
|
||||||
|
<td>{{$entry.Date | date "2006-01-02"}}</td> {{/* Date */}}
|
||||||
|
</tr>
|
||||||
|
{{end}}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -35,6 +35,28 @@ Date: Observation.effectiveDateTime || Observation.effectivePeriod.start
|
||||||
</th:block>
|
</th:block>
|
||||||
</th:block>
|
</th:block>
|
||||||
</th:block>
|
</th:block>
|
||||||
|
|
||||||
|
{{- /*gotype: github.com/fastenhealth/fasten-onprem/backend/pkg/utils/ips.NarrativeTemplateData*/ -}}
|
||||||
|
{{range $index, $entry := .Observation }}
|
||||||
|
<tr id="{{$entry.SourceResourceID}}">
|
||||||
|
<td>{{pluckList "text" ($entry.Code | parseList) | uniq | join "," }}</td> {{/* Code */}}
|
||||||
|
<td>
|
||||||
|
{{if gt (len $entry.ValueString) 0 }}
|
||||||
|
{{$entry.ValueString}}
|
||||||
|
{{else if gt (len ($entry.ValueQuantity | parseList)) 0 }}
|
||||||
|
{{$entry.ValueQuantity}}
|
||||||
|
{{else if gt (len $entry.ValueDateTime) 0 }}
|
||||||
|
{{$entry.ValueDateTime | date "2006-01-02" }}
|
||||||
|
{{else if gt (len ($entry.ValueCodeableConcept | parseList)) 0 }}
|
||||||
|
{{$entry.ValueCodeableConcept}}
|
||||||
|
{{end}}
|
||||||
|
</td> {{/* Result */}}
|
||||||
|
<td th:insert="~{IpsUtilityFragments :: renderValueUnit (value=*{getValue()})}">Unit</td>
|
||||||
|
<td th:replace="~{IpsUtilityFragments :: firstFromCodeableConceptList (list=*{getInterpretation()})}">Interpretation</td>
|
||||||
|
<td th:insert="~{IpsUtilityFragments :: concat (list=*{getNote()},attr='text')}">Comments</td>
|
||||||
|
<td>{{$entry.Date | date "2006-01-02"}}</td> {{/* Date */}}
|
||||||
|
</tr>
|
||||||
|
{{end}}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue