Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Update r4 condition documentation by adding meta.security (#970)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
napster235 and Dragomir, Tudor authored Aug 22, 2023
1 parent 17ab1db commit d755afa
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 13 deletions.
13 changes: 7 additions & 6 deletions content/millennium/r4/clinical/summary/condition.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ Notes:

<%= headers status: 200 %>
<%= json(:r4_condition_bundle) %>

<%= disclaimer %>
<%= security_field_disclaimer %>

### Example with RevInclude

Expand All @@ -116,6 +116,7 @@ Notes:
<%= headers status: 200 %>
<%= json(:r4_condition_revinclude_bundle) %>
<%= disclaimer %>
<%= security_field_disclaimer %>

#### Patient Authorization Request

Expand All @@ -125,8 +126,8 @@ Notes:

<%= headers status: 200 %>
<%= json(:r4_patient_condition_bundle) %>

<%= disclaimer %>
<%= security_field_disclaimer %>

### Errors

Expand Down Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down
113 changes: 106 additions & 7 deletions lib/resources/example_json/r4_examples_condition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
10 changes: 10 additions & 0 deletions lib/resources/r4/condition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d755afa

Please sign in to comment.