$sdh.s2s.consent-status operation
EAP

 

$sdh.s2s.consent-status

  • The $sdh.s2s.consent-status operation is used to obtain a list of health plans/payers, represented as Consent resources, that a Member (Patient) has opted in or out of.
  • The request returns a FHIR Bundle containing the list of Consent resources and any reference Organization resources (where applicable).
  • The operation is a "server level" operation. Meaning it is invoked directly on the base server url, and uses a GET http request.
  • The operation is idempotent, and does not modify any resources on the server.
  • In order to be included, Consent resources need to be configured with scope=patient-privacy. Only active or inactive statuses are considered as well.

Request Example

GET [base]/$sdh.s2s.consent-status?patient=Patient%2F2473

Response Example

{
	"resourceType": "Bundle",
	"type": "searchset",
	"entry": [
		{
			"fullUrl": "Consent/2475/_history/1",
			"resource": {
				"resourceType": "Consent",
				"id": "2475",
				"meta": {
					"versionId": "1",
					"lastUpdated": "2026-03-30T17:47:00.080+00:00",
					"source": "#gNrszVXukKcY1zEs"
				},
				"status": "active",
				"scope": {
					"coding": [
						{
							"system": "http://terminology.hl7.org/CodeSystem/consentscope",
							"code": "patient-privacy"
						}
					]
				},
				"patient": {
					"reference": "Patient/2473"
				},
				"performer": [
					{
						"reference": "Organization/2474"
					}
				]
			}
		},
		{
			"fullUrl": "Consent/2476/_history/1",
			"resource": {
				"resourceType": "Consent",
				"id": "2476",
				"meta": {
					"versionId": "1",
					"lastUpdated": "2026-03-30T17:47:00.096+00:00",
					"source": "#jOwLFzp7U2A6ng5y"
				},
				"status": "inactive",
				"scope": {
					"coding": [
						{
							"system": "http://terminology.hl7.org/CodeSystem/consentscope",
							"code": "patient-privacy"
						}
					]
				},
				"patient": {
					"reference": "Patient/2473"
				},
				"performer": [
					{
						"reference": "Organization/2474"
					}
				]
			}
		},
		{
			"fullUrl": "Organization/2474/_history/1",
			"resource": {
				"resourceType": "Organization",
				"id": "2474",
				"meta": {
					"versionId": "1",
					"lastUpdated": "2026-03-30T17:47:00.025+00:00",
					"source": "#krp7AyshWyixeWuN"
				},
				"name": "Test Organization"
			}
		}
	]
}