This RelatedPerson profile is part of the set of resource profiles supported by the API Server used with the athenaPractice 12.3 and athenaFlow 9.12 products. It further describes read, search, create and update capabilities of these products.
This resource captures Information about a person that is involved in the care of a patient but who is not the target of healthcare nor has a formal responsibility in the care process.
This profile is used to define the content that will be returned by the API Server in response to requests to access RelatedPerson resources. All elements listed in the differential profile view are Supported, which means that the API Server is capable of supplying these fields from the product database when they have been populated via the product or its APIs.
The profile also defines the content that must be supplied to the API Server in response to requests to populate RelatedPerson resources. Fields which are marked as Mandatory in this profile are those that must be supplied to the API Server in content used to populate a resource.
The RelatedPerson resource is used to access and update patient related contacts (e.g., Family members). It is derived from the PatientRelationship, Guarantor and CareTeamMember tables in athenaFlow and the RELPERS and CARETEAMMEMBER tables in athenaFlow. Specific detail can be found in the Mappings section in the profile detail page.
The operations supported by this resource are listed below.
Read operations are executed as specified in the HL7 FHIR RESTful API implementation definition. To read a RelatedPerson, an application shall perform an HTTP GET, specifying the identifier of the resources being retrieved.
GET [base]/fhir/RelatedPerson/[id]{?_format=[json|xml]&_summary=[true|data]}
Parameter | Description |
---|---|
[base] | Specifies the base URL of the FHIR Server, e.g., https://cpsapisandbox.virenceaz.com:9443/demoAPIServer |
[id] | Specifies the identifier of the RelatedPerson resource to retrieve |
[_format] | Specifies the format of the output and may be xml or json. When present, the _format value overrides the value of the Accept header in the request. |
[_summary] | Filters the output to include only summary elements (_summary=true) or to omit the generated narrative (_summary=data). Note: If the generated html narrative for the resource is not going to be used by the call, using _summary=data provides slightly improved API response times. |
Response Code | Description |
---|---|
200 OK | The requested resource was found and is contained within the body of the HTTP response. |
401 Unauthorized | Authorization is required for this request, and either the Authorization header is missing or the supplied user credentials in the Authorization header are not valid or have expired. The body of the HTTP response will contain an OperationOutcome resource that indicates that Authorization is required. |
404 Not Found | The requested resource does not exist. The body of the HTTP response will contain an OperationOutcome resource that indicates that the resource could not be found. |
500 Server Error | The server may return other error codes to indicate other error conditions. The body of the HTTP response will contain an OperationOutcome resource that indicates the nature of the error. |
Search operations are executed as specified in the HL7 FHIR RESTful API implementation definition. To search for RelatedPerson resources, an application shall perform an HTTP GET, specifying the query parameters associated with the resource.
GET [base]/fhir/RelatedPerson?{search-parameters}{&_count=[max-results]&_format=[json|xml]&_summary=[true|text|data]}
Parameter | Description |
---|---|
[base] | Specifies the base URL of the FHIR Server, e.g., https://cpsapisandbox.virenceaz.com:9443/demoAPIServer |
[_count] | Specifies the maximum number of search results to return in a single query. Note: The count of results does not limit the number of additional resources returned via the _include parameter. No more than max-results RelatedPerson resources which match the search criteria will be returned. The API Server has default and maximum limits for the value that can be specified for this parameter. These limits may vary depending upon the client application vendors participation level in the AthenHealth Partner program. Note: The API Server support the HL7 FHIR Paging capability. |
[_format] | Specifies the format of the output and may be xml or json. When present, the _format value overrides the value of the Accept header in the request. |
[_summary] | Filters the output to include only narrative elements (_summary=text), summary elements (_summary=true) or to omit the generated narrative (_summary=data). Note: If the generated html narrative for the resource is not going to be used by the call, using _summary=data provides improved API response times, especially when returning larger result sets. |
_id (token ) | The ID of the resource |
_security (token ) | |
address-city (string ) | A city specified in an address |
address-country (string ) | A country specified in an address |
address-postalcode (string ) | A postal code specified in an address |
address-state (string ) | A state specified in an address |
birthdate (date ) | The Related Person's date of birth |
birthdate-fromnow (quantity ) | Like birthdate except expressed as a positive or negative offset from the current time in units of time , e.g. birthdate-fromnow=ge7||d for more than seven days in the future or =le-2||mo for less than two months in the past. The unit must be specified. |
gender (token ) | Gender of the person |
identifier (token ) | A patient Identifier |
patient (reference ) | The patient this person is related to |
phone (token ) | A value in a phone contact |
telecom (token ) | The value in any kind of contact |
Response Code | Description |
---|---|
200 OK | The query was performed and any results found are contained within the body of the HTTP response. Note: The search API will return 200 OK when the query itself is successful, regardless of whether or not any matching results were found. |
401 Unauthorized | Authorization is required for this request, and either the Authorization header is missing or the supplied user credentials in the Authorization header are not valid or have expired. The body of the HTTP response will contain an OperationOutcome resource that indicates that Authorization is required. |
500 Server Error | The server may return other error codes to indicate other error conditions. The body of the HTTP response will contain an OperationOutcome resource that indicates the nature of the error. |
Create operations are executed as specified in the HL7 FHIR RESTful API implementation definition. To create a new RelatedPerson resource, an application must perform an HTTP POST, specifying the content of the resource in the body of the request.
POST [base]/fhir/RelatedPerson?{_format=[json|xml]}
Parameter | Description |
---|---|
[_format] | Specifies the format of the output and may be xml or json. When present, the _format value overrides the value of the Accept header in the request. |
Response Code | Description |
---|---|
201 Created | The resource was created at the location specified in the HTTP Location header. Note: Unsupported fields will be accepted in a request but will not be persisted to the database. Some fields may be mapped to database specific codes which closely but not perfectly match the input. See the HL7 FHIR specification for more detail on server permitted changes. |
400 Bad Request | The resource could not be parsed, or failed basic validation rules. The body of the HTTP response will contain an OperationOutcome resource that provide more detail about the reason for the failure. |
401 Unauthorized | Authorization is required for this request, and either the Authorization header is missing or the supplied user credentials in the Authorization header are not valid or have expired. The body of the HTTP response will contain an OperationOutcome resource that indicates that Authorization is required. |
422 Unprocessable Entity | The proposed resource violated server business rules. For example, a required field may be missing or a field may contain a value that is not supported by the API Server. The body of the HTTP response will contain an OperationOutcome resource that provide more detail about the reason for the failure. |
500 Server Error | The server may return other error codes to indicate other error conditions. The body of the HTTP response will contain an OperationOutcome resource that indicates the nature of the error. |
Update operations are executed as specified in the HL7 FHIR RESTful API implementation definition. To create a new RelatedPerson resource, an application must perform an HTTP PUT, specifying the content of the resource in the body of the request.
PUT [base]/fhir/RelatedPerson/[id]?{_format=[json|xml]}
Parameter | Description |
---|---|
[_format] | Specifies the format of the output and may be xml or json. When present, the _format value overrides the value of the Accept header in the request. |
Response Code | Description |
---|---|
200 OK | The resource was updated at the location specified in the HTTP Location header. Note: Unsupported fields will be accepted in a request but will not be persisted to the database. Some fields may be mapped to database specific codes which closely but not perfectly match the input. See the HL7 FHIR specification for more detail on server permitted changes. |
400 Bad Request | The resource could not be parsed, or failed basic validation rules. The body of the HTTP response will contain an OperationOutcome resource that provide more detail about the reason for the failure. |
401 Unauthorized | Authorization is required for this request, and either the Authorization header is missing or the supplied user credentials in the Authorization header are not valid or have expired. The body of the HTTP response will contain an OperationOutcome resource that indicates that Authorization is required. |
422 Unprocessable Entity | The proposed resource violated server business rules. For example, a required field may be missing or a field may contain a value that is not supported by the API Server. The body of the HTTP response will contain an OperationOutcome resource that provide more detail about the reason for the failure. |
500 Server Error | The server may return other error codes to indicate other error conditions. The body of the HTTP response will contain an OperationOutcome resource that indicates the nature of the error. |
The official URL for this profile is:
http://hl7.org/fhir/StructureDefinition/relatedperson-profile
An person that is related to a patient, but who is not a direct target of care
Name | Flags | Card. | Type | Description & Constraints | |
---|---|---|---|---|---|
![]() ![]() | 0..* | RelatedPerson | An person that is related to a patient, but who is not a direct target of care | ||
![]() ![]() ![]() | ∑ | 0..1 | Meta | Metadata about the resource | |
![]() ![]() ![]() | ?! ∑ | 0..1 | uri | A set of rules under which this content was created | |
![]() ![]() ![]() | 0..1 | code | Language of the resource content Binding: IETF BCP-47 ![]() | ||
![]() ![]() ![]() | I | 0..1 | Narrative | Text summary of the resource, for human interpretation | |
![]() ![]() ![]() | 0..* | Resource | Contained, inline Resources | ||
![]() ![]() ![]() | 0..* | Extension | Additional Content defined by implementations | ||
![]() ![]() ![]() | ?! | 0..* | Extension | Extensions that cannot be ignored | |
![]() ![]() ![]() | ∑ | Identifier | A human identifier for this person Slice: Unordered, Closed, by type | ||
![]() ![]() ![]() | ∑ | 1..* | Identifier | A human identifier for this person | |
![]() ![]() ![]() | ∑ | 0..1 | Identifier | A human identifier for this person | |
![]() ![]() ![]() | ∑ | 0..1 | Identifier | A human identifier for this person | |
![]() ![]() ![]() | ∑ | 1..1 | Reference (Patient ) | The patient this person is related to | |
![]() ![]() ![]() | ∑ | 0..1 | CodeableConcept | The nature of the relationship Binding: PatientRelationshipType (required ) | |
![]() ![]() ![]() | ∑ | 1..1 | HumanName | A name associated with the person | |
![]() ![]() ![]() ![]() | 0..* | Extension | Additional Content defined by implementations | ||
![]() ![]() ![]() ![]() | ?! ∑ | 0..1 | code | usual | official | temp | nickname | anonymous | old | maiden Binding: NameUse (required ) | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Text representation of the full name | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Family name (often called 'Surname') | |
![]() ![]() ![]() ![]() | ∑ | string | Given names (not always 'first'). Includes middle names Slice: Ordered, Closed, by given | ||
![]() ![]() ![]() ![]() | ∑ | 0..2 | string | Given names (not always 'first'). Includes middle names | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Given names (not always 'first'). Includes middle names | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Given names (not always 'first'). Includes middle names | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Parts that come before the name | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Parts that come after the name | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | Period | Time period when name was/is in use | |
![]() ![]() ![]() | ∑ | ContactPoint | A contact detail for the person Slice: Unordered, Closed, by type use | ||
![]() ![]() ![]() | ∑ | 0..6 | ContactPoint | A contact detail for the person | |
![]() ![]() ![]() | ∑ | 0..1 | ContactPoint | A contact detail for the person | |
![]() ![]() ![]() ![]() | 0..* | Extension | Additional Content defined by implementations | ||
![]() ![]() ![]() ![]() | ∑ I | 1..1 | code | phone | fax | email | pager | other Binding: ContactPointSystem (required ) Fixed Value: phone | |
![]() ![]() ![]() ![]() | ∑ | 1..1 | string | The actual contact point details | |
![]() ![]() ![]() ![]() | ?! ∑ | 0..1 | code | home | work | temp | old | mobile - purpose of this contact point Binding: ContactPointUse (required ) Fixed Value: work | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | positiveInt | Specify preferred order of use (1 = highest) | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | Period | Time period when the contact point was/is in use | |
![]() ![]() ![]() | ∑ | 0..1 | ContactPoint | A contact detail for the person | |
![]() ![]() ![]() ![]() | 0..* | Extension | Additional Content defined by implementations | ||
![]() ![]() ![]() ![]() | ∑ I | 1..1 | code | phone | fax | email | pager | other Binding: ContactPointSystem (required ) Fixed Value: phone | |
![]() ![]() ![]() ![]() | ∑ | 1..1 | string | The actual contact point details | |
![]() ![]() ![]() ![]() | ?! ∑ | 0..1 | code | home | work | temp | old | mobile - purpose of this contact point Binding: ContactPointUse (required ) Fixed Value: home | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | positiveInt | Specify preferred order of use (1 = highest) | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | Period | Time period when the contact point was/is in use | |
![]() ![]() ![]() | ∑ | 0..1 | ContactPoint | A contact detail for the person | |
![]() ![]() ![]() ![]() | 0..* | Extension | Additional Content defined by implementations | ||
![]() ![]() ![]() ![]() | ∑ I | 1..1 | code | phone | fax | email | pager | other Binding: ContactPointSystem (required ) Fixed Value: phone | |
![]() ![]() ![]() ![]() | ∑ | 1..1 | string | The actual contact point details | |
![]() ![]() ![]() ![]() | ?! ∑ | 0..1 | code | home | work | temp | old | mobile - purpose of this contact point Binding: ContactPointUse (required ) Fixed Value: mobile | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | positiveInt | Specify preferred order of use (1 = highest) | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | Period | Time period when the contact point was/is in use | |
![]() ![]() ![]() | ∑ | 0..1 | ContactPoint | A contact detail for the person | |
![]() ![]() ![]() ![]() | 0..* | Extension | Additional Content defined by implementations | ||
![]() ![]() ![]() ![]() | ∑ I | 1..1 | code | phone | fax | email | pager | other Binding: ContactPointSystem (required ) Fixed Value: fax | |
![]() ![]() ![]() ![]() | ∑ | 1..1 | string | The actual contact point details | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | positiveInt | Specify preferred order of use (1 = highest) | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | Period | Time period when the contact point was/is in use | |
![]() ![]() ![]() | ∑ | 0..1 | ContactPoint | A contact detail for the person | |
![]() ![]() ![]() ![]() | 0..* | Extension | Additional Content defined by implementations | ||
![]() ![]() ![]() ![]() | ∑ I | 1..1 | code | phone | fax | email | pager | other Binding: ContactPointSystem (required ) Fixed Value: pager | |
![]() ![]() ![]() ![]() | ∑ | 1..1 | string | The actual contact point details | |
![]() ![]() ![]() ![]() | ?! ∑ | 0..1 | code | home | work | temp | old | mobile - purpose of this contact point Binding: ContactPointUse (required ) | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | positiveInt | Specify preferred order of use (1 = highest) | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | Period | Time period when the contact point was/is in use | |
![]() ![]() ![]() | ∑ | 0..1 | code | male | female | other | unknown Binding: AdministrativeGender (required ) | |
![]() ![]() ![]() | ∑ | 0..1 | date | The date on which the related person was born | |
![]() ![]() ![]() | ∑ | 0..1 | Address | Address where the related person can be contacted or visited | |
![]() ![]() ![]() ![]() | 0..* | Extension | Additional Content defined by implementations | ||
![]() ![]() ![]() ![]() | ?! ∑ | 0..1 | code | home | work | temp | old - purpose of this address Binding: AddressUse (required ) Example: home | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | code | postal | physical | both Binding: AddressType (required ) Example: both | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Text representation of the address Example: 137 Nowhere Street, Erewhon 9132 | |
![]() ![]() ![]() ![]() | ∑ | string | Street name, number, direction & P.O. Box etc. Slice: Ordered, Closed, by line Example: 137 Nowhere Street | ||
![]() ![]() ![]() ![]() | ∑ | 0..2 | string | Street name, number, direction & P.O. Box etc. Example: 137 Nowhere Street | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Street name, number, direction & P.O. Box etc. Example: 137 Nowhere Street | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Street name, number, direction & P.O. Box etc. Example: 137 Nowhere Street | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Name of city, town etc. Example: Erewhon | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | District name (aka county) Example: Madison | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Sub-unit of country (abbreviations ok) | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Postal code for area Example: 9132 | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | string | Country (can be ISO 3166 3 letter code) | |
![]() ![]() ![]() ![]() | ∑ | 0..1 | Period | Time period when address was/is in use Example: {"start":"2010-03-23","end":"2010-07-01"} | |
![]() ![]() ![]() | 0..* | Attachment | Image of the person | ||
![]() ![]() ![]() | 0..1 | Period | Period of time that this relationship is considered valid | ||
The mappings in this section represent the how data stored within athenaPractice is served through the product's APIs.
athenaPractice and athenaFlow share a common schema for patient clinical data and only one is shown when these are
the same. Use of this information is subject to the API Server
Terms and Conditions .
Relatedperson Profile | ||
RelatedPerson | RelatedPerson-Profile | FHIR_RELATEDPERSONVIEW |
├ id | ID | MakeIdWithPrefixAndSuffix(%ID%,%ID_PREFIX%,%PID%) |
├ identifier | Related Person Identifiers | |
├ identifier | SSN | MakeIdentifier("secondary","http://hl7.org/fhir/identifier-type","SB","http://hl7.org/fhir/sid/us-ssn",%SSN%) |
├ identifier | External | MakeIdentifierWithPrefixAndSuffix("U",getSiteSystem("RelatedPersonId"),%ID%,%ID_PREFIX%,%PID%) |
├ patient | PID | MakeReference("PATIENTPROFILE",%PID%,"Patient") |
├ relationship | RELATIONSHIP | MapConcept(%RELATIONSHIP%,"PATIENTRELATIONSHIP") |
│ ├ family | LASTNAME | %LASTNAME% |
│ ├ given | Given Names | |
│ ├ given | FIRSTNAME | %FIRSTNAME% |
│ ├ given | MIDDLENAME | %MIDDLENAME% |
│ ├ prefix | TITLE | %TITLE% |
│ └ suffix | ENTITLEMENTS | %ENTITLEMENTS% |
├ telecom | Phone Numbers | |
├ telecom | WORKPHONE | |
│ └ value | %WORKPHONE% | |
├ telecom | ALTPHONE | |
│ └ value | %ALTPHONE% | |
├ telecom | CELLPHONE | |
│ └ value | %CELLPHONE% | |
├ telecom | FAXPHONE | |
│ └ value | %FAXPHONE% | |
├ telecom | PAGERPHONE | |
│ └ value | %PAGERPHONE% | |
├ gender | gender | MapCode(%SEX%,"GENDER") |
└ birthDate | BIRTHDATE | %BIRTHDATE% |
├ line | Address Lines | |
├ line | ADDRESS1 | %ADDRESS1% |
├ line | ADDRESS2 | %ADDRESS2% |
├ city | CITY | %CITY% |
├ state | STATE | %STATE% |
├ postalCode | ZIP | %ZIP% |
└ country | COUNTRY | %COUNTRY% |
The mappings in this section represent the how data stored within athenaFlow is served through the product's APIs.
Use of this information is subject to the API Server
Terms and Conditions .
Relatedperson Profile | ||
RelatedPerson | RelatedPerson-Profile | FHIR_RELATEDPERSONVIEW |
├ id | ID | MakeId(%ID%) |
├ identifier | Related Person Identifiers | |
├ identifier | SSN | |
├ identifier | External | MakeIdentifier("U",getSiteSystem("RelatedPersonId"),%ID%) |
├ patient | PID | MakeReference("PERSON",%PID%,"Patient") |
├ relationship | RELATIONSHIP | MapConcept(%RELATIONSHIP%,"PATIENTRELATIONSHIP") |
│ ├ family | LASTNAME | %LASTNAME% |
│ ├ given | Given Names | |
│ ├ given | FIRSTNAME | %FIRSTNAME% |
│ ├ given | MIDDLENAME | %MIDDLENAME% |
│ ├ prefix | TITLE | %TITLE% |
│ └ suffix | ENTITLEMENTS | %ENTITLEMENTS% |
├ telecom | Phone Numbers | |
├ telecom | WORKPHONE | |
│ └ value | %WORKPHONE% | |
├ telecom | ALTPHONE | |
│ └ value | %ALTPHONE% | |
├ telecom | CELLPHONE | |
│ └ value | %CELLPHONE% | |
├ telecom | FAXPHONE | |
│ └ value | %FAXPHONE% | |
├ telecom | PAGERPHONE | |
│ └ value | %PAGERPHONE% | |
├ gender | gender | MapCode(%SEX%,"GENDER") |
└ birthDate | BIRTHDATE | %BIRTHDATE% |
├ line | Address Lines | |
├ line | ADDRESS1 | %ADDRESS1% |
├ line | ADDRESS2 | %ADDRESS2% |
├ city | CITY | %CITY% |
├ state | STATE | %STATE% |
├ postalCode | ZIP | %ZIP% |
└ country | COUNTRY | %COUNTRY% |