Overview
The Observation Sexual Orientation resource represents a patient’s self-identified sexual orientation. Sexual orientation is a person’s identity in relation to the gender or genders to which they are romantically or sexually attracted. This resource captures patient-reported sexual orientation information as part of comprehensive patient demographics and social history. At its minimum, Observation contains a specific LOINC code for sexual orientation (76690-7), a status, a reference to the patient, and the sexual orientation value, but may also contain data about when the information was recorded and who recorded it. Each Observation has next elements:- a status
- a fixed code for sexual orientation(76690-7)
- a patient
- a time indicating when the observation was made
- a sexual orientation value
- Additional codes that translate or map to the Observation code (e.g., local codes) are allowed.
| USCore Data Element | FHIR Resource Field |
|---|---|
| status | Observation.status |
| a fixed code for sexual orientation | Observation.code |
| patient | Observation.subject |
| a time indicating when the observation was made | Observation.effective[x] |
| a sexual orientation value | Observation.value[x] |
Must support elements, mandatory and optional search parameters
Observationmust support these elements:statuscodesubjecteffective[x]value[x]:valueCodeableConcept
GET [base url]/Observation?patient={Type/}[id]&code={system|}[code]{,{system|}[code],...}
SHALL support searching for all Observations for a patient and code and date search parameters:
- including support for these date comparators: gt,lt,ge,le
- including optional support for AND search on date (e.g.date={date}&date={date}}&…)
GET [base url]/Observation?patient={Type/}{id}&code={system|}|{code}{,{system|}|{code},...}&date={gt|lt|ge|le}{date}{&date={gt|lt|ge|le}{date}&...}
patient and code search parameters:
- including optional support for OR search on code (e.g.code={system|}[code],{system|}[code],…)
GET [base url]/Observation?patient={Type/}[id]&code={system|}[code]
SHALL support searching using the combination of the patient and category search parameters:
GET [base url]/Observation?patient={Type/}[id]&category={system|}[code]
SHALL support searching using the combination of the patient and category and date search parameters:
- including support for these date comparators: gt,lt,ge,le
- including optional support for AND search on date (e.g.date=[date]&date=[date]]&…)
GET [base url]/Observation?patient={Type/}[id]&category={http://terminology.hl7.org/CodeSystem/observation-category|}social-history&date={gt|lt|ge|le}[date]{&date={gt|lt|ge|le}[date]&...}
patient and category and status search parameters:
- including support for OR search on status (e.g.status={system|}[code],{system|}[code],…)
GET [base url]/Observation?patient={Type/}[id]&category={http://terminology.hl7.org/CodeSystem/observation-category|}social-history&status={system|}[code]{,{system|}[code],...}
patient and code and date search parameters:
- including optional support for OR search on code (e.g.code={system|}[code],{system|}[code],…)
- including support for these date comparators: gt,lt,ge,le
- including optional support for AND search on date (e.g.date=[date]&date=[date]]&…)
GET [base url]/Observation?patient={Type/}[id]&code={system|}[code]{,{system|}[code],...}&date={gt|lt|ge|le}[date]{&date={gt|lt|ge|le}[date]&...}
Observation Sexual Orientation By patient and code search parameters
Get Observation Sexual Orientation by combination of the patient and code search parameters. METHOD GET| Header | Type | Required/Optional | Value |
|---|---|---|---|
| Authorization | string | required | Bearer <token> |
| Code | Description | Comment |
|---|---|---|
| 200 | OK | The request was processed successfully |
| 400 | Bad request | Invalid request parameters or FHIR operation outcome resource returned |
| 401 | Unauthorized | This code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource |
| 404 | No route matched with those values | The request was able to communicate with a given server, but the server could not find what was requested |
| 500 | Internal Server Error | The server has encountered a situation it doesn’t know how to handle |
Observation Sexual Orientation By patient and category search parameters
Get Observation Sexual Orientation by combination of the patient and category search parameters. METHOD GET| Header | Type | Required/Optional | Value |
|---|---|---|---|
| Authorization | string | required | Bearer <token> |
| Code | Description | Comment |
|---|---|---|
| 200 | OK | The request was processed successfully |
| 400 | Bad request | Invalid request parameters or FHIR operation outcome resource returned |
| 401 | Unauthorized | This code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource |
| 404 | No route matched with those values | The request was able to communicate with a given server, but the server could not find what was requested |
| 500 | Internal Server Error | The server has encountered a situation it doesn’t know how to handle |
Observation Sexual Orientation By patient, category and date search parameters
Get Observation Sexual Orientation by combination of the patient, category and date search parameters. METHOD GET| Header | Type | Required/Optional | Value |
|---|---|---|---|
| Authorization | string | required | Bearer <token> |
| Code | Description | Comment |
|---|---|---|
| 200 | OK | The request was processed successfully |
| 400 | Bad request | Invalid request parameters or FHIR operation outcome resource returned |
| 401 | Unauthorized | This code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource |
| 404 | No route matched with those values | The request was able to communicate with a given server, but the server could not find what was requested |
| 500 | Internal Server Error | The server has encountered a situation it doesn’t know how to handle |
Observation Sexual Orientation By patient, category and status search parameters
Get Observation Sexual Orientation by combination of the patient, category and status search parameters. METHOD GET| Header | Type | Required/Optional | Value |
|---|---|---|---|
| Authorization | string | required | Bearer <token> |
| Code | Description | Comment |
|---|---|---|
| 200 | OK | The request was processed successfully |
| 400 | Bad request | Invalid request parameters or FHIR operation outcome resource returned |
| 401 | Unauthorized | This code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource |
| 404 | No route matched with those values | The request was able to communicate with a given server, but the server could not find what was requested |
| 500 | Internal Server Error | The server has encountered a situation it doesn’t know how to handle |
Observation Sexual Orientation By patient, code and date search parameters
Get Observation Sexual Orientation by combination of the patient, code and date search parameters. METHOD GET| Header | Type | Required/Optional | Value |
|---|---|---|---|
| Authorization | string | required | Bearer <token> |
| Code | Description | Comment |
|---|---|---|
| 200 | OK | The request was processed successfully |
| 400 | Bad request | Invalid request parameters or FHIR operation outcome resource returned |
| 401 | Unauthorized | This code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource |
| 404 | No route matched with those values | The request was able to communicate with a given server, but the server could not find what was requested |
| 500 | Internal Server Error | The server has encountered a situation it doesn’t know how to handle |