-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add r3r4 templates #357
Merged
Merged
Add r3r4 templates #357
Changes from 10 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
047a64f
init r3r4 templates
sowu880 56a3743
update templates
sowu880 089f2dd
update
sowu880 35a5aef
update
sowu880 6979228
update
sowu880 a7c1707
add translate feature
sowu880 3f306b8
update
sowu880 2f39079
Merge branch 'dotliquid' of https://github.com/microsoft/FHIR-Convert…
sowu880 3488997
Merge branch 'dotliquid' into personal/sowu/add-R3R4-templates
sowu880 b10512c
Merge branch 'dotliquid' into personal/sowu/add-R3R4-templates
sowu880 1da5bda
Merge branch 'dotliquid' of https://github.com/microsoft/FHIR-Convert…
sowu880 71b8102
update
sowu880 30f5d31
Merge branch 'dotliquid' into personal/sowu/add-R3R4-templates
sowu880 3e59fbf
Merge branch 'dotliquid' of https://github.com/microsoft/FHIR-Convert…
sowu880 4d62666
update
sowu880 9cdf1bc
Merge branch 'personal/sowu/add-R3R4-templates' of https://github.com…
sowu880 42d80b6
update templates
sowu880 21b6979
update uppercase
sowu880 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"servicePeriod" : {{msg.period | to_json_string | default : '""'}}, | ||
"balance" : "", | ||
"active" : "", | ||
"period" : "" | ||
} | ||
{% endmergeDiff -%} |
40 changes: 40 additions & 0 deletions
40
data/Templates/Stu3R4/ActivityDefinition/_ActivityDefinition.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"author" :[ | ||
{% for c in msg.contributor %} | ||
{% if c.type == 'author' -%} | ||
{% include 'Shared/Contributor2ContactDetail' msg : c -%}, | ||
{% endif %} | ||
{% endfor %} | ||
], | ||
"editor" :[ | ||
{% for c in msg.contributor %} | ||
{% if c.type == "editor" -%} | ||
{% include 'Shared/Contributor2ContactDetail' msg : c -%}, | ||
{% endif %} | ||
{% endfor %} | ||
], | ||
"reviewer" :[ | ||
{% for c in msg.contributor %} | ||
{% if c.type == "reviewer" -%} | ||
{% include 'Shared/Contributor2ContactDetail' msg : c -%}, | ||
{% endif %} | ||
{% endfor %} | ||
], | ||
"endorser" :[ | ||
{% for c in msg.contributor %} | ||
{% if c.type == "endorser" -%} | ||
{% include 'Shared/Contributor2ContactDetail' msg : c -%}, | ||
{% endif %} | ||
{% endfor %} | ||
], | ||
"kind" : {% include 'ActivityDefinition/TranslateKindCode' msg : msg.kind -%}, | ||
"relatedArtifact" : [ {{ msg.relatedArtifact | to_array | batch_render: 'Shared/RelatedArtifact', 'msg' }} ], | ||
"dosage" : [ {{ msg.dosage | to_array | batch_render: 'Shared/Dosage', 'msg' }} ], | ||
"library" : [ {{ msg.library | to_array | batch_render: 'Shared/Reference2Canonical', 'msg' }} ], | ||
"transform" : {% include 'Shared/Reference2Canonical' msg: msg.transform -%}, | ||
"dynamicValue" : [ {{ msg.dynamicValue | to_array | batch_render: 'ActivityDefinition/ActivityDefinitionDynamicValue', 'msg' }} ], | ||
"contributor" : "" | ||
} | ||
{% endmergeDiff -%} |
11 changes: 11 additions & 0 deletions
11
data/Templates/Stu3R4/ActivityDefinition/_ActivityDefinitionDynamicValue.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"expression" : { | ||
"description" : "{{msg.description}}", | ||
"language" : "{{msg.language}}", | ||
"expression" : "{{msg.expression}}" | ||
}, | ||
"language" : "", | ||
"description" : "" | ||
} | ||
{% endmergeDiff -%} |
8 changes: 8 additions & 0 deletions
8
data/Templates/Stu3R4/ActivityDefinition/_TranslateKindCode.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% case msg -%} | ||
{% when "ProcedureRequest" -%} | ||
"ServiceRequest" | ||
{% when "ReferralRequest" -%} | ||
"ServiceRequest" | ||
{% else -%} | ||
"{{msg}}" | ||
{% endcase -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"category" : [ | ||
{%if msg.category -%} | ||
{ | ||
"coding" : { | ||
"system" : "http://terminology.hl7.org/CodeSystem/adverse-event-category", | ||
"code" : "{{msg.category}}" | ||
} | ||
}, | ||
{% endif -%} | ||
], | ||
"event" : {{msg.type | to_json_string | default : '""'}}, | ||
{% if msg.type == null -%} | ||
"event" : { | ||
"text" : "{{msg.description}}" | ||
}, | ||
{% endif -%} | ||
"suspectEntity" : [ {{ msg.suspectEntity | to_array | batch_render: 'AdverseEvent/AdverseEventSuspectEntity', 'msg' }} ], | ||
"eventParticipant" : "", | ||
"reaction" : "", | ||
"type" : "", | ||
"description" : "" | ||
} | ||
{% endmergeDiff -%} |
9 changes: 9 additions & 0 deletions
9
data/Templates/Stu3R4/AdverseEvent/_AdverseEventSuspectEntity.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"causalityResult" : "", | ||
"causalityAuthor" : "", | ||
"causalityMethod" : "", | ||
"causalityProductRelatedness" : "", | ||
"causalityAssessment" : "" | ||
} | ||
{% endmergeDiff -%} |
26 changes: 26 additions & 0 deletions
26
data/Templates/Stu3R4/AllergyIntolerance/_AllergyIntolerance.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"clinicalStatus" : "", | ||
"verificationStatus" : "", | ||
{%if msg.clinicalStatus -%} | ||
"clinicalStatus" : { | ||
"coding" : { | ||
"system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical", | ||
"code" : "{{msg.clinicalStatus}}" | ||
} | ||
}, | ||
{% endif -%} | ||
{%if msg.verificationStatus -%} | ||
"verificationStatus" : { | ||
"coding" : { | ||
"system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification", | ||
"code" : "{{msg.verificationStatus}}" | ||
} | ||
}, | ||
{% endif -%} | ||
"recordedDate" : "{{msg.assertedDate | date: "yyyy-MM-ddTHH:mm:ss.fff%K" }}", | ||
"assertedDate" : "" | ||
} | ||
{% endmergeDiff -%} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"reasonCode" : {{msg.reason | to_json_string | default : '""'}}, | ||
"reasonReference" : {{msg.indication | to_json_string | default : '""'}}, | ||
"basedOn" : {{msg.incomingReferral | to_json_string | default : '""'}}, | ||
"incomingReferral" : "", | ||
"indication" : "", | ||
"reason" : "" | ||
} | ||
{% endmergeDiff -%} |
5 changes: 5 additions & 0 deletions
5
data/Templates/Stu3R4/AppointmentResponse/_AppointmentResponse.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"agent" : [ {{ msg.agent | to_array | batch_render: 'AuditEvent/AuditEventAgent', 'msg' }} ], | ||
"source" : {% include 'AuditEvent/AuditEventSource' msg: msg.source -%}, | ||
"entity" : [ {{ msg.entity | to_array | batch_render: 'AuditEvent/AuditEventEntity', 'msg' }} ] | ||
} | ||
{% endmergeDiff -%} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"who" : {{msg.reference | to_json_string | default : '""'}}, | ||
"who" : {% include 'Shared/Identifier2Reference' msg: msg.userId -%}, | ||
"userId" : "", | ||
"reference" : "" | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"what" : {% include 'Shared/Identifier2Reference' msg: msg.identifier -%}, | ||
"what" : {{msg.reference | to_json_string | default : '""'}}, | ||
"detail" : [ {{ msg.detail | to_array | batch_render: 'AuditEvent/AuditEventEntityDetail', 'msg' }} ], | ||
"reference" : "", | ||
"identifier" : "" | ||
} | ||
{% endmergeDiff -%} |
6 changes: 6 additions & 0 deletions
6
data/Templates/Stu3R4/AuditEvent/_AuditEventEntityDetail.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"valueBase64Binary" : "{{msg.value}}", | ||
"value":"" | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"observer" : {% include 'Shared/Identifier2Reference' msg: msg.identifier -%}, | ||
"identifier" : "" | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"data" : "{{msg.content}}", | ||
"content" : "" | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"resourceType":"BodyStructure", | ||
"location" : {{msg.code | to_json_string | default : '""'}}, | ||
"locationQualifier" : {{msg.qualifier | to_json_string | default : '""'}}, | ||
"qualifier" : "", | ||
"code" : "" | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% if msg.resourceType == 'Bundle' -%} | ||
{% include 'Bundle/Bundle' msg : msg -%} | ||
{% else -%} | ||
{ | ||
"resourceType": "Bundle", | ||
"id": "converter", | ||
"type": "message", | ||
"entry": [ | ||
{ | ||
"fullUrl": "", | ||
"resource": {% include 'Resource' msg -%} | ||
} | ||
] | ||
} | ||
{% endif -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"entry" : [ {{ msg.entry | to_array | batch_render: 'Bundle/Entry', 'msg' }} ] | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"resource": {% include 'Resource' msg : msg.resource -%} | ||
} | ||
{% endmergeDiff -%} |
22 changes: 22 additions & 0 deletions
22
data/Templates/Stu3R4/CapabilityStatement/_CapabilityStatement.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"extension" : [ | ||
{% for e in msg.extension -%} | ||
{{ e | to_json_string | default : '""'}}, | ||
{% endfor -%} | ||
{%if msg.acceptUnknown -%} | ||
{ | ||
"url" : "http://hl7.org/fhir/r3/StructureDefinition/extension-CapabilityStatement.acceptUnknown", | ||
"valueCode" : "{{msg.acceptUnknown}}" | ||
}, | ||
{% endif -%} | ||
], | ||
"fhirVersion": "4.0.1", | ||
"profile" : "", | ||
"rest" : [ {{ msg.rest | to_array | batch_render: 'CapabilityStatement/Rest', 'msg' }} ], | ||
"messaging" : [ {{ msg.messaging | to_array | batch_render: 'CapabilityStatement/Messaging', 'msg' }} ], | ||
"document" : [ {{ msg.document | to_array | batch_render: 'CapabilityStatement/Document', 'msg' }} ], | ||
"acceptUnknown" : "" | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"profile" : {% include 'Shared/Reference2Canonical' msg: msg.profile -%} | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"supportedMessage" : [ {{ msg.supportedMessage | to_array | batch_render: 'CapabilityStatement/SupportedMessage', 'msg' }} ], | ||
"event" : "" | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"profile" : {% include 'Shared/Reference2Canonical' msg: msg.profile -%} | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"security" : {% include 'CapabilityStatement/Security' msg: msg.security -%}, | ||
"resource" : [ {{ msg.resource | to_array | batch_render: 'CapabilityStatement/Resource', 'msg' }} ] | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"certificate" : "" | ||
} | ||
{% endmergeDiff -%} |
5 changes: 5 additions & 0 deletions
5
data/Templates/Stu3R4/CapabilityStatement/_SupportedMessage.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"definition" : {% include 'Shared/Reference2Canonical' msg: msg.definition -%} | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"detail" : {% include 'CarePlan/Detail' msg: msg.detail -%} | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"instantiatesCanonical" : {% include 'Shared/Reference2Canonical'' msg: msg.definition -%}, | ||
"encounter" : {{msg.context | to_json_string | default : '""'}}, | ||
"activity" : [ {{ msg.activity | to_array | batch_render: 'CarePlan/Activity', 'msg' }} ], | ||
"context" : "", | ||
"definition" : "" | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"extension" : [ | ||
{% for e in msg.extension -%} | ||
{{ e | to_json_string | default : '""'}}, | ||
{% endfor -%} | ||
{%if msg.category -%} | ||
{ | ||
"url" : "http://hl7.org/fhir/r3/StructureDefinition/extension-CarePlan.activity.detail.category", | ||
"valueCodeableConcept" : {{msg.category | to_json_string | default : '""' }} | ||
}, | ||
{% endif -%} | ||
], | ||
"instantiatesCanonical" : [ | ||
{{msg.definition | to_json_string | default : '""'}} | ||
], | ||
"statusReason" : { | ||
"text" : "{{msg.statusReason}}" | ||
}, | ||
"doNotPerform" : "{{msg.prohibited}}", | ||
"prohibited" : "", | ||
"definition" : "", | ||
"category" : "" | ||
} | ||
{% endmergeDiff -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"encounter" : {{msg.context | to_json_string | default : '""'}}, | ||
"context" : "" | ||
} | ||
{% endmergeDiff -%} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious~ Do we need to update it in other resources?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, it may appear in ImplementationGuide:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be. In this first round of update, I only modify the value of "fhirVersion" field with 'N' priority, and plan to update others for template refinement. (Since value change in Stu3 to R4 is nice to have.)