From c556fb9b595769a78bee05742ab99e82593c1b0d Mon Sep 17 00:00:00 2001
From: Ricard Crespo <143555600+RicardoCrespo-ora@users.noreply.github.com>
Date: Fri, 22 Sep 2023 09:05:27 -0500
Subject: [PATCH] updated examples with stale and inconsistent data (#986)
---
.../r4/foundation/security/consent.md | 10 ++--
.../example_json/r4_examples_consent.rb | 49 ++++++++++---------
2 files changed, 30 insertions(+), 29 deletions(-)
diff --git a/content/millennium/r4/foundation/security/consent.md b/content/millennium/r4/foundation/security/consent.md
index afdbad865..242068137 100644
--- a/content/millennium/r4/foundation/security/consent.md
+++ b/content/millennium/r4/foundation/security/consent.md
@@ -48,11 +48,11 @@ Search for Consent that meet supplied query parameters:
Name | Required? | Type | Description
-----------------------|--------------------------------------------------|---------------|--------------
`_id` | No, if populated all other parameters are ignored| [`token`] | The logical resource id associated with the resource.
- `actor` | Yes, or _id | [`reference`] | The actor (RelatedPerson) of the Consent. Example: actor=RelatedPerson/1234 or actor:RelatedPerson=1234
+ `actor` | Yes, or _id | [`reference`] | The actor (RelatedPerson) of the Consent. Example: `actor=RelatedPerson/1234` or `actor:RelatedPerson=1234`
`actor.identifier` | Yes, or _id | [`token`] | The Federated Person Principal identifier for the actor of the Consent. Example `actor.identifier=system|1234`
- `patient` | Yes, or _id | [`reference`] | Who the consent applies to Example subject=Patient/1234
+ `patient` | Yes, or _id | [`reference`] | Who the consent applies to Example `subject=Patient/1234`
`patient.identifier` | Yes, or _id | [`token`] | The identifier for the patient of the Consent. Example `patient.identifier=system|5678` (Federated Person Principal, Medical Record Number, Social Security Number, etc.)
- [`_include`] | No | [`string`] | Other resource entries to be returned as part of the bundle. Example _include=Consent:actor or _include=Consent:patient
+ [`_include`] | No | [`string`] | Other resource entries to be returned as part of the bundle. Example `_include=Consent:actor` or `_include=Consent:patient`
Notes:
@@ -86,7 +86,7 @@ Notes:
#### Request
- GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?_id=AR-12724069-12724066
+ GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?_id=AR-12742397-12724066
#### Response
@@ -99,7 +99,7 @@ Notes:
#### Request
- GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?actor=12724066-12724069
+ GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?actor=12724066-12742397
#### Response
diff --git a/lib/resources/example_json/r4_examples_consent.rb b/lib/resources/example_json/r4_examples_consent.rb
index 30cc8f442..cbff26939 100644
--- a/lib/resources/example_json/r4_examples_consent.rb
+++ b/lib/resources/example_json/r4_examples_consent.rb
@@ -7,12 +7,12 @@ module Resources
"resourceType": 'Consent',
"id": 'AR-12742397-12724066',
"meta": {
- "versionId": '5',
+ "versionId": '95',
"lastUpdated": '2020-08-21T15:51:38.000Z'
},
"text": {
"status": 'generated',
- "div": '
Consent
Patient Name: SMART, BABY BOY
Status: Active
Scope: Privacy Consent
Category: Patient Consent
Policy Rule: Consent given for electronic record sharing (finding)
Consent Start Date: Jul 9, 2020 2:15 P.M. UTC
Actor Name: SMART, NANCY
Actor Role: Authorized Representative
' # rubocop:disable Layout/LineLength
+ "div": 'Consent
Patient Name: Smart, BabyBoy
Status: Inactive
Scope: Privacy Consent
Category: Patient Consent
Policy Rule: Consent given for electronic record sharing (finding)
Consent Start Date: Jan 1, 2001 6:00 A.M. UTC
Consent End Date: Sep 14, 2008 12:00 A.M. UTC
Actor Name: Smart II, Nancy
Actor Role: Authorized Representative
' # rubocop:disable Layout/LineLength
},
"status": 'active',
"scope": {
@@ -39,7 +39,7 @@ module Resources
],
"patient": {
"reference": 'Patient/12742397',
- "display": 'SMART, BABY BOY'
+ "display": 'Smart, BabyBoy'
},
"policyRule": {
"coding": [
@@ -54,7 +54,8 @@ module Resources
"provision": {
"type": 'permit',
"period": {
- "start": '2020-07-09T14:15:16.000Z'
+ "start": '2020-07-09T14:15:16.000Z',
+ "end": '2008-09-14T00:00:00.000Z'
},
"actor": [
{
@@ -71,7 +72,7 @@ module Resources
},
"reference": {
"reference": 'RelatedPerson/12724066-12742397',
- "display": 'SMART, NANCY'
+ "display": 'Smart II, Nancy'
}
}
],
@@ -99,17 +100,17 @@ module Resources
R4_CONSENT_BUNDLE ||= {
"resourceType": 'Bundle',
- "id": '9030475d-88ee-458d-8c2d-6907f50b51ef',
+ "id": '2d5d89a5-67b1-489e-b6ef-878878beab55',
"type": 'searchset',
"link": [
{
"relation": 'self',
- "url": 'http://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?patient=12742397'
+ "url": 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?patient=12742397'
}
],
"entry": [
{
- "fullUrl": 'http://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent/AR-12742397-12724066',
+ "fullUrl": 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent/AR-12742397-12724066',
"resource": R4_CONSENT_ENTRY
},
"search": {
@@ -125,12 +126,12 @@ module Resources
"link": [
{
"relation": 'self',
- "url": 'http://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?patient=12742397'
+ "url": 'https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?patient=12742397'
}
],
"entry": [
{
- "fullUrl": 'http://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent/AR-12742397-12724066',
+ "fullUrl": 'https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent/AR-12742397-12724066',
"resource": R4_CONSENT_ENTRY
},
"search": {
@@ -141,21 +142,21 @@ module Resources
R4_CONSENT_ID_BUNDLE ||= {
"resourceType": 'Bundle',
- "id": 'b8fffddc-85f6-4121-8e50-c42aadacc63b',
+ "id": '5259d04e-1241-4477-a52b-f27c8002aedb',
"type": 'searchset',
"link": [
{
"relation": 'self',
- "url": 'http://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?_id=AR-12724069-12724066'
+ "url": 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?_id=AR-12742397-12724066'
}
],
"entry": [
{
- "fullUrl": 'http://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent/AR-12724069-12724066',
- "resource": R4_CONSENT_ENTRY
- },
- "search": {
- "mode": 'match'
+ "fullUrl": 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent/AR-12742397-12724066',
+ "resource": R4_CONSENT_ENTRY,
+ "search": {
+ "mode": 'match'
+ }
}
]
}.freeze
@@ -167,12 +168,12 @@ module Resources
"link": [
{
"relation": 'self',
- "url": 'http://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?actor=12724066-12724069'
+ "url": 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?actor=12724066-12742397'
}
],
"entry": [
{
- "fullUrl": 'http://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent/AR-12724069-12724066',
+ "fullUrl": 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent/AR-12742397-12724066',
"resource": R4_CONSENT_ENTRY
},
"search": {
@@ -183,21 +184,21 @@ module Resources
R4_CONSENT_INCLUDE_BUNDLE ||= {
"resourceType": 'Bundle',
- "id": '1ed02fdc-2c0b-4624-b333-15b9d1e86bd9',
+ "id": 'e2d6403f-fe92-4f56-a210-2c5871488345',
"type": 'searchset',
"link": [
{
"relation": 'self',
- "url": 'http://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?patient=12742397&_include=Consent%3Apatient&_include=Consent%3Aactor'
+ "url": 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent?patient=12742397&_include=Consent%3Apatient&_include=Consent%3Aactor'
}
],
"entry": [
{
- "fullUrl": 'http://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent/AR-12742397-12724066',
+ "fullUrl": 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Consent/AR-12742397-12724066',
"resource": R4_CONSENT_ENTRY
},
{
- "fullUrl": 'http://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Patient/12742397',
+ "fullUrl": 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Patient/12742397',
"resource": {
"resourceType": 'Patient',
"id": '12742397',
@@ -555,7 +556,7 @@ module Resources
}
},
{
- "fullUrl": 'http://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/RelatedPerson/12724066-12742397',
+ "fullUrl": 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/RelatedPerson/12724066-12742397',
"resource": {
"resourceType": 'RelatedPerson',
"id": '12724066-12742397',