Mappings for the athena-relatedperson-profile resource profile.
AthenaRelatedPerson |
RelatedPerson | FHIRR4_RELATEDPERSONVIEW |
id | MakeIdWithPrefixAndSuffix(%ID%,%ID_PREFIX%,%PID%) |
meta | |
security (SENSITIVECHART) | CheckSensitive(%SENSITIVECHART%) |
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%) |
active | Equals("true",%ACTIVE%) |
patient | MakeReference("PATIENTPROFILE",%PID%,"Patient") |
relationship | MapConcept(%RELATIONSHIP%,"PATIENTRELATIONSHIP") |
name | |
family | %LASTNAME% |
given (FIRSTNAME) | %FIRSTNAME% |
given (MIDDLENAME) | %MIDDLENAME% |
prefix | %TITLE% |
suffix | %ENTITLEMENTS% |
telecom | |
telecom (WORKPHONE) | |
value | %WORKPHONE% |
telecom (ALTPHONE) | |
value | %ALTPHONE% |
telecom (CELLPHONE) | |
value | %CELLPHONE% |
telecom (FAXPHONE) | |
value | %FAXPHONE% |
telecom (PAGERPHONE) | |
value | %PAGERPHONE% |
gender | MapCode(%SEX%,"GENDER") |
birthDate | %BIRTHDATE% |
address | |
line (ADDRESS1) | %ADDRESS1% |
line (ADDRESS2) | %ADDRESS2% |
city | %CITY% |
state | %STATE% |
postalCode | %ZIP% |
country | %COUNTRY% |
AthenaRelatedPerson |
RelatedPerson | Entity. Role, or Act, role |
meta | |
id | n/a |
extension | n/a |
text | Act.text? |
contained | N/A |
extension | N/A |
modifierExtension | N/A |
identifier | .id |
identifier (SSN) | .id |
identifier (External) | .id |
active | .statusCode |
patient | scoper[classCode=PSN|ANM and determinerCode='INSTANCE']/playedRole[classCode='PAT']/id |
relationship | code |
name | name |
id | n/a |
extension | n/a |
use | unique(./use) |
text | ./formatted |
family | ./part[partType = FAM] |
given | ./part[partType = GIV] |
given (FIRSTNAME) | ./part[partType = GIV] |
given (MIDDLENAME) | ./part[partType = GIV] |
prefix | ./part[partType = PFX] |
suffix | ./part[partType = SFX] |
period | ./usablePeriod[type="IVL<TS>"] |
telecom | telecom |
telecom (WORKPHONE) | telecom |
id | n/a |
extension | n/a |
system | ./scheme |
value | ./url |
use | unique(./use) |
rank | n/a |
period | ./usablePeriod[type="IVL<TS>"] |
telecom (ALTPHONE) | telecom |
id | n/a |
extension | n/a |
system | ./scheme |
value | ./url |
use | unique(./use) |
rank | n/a |
period | ./usablePeriod[type="IVL<TS>"] |
telecom (CELLPHONE) | telecom |
id | n/a |
extension | n/a |
system | ./scheme |
value | ./url |
use | unique(./use) |
rank | n/a |
period | ./usablePeriod[type="IVL<TS>"] |
telecom (FAXPHONE) | telecom |
id | n/a |
extension | n/a |
system | ./scheme |
value | ./url |
rank | n/a |
period | ./usablePeriod[type="IVL<TS>"] |
telecom (PAGERPHONE) | telecom |
id | n/a |
extension | n/a |
system | ./scheme |
value | ./url |
use | unique(./use) |
rank | n/a |
period | ./usablePeriod[type="IVL<TS>"] |
gender | administrativeGender |
birthDate | player.birthTime |
address | addr |
id | n/a |
extension | n/a |
use | unique(./use) |
type | unique(./use) |
text | ./formatted |
line | AD.part[parttype = AL] |
line (ADDRESS1) | AD.part[parttype = AL] |
line (ADDRESS2) | AD.part[parttype = AL] |
city | AD.part[parttype = CTY] |
district | AD.part[parttype = CNT | CPA] |
state | AD.part[parttype = STA] |
postalCode | AD.part[parttype = ZIP] |
country | AD.part[parttype = CNT] |
period | ./usablePeriod[type="IVL<TS>"] |
photo | player[classCode='PSN' and determinerCode='INSTANCE']/desc |
period | .effectiveTime |
communication | LanguageCommunication |
id | n/a |
extension | n/a |
modifierExtension | N/A |
language | player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code |
preferred | preferenceInd |
AthenaRelatedPerson |
RelatedPerson | |
identifier | NK1-33 |
identifier (SSN) | NK1-33 |
identifier (External) | NK1-33 |
patient | PID-3 |
relationship | NK1-3 |
name | NK1-2 |
use | XPN.7, but often indicated by which field contains the name |
text | implied by XPN.11 |
family | XPN.1/FN.1 |
given | XPN.2 + XPN.3 |
given (FIRSTNAME) | XPN.2 + XPN.3 |
given (MIDDLENAME) | XPN.2 + XPN.3 |
prefix | XPN.5 |
suffix | XPN/4 |
period | XPN.13 + XPN.14 |
telecom | NK1-5 / NK1-6 / NK1-40 |
telecom (WORKPHONE) | NK1-5 / NK1-6 / NK1-40 |
system | XTN.3 |
value | XTN.1 (or XTN.12) |
use | XTN.2 - but often indicated by field |
rank | n/a |
period | N/A |
telecom (ALTPHONE) | NK1-5 / NK1-6 / NK1-40 |
system | XTN.3 |
value | XTN.1 (or XTN.12) |
use | XTN.2 - but often indicated by field |
rank | n/a |
period | N/A |
telecom (CELLPHONE) | NK1-5 / NK1-6 / NK1-40 |
system | XTN.3 |
value | XTN.1 (or XTN.12) |
use | XTN.2 - but often indicated by field |
rank | n/a |
period | N/A |
telecom (FAXPHONE) | NK1-5 / NK1-6 / NK1-40 |
system | XTN.3 |
value | XTN.1 (or XTN.12) |
rank | n/a |
period | N/A |
telecom (PAGERPHONE) | NK1-5 / NK1-6 / NK1-40 |
system | XTN.3 |
value | XTN.1 (or XTN.12) |
use | XTN.2 - but often indicated by field |
rank | n/a |
period | N/A |
gender | NK1-15 |
address | NK1-4 |
use | XAD.7 |
type | XAD.18 |
text | XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6 |
line | XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address) |
line (ADDRESS1) | XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address) |
line (ADDRESS2) | XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address) |
city | XAD.3 |
district | XAD.9 |
state | XAD.4 |
postalCode | XAD.5 |
country | XAD.6 |
period | XAD.12 / XAD.13 + XAD.14 |
photo | OBX-5 - needs a profile |