{ "fullUrl":"urn:uuid:{{ID}}", "resource":{ "resourceType": "Provenance", "id":"{{ID}}", "agent": [ { "type": { "coding": [ { {{#if (not MSH-21)}}, "code":"author", {{/if}}, {{#if MSH-22}}, "code":"author", {{/if}}, {{#if ORC-10}}, "code":"enterer", {{/if}}, {{#if (not MSH-21)}}, "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", {{/if}}, {{#if MSH-22}}, "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", {{/if}}, {{#if ORC-10}}, "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", {{/if}}, }, ], }, }, { "type": { "coding": [ { {{#if ORC-11}}, "code":"verifier", {{/if}}, {{#if ORC-11}}, "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", {{/if}}, }, ], }, }, { "type": { "coding": [ { {{#if ORC-12}}, "code":"author", {{/if}}, {{#if ORC-12}}, "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", {{/if}}, }, ], }, }, ], "recorded":"{{formatAsDateTime MSH-7}}", "recorded":"{{formatAsDateTime ORC-9}}", "activity": { "coding": [ { {{#if (eq ORC-1 "NW")}}, "code":"CREATE", {{/if}}, {{#if (eq ORC-1 "SC")}}, "code":"UPDATE", {{/if}}, {{#if (eq ORC-1 "OC" "CA")}}, "code":"DELETE", {{/if}}, {{#if (eq ORC-1 "NW")}}, "system":"http://terminology.hl7.org/CodeSystem/v3-DataOperation", {{/if}}, {{#if (eq ORC-1 "SC")}}, "system":"http://terminology.hl7.org/CodeSystem/v3-DataOperation", {{/if}}, {{#if (eq ORC-1 "OC" "CA")}}, "system":"http://terminology.hl7.org/CodeSystem/v3-DataOperation", {{/if}}, }, ], }, "occurredDateTime":"{{formatAsDateTime ORC-9}}", }, "request":{ "method":"PUT", "url":"Provenance/{{ID}}", }, },