-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init r3r4 templates * update templates * update * update * update * add translate feature * update * update * update * update templates * update uppercase
- Loading branch information
Showing
269 changed files
with
3,629 additions
and
316 deletions.
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 -%} |
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 'DataType/ContributorToContactDetail' msg : c -%}, | ||
{% endif %} | ||
{% endfor %} | ||
], | ||
"editor" :[ | ||
{% for c in msg.contributor %} | ||
{% if c.type == "editor" -%} | ||
{% include 'DataType/ContributorToContactDetail' msg : c -%}, | ||
{% endif %} | ||
{% endfor %} | ||
], | ||
"reviewer" :[ | ||
{% for c in msg.contributor %} | ||
{% if c.type == "reviewer" -%} | ||
{% include 'DataType/ContributorToContactDetail' msg : c -%}, | ||
{% endif %} | ||
{% endfor %} | ||
], | ||
"endorser" :[ | ||
{% for c in msg.contributor %} | ||
{% if c.type == "endorser" -%} | ||
{% include 'DataType/ContributorToContactDetail' msg : c -%}, | ||
{% endif %} | ||
{% endfor %} | ||
], | ||
"kind" : {% include 'ActivityDefinition/TranslateKindCode' msg : msg.kind -%}, | ||
"relatedArtifact" : [ {{ msg.relatedArtifact | to_array | batch_render: 'DataType/RelatedArtifact', 'msg' }} ], | ||
"dosage" : [ {{ msg.dosage | to_array | batch_render: 'DataType/Dosage', 'msg' }} ], | ||
"library" : [ {{ msg.library | to_array | batch_render: 'DataType/ReferenceToCanonical', 'msg' }} ], | ||
"transform" : {% include 'DataType/ReferenceToCanonical' msg: msg.transform -%}, | ||
"dynamicValue" : [ {{ msg.dynamicValue | to_array | batch_render: 'ActivityDefinition/ActivityDefinitionDynamicValue', 'msg' }} ], | ||
"contributor" : "" | ||
} | ||
{% endmergeDiff -%} |
11 changes: 11 additions & 0 deletions
11
data/Templates/Stu3ToR4/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/Stu3ToR4/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/Stu3ToR4/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 -%} |
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 -%} |
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 'DataType/IdentifierToReference' 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 'DataType/IdentifierToReference' 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/Stu3ToR4/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 'DataType/IdentifierToReference' 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,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 -%} |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"profile" : {% include 'Shared/ReferenceToCanonical' msg: msg.profile -%} | ||
"profile" : {% include 'DataType/ReferenceToCanonical' 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"profile" : {% include 'Shared/ReferenceToCanonical' msg: msg.profile -%} | ||
"profile" : {% include 'DataType/ReferenceToCanonical' 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
2 changes: 1 addition & 1 deletion
2
data/Templates/Stu3ToR4/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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"definition" : {% include 'Shared/ReferenceToCanonical' msg: msg.definition -%} | ||
"definition" : {% include 'DataType/ReferenceToCanonical' 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,10 @@ | ||
{% mergeDiff msg -%} | ||
{ | ||
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ], | ||
"instantiatesCanonical" : {% include 'DataType/ReferenceToCanonical'' 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,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,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 -%} |
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'}} ], | ||
"definitionUri" : {{msg.definition | to_json_string | default : '""'}}, | ||
"performer" : [ {{ msg.participant | to_array | batch_render: 'ChargeItem/ChargeItemPerformer', 'msg' }} ], | ||
"priceOverride" : {% include 'DataType/Money' msg: msg.priceOverride -%}, | ||
"participant" : "", | ||
"definition" : "" | ||
} | ||
{% endmergeDiff -%} | ||
|
6 changes: 6 additions & 0 deletions
6
data/Templates/Stu3ToR4/ChargeItem/_ChargeItemPerformer.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 -%} | ||
{ | ||
"function" : {{msg.role | to_json_string | default : '""'}}, | ||
"role" : "" | ||
} | ||
{% endmergeDiff -%} |
Oops, something went wrong.