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

Commit

Permalink
updated examples with stale and inconsistent data
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoCrespo-ora committed Sep 21, 2023
1 parent 09364e2 commit d6a5e66
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 103 deletions.
4 changes: 2 additions & 2 deletions content/millennium/r4/foundation/security/consent.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

Expand Down
203 changes: 102 additions & 101 deletions lib/resources/example_json/r4_examples_consent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,112 +4,113 @@ module Cerner
module Resources

R4_CONSENT_ENTRY ||= {
"resourceType": 'Consent',
"id": 'AR-12742397-12724066',
"resourceType": "Consent",
"id": "AR-12742397-12724066",
"meta": {
"versionId": '5',
"lastUpdated": '2020-08-21T15:51:38.000Z'
"versionId": "95",
"lastUpdated": "2023-08-01T17:29:09.000Z"
},
"text": {
"status": 'generated',
"div": '<div xmlns="http://www.w3.org/1999/xhtml"><p><b>Consent</b></p><p><b>Patient Name</b>: SMART, BABY BOY</p><p><b>Status</b>: Active</p><p><b>Scope</b>: Privacy Consent</p><p><b>Category</b>: Patient Consent</p><p><b>Policy Rule</b>: Consent given for electronic record sharing (finding)</p><p><b>Consent Start Date</b>: Jul 9, 2020 2:15 P.M. UTC</p><p><b>Actor Name</b>: SMART, NANCY</p><p><b>Actor Role</b>: Authorized Representative</p></div>' # rubocop:disable Layout/LineLength
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Consent</b></p><p><b>Patient Name</b>: Smart, BabyBoy</p><p><b>Status</b>: Inactive</p><p><b>Scope</b>: Privacy Consent</p><p><b>Category</b>: Patient Consent</p><p><b>Policy Rule</b>: Consent given for electronic record sharing (finding)</p><p><b>Consent Start Date</b>: Jan 1, 2001 6:00 A.M. UTC</p><p><b>Consent End Date</b>: Sep 14, 2008 12:00 A.M. UTC</p><p><b>Actor Name</b>: Smart II, Nancy</p><p><b>Actor Role</b>: Authorized Representative</p></div>"
},
"status": 'active',
"status": "inactive",
"scope": {
"coding": [
{
"system": 'http://terminology.hl7.org/CodeSystem/consentscope',
"code": 'patient-privacy',
"display": 'Privacy Consent'
}
],
"text": 'Privacy Consent'
},
"category": [
{
"coding": [
{
"system": 'http://loinc.org',
"code": '59284-0',
"display": 'Patient Consent'
}
{
"system": "http://terminology.hl7.org/CodeSystem/consentscope",
"code": "patient-privacy",
"display": "Privacy Consent"
}
],
"text": 'Patient Consent'
}
"text": "Privacy Consent"
},
"category": [
{
"coding": [
{
"system": "http://loinc.org",
"code": "59284-0",
"display": "Patient Consent"
}
],
"text": "Patient Consent"
}
],
"patient": {
"reference": 'Patient/12742397',
"display": 'SMART, BABY BOY'
"reference": "Patient/12742397",
"display": "Smart, BabyBoy"
},
"policyRule": {
"coding": [
{
"system": 'http://snomed.info/sct',
"code": '425691002',
"display": 'Consent given for electronic record sharing (finding)'
}
],
"text": 'Consent given for electronic record sharing (finding)'
"coding": [
{
"system": "http://snomed.info/sct",
"code": "425691002",
"display": "Consent given for electronic record sharing (finding)"
}
],
"text": "Consent given for electronic record sharing (finding)"
},
"provision": {
"type": 'permit',
"period": {
"start": '2020-07-09T14:15:16.000Z'
},
"actor": [
{
"id": '12724066',
"role": {
"coding": [
{
"system": 'http://terminology.hl7.org/CodeSystem/v3-ParticipationFunction',
"code": 'AUCG',
"display": 'caregiver information receiver'
}
],
"text": 'Authorized Representative'
},
"reference": {
"reference": 'RelatedPerson/12724066-12742397',
"display": 'SMART, NANCY'
}
}
],
"action": [
{
"coding": [
"type": "permit",
"period": {
"start": "2001-01-01T06:00:00.000Z",
"end": "2008-09-14T00:00:00.000Z"
},
"actor": [
{
"system": 'http://terminology.hl7.org/CodeSystem/consentaction',
"code": 'correct',
"display": 'Access and Correct'
"id": "12724066",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationFunction",
"code": "AUCG",
"display": "caregiver information receiver"
}
],
"text": "Authorized Representative"
},
"reference": {
"reference": "RelatedPerson/12724066-12742397",
"display": "Smart II, Nancy"
}
}
],
"text": 'Access and Correct'
}
],
"purpose": [
{
"system": 'http://terminology.hl7.org/CodeSystem/v3-ActReason',
"code": 'PurposeOfUse',
"display": 'purpose of use'
}
]
],
"action": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/consentaction",
"code": "correct",
"display": "Access and Correct"
}
],
"text": "Access and Correct"
}
],
"purpose": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
"code": "PurposeOfUse",
"display": "purpose of use"
}
]
}
}.freeze

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": {
Expand All @@ -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": {
Expand All @@ -140,23 +141,23 @@ module Resources
}.freeze

R4_CONSENT_ID_BUNDLE ||= {
"resourceType": 'Bundle',
"id": 'b8fffddc-85f6-4121-8e50-c42aadacc63b',
"type": 'searchset',
"resourceType": "Bundle",
"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'
}
{
"relation": "self",
"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

Expand All @@ -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": {
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit d6a5e66

Please sign in to comment.