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

Commit

Permalink
Update dstu2 condition documentation by adding meta.security (#971)
Browse files Browse the repository at this point in the history
* Add meta.security disclaimer method

* Use meta.security disclaimer method

* Update json responses with security labels

* Add meta.security to terminology bindings for dstu2

---------

Co-authored-by: Dragomir, Tudor <[email protected]>
  • Loading branch information
napster235 and Dragomir, Tudor authored Aug 22, 2023
1 parent e28d786 commit 17ab1db
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 3 deletions.
3 changes: 3 additions & 0 deletions content/millennium/dstu2/general-clinical/condition.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Notes:
<%= headers status: 200 %>
<%= json(:dstu2_condition_bundle) %>
<%= disclaimer %>
<%= security_field_disclaimer %>

### Example Read by Ids

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

### Errors

Expand Down Expand Up @@ -113,6 +115,7 @@ List an individual Condition by its id:
<%= headers status: 200 %>
<%= json(:dstu2_condition_health_concern_resource) %>
<%= disclaimer %>
<%= security_field_disclaimer %>

### Errors

Expand Down
4 changes: 4 additions & 0 deletions lib/resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ def deep_transform_values(value)
end
end
end

def security_field_disclaimer
'The `meta.security` field will be present only when a problem or diagnosis is marked as confidential.'
end
end
end
end
Expand Down
10 changes: 10 additions & 0 deletions lib/resources/dstu2/condition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,16 @@ fields:
system: http://snomed.info/sct
info_link: http://hl7.org/fhir/dstu2/snomedct.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: onsetDateTime
required: 'No'
type: dateTime
Expand Down
48 changes: 45 additions & 3 deletions lib/resources/example_json/dstu2_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': '73079095',
'lastUpdated': '2020-04-05T04:00:46.000Z'
'lastUpdated': '2020-04-05T04:00:46.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 @@ -56,7 +70,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 @@ -113,7 +141,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

0 comments on commit 17ab1db

Please sign in to comment.