From d755afafc1fbb8b54dc161b33d392e72dda9dd55 Mon Sep 17 00:00:00 2001 From: Tudor Dragomir Date: Tue, 22 Aug 2023 15:44:24 +0300 Subject: [PATCH] Update r4 condition documentation by adding meta.security (#970) * Add meta.security field disclaimer * Update json examples with securty labels * Create resuable method for security field disclaimer * Update entered in error json response * Add meta.security to terminology bindings to r4 --------- Co-authored-by: Dragomir, Tudor --- .../r4/clinical/summary/condition.md | 13 +- .../example_json/r4_examples_condition.rb | 113 ++++++++++++++++-- lib/resources/r4/condition.yaml | 10 ++ 3 files changed, 123 insertions(+), 13 deletions(-) diff --git a/content/millennium/r4/clinical/summary/condition.md b/content/millennium/r4/clinical/summary/condition.md index fd14b2b9b..f04298139 100644 --- a/content/millennium/r4/clinical/summary/condition.md +++ b/content/millennium/r4/clinical/summary/condition.md @@ -98,8 +98,8 @@ Notes: <%= headers status: 200 %> <%= json(:r4_condition_bundle) %> - <%= disclaimer %> +<%= security_field_disclaimer %> ### Example with RevInclude @@ -116,6 +116,7 @@ Notes: <%= headers status: 200 %> <%= json(:r4_condition_revinclude_bundle) %> <%= disclaimer %> +<%= security_field_disclaimer %> #### Patient Authorization Request @@ -125,8 +126,8 @@ Notes: <%= headers status: 200 %> <%= json(:r4_patient_condition_bundle) %> - <%= disclaimer %> +<%= security_field_disclaimer %> ### Errors @@ -156,8 +157,8 @@ List an individual Condition by its id: <%= headers status: 200 %> <%= json(:r4_condition_entry) %> - <%= disclaimer %> +<%= security_field_disclaimer %> #### Patient Authorization Request For Resolved Status @@ -167,8 +168,8 @@ List an individual Condition by its id: <%= headers status: 200 %> <%= json(:r4_patient_condition_entry) %> - <%= disclaimer %> +<%= security_field_disclaimer %> #### Patient Authorization Request For Active Status @@ -178,8 +179,8 @@ List an individual Condition by its id: <%= headers status: 200 %> <%= json(:r4_patient_active_entry) %> - <%= disclaimer %> +<%= security_field_disclaimer %> #### Patient Authorization Request For Entered in Error Status @@ -189,8 +190,8 @@ List an individual Condition by its id: <%= headers status: 200 %> <%= json(:r4_patient_entered_in_error_entry) %> - <%= disclaimer %> +<%= security_field_disclaimer %> ### Errors diff --git a/lib/resources/example_json/r4_examples_condition.rb b/lib/resources/example_json/r4_examples_condition.rb index b7a44998d..78867ea24 100644 --- a/lib/resources/example_json/r4_examples_condition.rb +++ b/lib/resources/example_json/r4_examples_condition.rb @@ -8,7 +8,21 @@ module Resources 'id': 'p73077203', 'meta': { 'versionId': '73080185', - 'lastUpdated': '2020-06-11T04:05:04.000Z' + 'lastUpdated': '2020-06-11T04:05:04.000Z', + 'security': [ + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PHY', + 'display': 'physician requested information sensitivity', + 'userSelected': false + }, + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PRS', + 'display': 'patient requested information sensitivity', + 'userSelected': false + } + ] }, 'text': { 'status': 'generated', @@ -92,7 +106,21 @@ module Resources 'id': 'p109117485', 'meta': { 'versionId': '109117485', - 'lastUpdated': '2020-06-11T04:05:04.000Z' + 'lastUpdated': '2020-06-11T04:05:04.000Z', + 'security': [ + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PHY', + 'display': 'physician requested information sensitivity', + 'userSelected': false + }, + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PRS', + 'display': 'patient requested information sensitivity', + 'userSelected': false + } + ] }, 'text': { 'status': 'generated', @@ -171,7 +199,22 @@ module Resources 'resourceType': 'Condition', 'id': 'd2266495305', 'meta': { - 'versionId': '2266495305' + 'versionId': '2266495305', + 'lastUpdated': '2020-06-11T04:05:04.000Z', + 'security': [ + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PHY', + 'display': 'physician requested information sensitivity', + 'userSelected': false + }, + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PRS', + 'display': 'patient requested information sensitivity', + 'userSelected': false + } + ] }, 'text': { 'status': 'generated', @@ -232,7 +275,21 @@ module Resources 'id': 'a077dc30-8eee-4bb7-ae7f-ced1273f5c68', 'meta': { 'versionId': 'a077dc30-8eee-4bb7-ae7f-ced1273f5c68', - 'lastUpdated': '2020-12-03T22:47:30.000Z' + 'lastUpdated': '2020-12-03T22:47:30.000Z', + 'security': [ + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PHY', + 'display': 'physician requested information sensitivity', + 'userSelected': false + }, + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PRS', + 'display': 'patient requested information sensitivity', + 'userSelected': false + } + ] }, 'text': { 'status': 'generated', @@ -298,7 +355,21 @@ module Resources 'id': 'd2572382197', 'meta': { 'versionId': '2572382197', - 'lastUpdated': '2020-06-11T04:03:21.000Z' + 'lastUpdated': '2020-06-11T04:03:21.000Z', + 'security': [ + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PHY', + 'display': 'physician requested information sensitivity', + 'userSelected': false + }, + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PRS', + 'display': 'patient requested information sensitivity', + 'userSelected': false + } + ] }, 'text': { 'status': 'generated', @@ -391,7 +462,21 @@ module Resources 'id': 'bed1c2ec-1f33-4097-8296-f6aa01824387', 'meta': { 'versionId': 'bed1c2ec-1f33-4097-8296-f6aa01824387', - 'lastUpdated': '2020-10-20T20:46:41.000Z' + 'lastUpdated': '2020-10-20T20:46:41.000Z', + 'security': [ + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PHY', + 'display': 'physician requested information sensitivity', + 'userSelected': false + }, + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PRS', + 'display': 'patient requested information sensitivity', + 'userSelected': false + } + ] }, 'text': { 'status': 'generated', @@ -490,7 +575,21 @@ module Resources 'id': '00a5d6eb-c567-42f7-be07-53804cece075', 'meta': { 'versionId': '00a5d6eb-c567-42f7-be07-53804cece075', - 'lastUpdated': '2020-07-06T19:36:23.000Z' + 'lastUpdated': '2020-07-06T19:36:23.000Z', + 'security': [ + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PHY', + 'display': 'physician requested information sensitivity', + 'userSelected': false + }, + { + 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActCode', + 'code': 'PRS', + 'display': 'patient requested information sensitivity', + 'userSelected': false + } + ] }, 'text': { 'status': 'generated', diff --git a/lib/resources/r4/condition.yaml b/lib/resources/r4/condition.yaml index 6205c29c0..2cfa9e9cc 100644 --- a/lib/resources/r4/condition.yaml +++ b/lib/resources/r4/condition.yaml @@ -256,6 +256,16 @@ fields: system: http://hl7.org/fhir/sid/icd-10-cm info_link: https://hl7.org/fhir/icd.html +- name: meta.security + url: http://www.hl7.org/fhir/resource-definitions.html#Meta.security + binding: + description: These tags connect specific resources to the overall security policy and infrastructure. + terminology: + - display: ValueSet + system: http://terminology.hl7.org/CodeSystem/v3-ActCode + info_link: http://www.hl7.org/fhir/valueset-security-labels.html + action: terminology + - name: subject required: 'Yes' type: Reference