Mappings for the athena-allergy-profile resource profile.
AthenaAllergy |
AllergyIntolerance | FHIRR4_ALLERGYINTOLERANCEVIEW |
id | MakeId("ALLERGY",%RESOURCEID%) |
meta | |
versionId | MakeId(%AID%) |
lastUpdated | %WHENUPDATED% |
security | |
security (SENSITIVECHART) | CheckSensitive(%SENSITIVECHART%) |
security (CONFABBR) | |
system | getSiteCodeSystem("ConfidentialDocument") |
code | %CONFABBR% |
tag | MakeChangeTagList(%CHANGE%) |
extension | |
extension (encounter) | |
value[x] | MakeReference("ALLERGY",%SDID%,"Encounter") |
extension (enddate) | |
value[x] | %STOPDATE% |
identifier | MakeIdentifier("U",getSiteSystem("AllergyId"),%EXTALLERGYID%) |
clinicalStatus | MapConceptCode("active",%CLINICALSTATUS%,"ALLERGYCLINICALSTATUS") |
verificationStatus | MapConcept(%VERIFICATIONSTATUS%,"ALLERGYVERIFICATIONSTATUS") |
category | MapCode(%ALLCLASS%,"ALLERGYCLASS") |
criticality | MapCode(%ISCRITICAL%,"ALLERGYCRIT") |
code | |
coding | |
coding (LabProd) | |
code | %NDCLABPROD% |
coding (GPI) | |
code | %GPI% |
coding (DDID) | |
code | %DDID% |
coding (KDC) | |
code | %KDC% |
coding (SNOMED) | |
code | %SNOMED% |
coding (RXNORM) | MakeRxnormCodingList(%RXNORM%,"http://www.nlm.nih.gov/research/umls/rxnorm",null) |
text | %NAME% |
patient | MakeReference("PERSON",%PID%,"Patient") |
onset[x] | %ONSETDATE% | %APPROXONSET% |
recordedDate | %WHENCREATED% |
recorder | MakeReference("USR",%CREATOR%,%USRID%,"Practitioner") |
note | makeAnnotation(%DESCRIPTION%) |
reaction | |
manifestation | |
reaction (SHOCK) | |
manifestation | |
coding | MakeCoding(%SHOCK%,"http://snomed.info/sct", "Shock") |
reaction (RESP) | |
manifestation | |
coding | MakeCoding(%RESP%,"http://snomed.info/sct", "Shortness of Breath") |
reaction (GI) | |
manifestation | |
coding | MakeCoding(%GI%,"http://snomed.info/sct", "Gastrointestinal") |
reaction (HEME) | |
manifestation | |
coding | MakeCoding(%HEME%,"http://snomed.info/sct", "Bleeding") |
reaction (RASH) | |
manifestation | |
coding | MakeCoding(%RASH%,"http://snomed.info/sct", "Rash") |
reaction (OTHER) | |
manifestation | |
coding | MakeCoding(%OTHER%,"http://snomed.info/sct", %DESCRIPTION%) |
AthenaAllergy |
AllergyIntolerance | FHIRR4_ALLERGYINTOLERANCEVIEW |
id | MakeId("ALLERGY",%RESOURCEID%) |
meta | |
versionId | MakeId(%AID%) |
lastUpdated | %WHENUPDATED% |
security | |
security (SENSITIVECHART) | CheckSensitive(%SENSITIVECHART%) |
security (CONFABBR) | |
system | getSiteCodeSystem("ConfidentialDocument") |
code | %CONFABBR% |
tag | MakeChangeTagList(%CHANGE%) |
extension | |
extension (encounter) | |
value[x] | MakeReference("ALLERGY",%SDID%,"Encounter") |
extension (enddate) | |
value[x] | %STOPDATE% |
identifier | MakeIdentifier("U",getSiteSystem("AllergyId"),%EXTALLERGYID%) |
clinicalStatus | MapConceptCode("active",%CLINICALSTATUS%,"ALLERGYCLINICALSTATUS") |
verificationStatus | MapConcept(%VERIFICATIONSTATUS%,"ALLERGYVERIFICATIONSTATUS") |
category | MapCode(%ALLCLASS%,"ALLERGYCLASS") |
criticality | MapCode(%ISCRITICAL%,"ALLERGYCRIT") |
code | |
coding | |
coding (LabProd) | |
code | %NDCLABPROD% |
coding (GPI) | |
code | %GPI% |
coding (DDID) | |
code | %DDID% |
coding (KDC) | |
code | %KDC% |
coding (SNOMED) | |
code | %SNOMED% |
coding (RXNORM) | MakeRxnormCodingList(%RXNORM%,"http://www.nlm.nih.gov/research/umls/rxnorm",null) |
text | %NAME% |
patient | MakeReference("PERSON",%PID%,"Patient") |
onset[x] | %ONSETDATE% | %APPROXONSET% |
recordedDate | %WHENCREATED% |
recorder | MakeReference("USR",%CREATOR%,%USRID%,"Practitioner") |
note | makeAnnotation(%DESCRIPTION%) |
reaction | |
manifestation | |
reaction (SHOCK) | |
manifestation | |
coding | MakeCoding(%SHOCK%,"http://snomed.info/sct", "Shock") |
reaction (RESP) | |
manifestation | |
coding | MakeCoding(%RESP%,"http://snomed.info/sct", "Shortness of Breath") |
reaction (GI) | |
manifestation | |
coding | MakeCoding(%GI%,"http://snomed.info/sct", "Gastrointestinal") |
reaction (HEME) | |
manifestation | |
coding | MakeCoding(%HEME%,"http://snomed.info/sct", "Bleeding") |
reaction (RASH) | |
manifestation | |
coding | MakeCoding(%RASH%,"http://snomed.info/sct", "Rash") |
reaction (OTHER) | |
manifestation | |
coding | MakeCoding(%OTHER%,"http://snomed.info/sct", %DESCRIPTION%) |
AthenaAllergy |
AllergyIntolerance | Entity. Role, or Act, Observation[classCode=OBS, moodCode=EVN] |
meta | |
id | n/a |
extension | n/a |
security | |
security (SENSITIVECHART) | |
security (CONFABBR) | |
id | n/a |
extension | n/a |
system | ./codeSystem |
version | ./codeSystemVersion |
code | ./code |
display | CV.displayName |
userSelected | CD.codingRationale |
text | Act.text? |
contained | N/A |
extension | |
extension (encounter) | |
id | n/a |
extension | n/a |
url | N/A |
value[x] | N/A |
extension (enddate) | |
id | n/a |
extension | n/a |
url | N/A |
value[x] | N/A |
modifierExtension | N/A |
identifier | id |
clinicalStatus | Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code="clinicalStatus", moodCode=EVN].value |
verificationStatus | Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code="verificationStatus", moodCode=EVN].value |
type | code |
category | value < IntoleranceValue (Agent) |
criticality | inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)] |
code | substance/product:
.participation[typeCode=CAGNT].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]
negated/excluded substance/product:
.participation[typeCode=CAGNT, negationInd=true].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]
positive or negated/excluded condition/situation:
Observation.code=ASSERTION; Observation.value |
id | n/a |
extension | n/a |
coding | union(., ./translation) |
coding (LabProd) | union(., ./translation) |
id | n/a |
extension | n/a |
system | ./codeSystem |
version | ./codeSystemVersion |
code | ./code |
display | CV.displayName |
userSelected | CD.codingRationale |
coding (GPI) | union(., ./translation) |
id | n/a |
extension | n/a |
system | ./codeSystem |
version | ./codeSystemVersion |
code | ./code |
display | CV.displayName |
userSelected | CD.codingRationale |
coding (DDID) | union(., ./translation) |
id | n/a |
extension | n/a |
system | ./codeSystem |
version | ./codeSystemVersion |
code | ./code |
display | CV.displayName |
userSelected | CD.codingRationale |
coding (KDC) | union(., ./translation) |
id | n/a |
extension | n/a |
system | ./codeSystem |
version | ./codeSystemVersion |
code | ./code |
display | CV.displayName |
userSelected | CD.codingRationale |
coding (SNOMED) | union(., ./translation) |
id | n/a |
extension | n/a |
system | ./codeSystem |
version | ./codeSystemVersion |
code | ./code |
display | CV.displayName |
userSelected | CD.codingRationale |
coding (RXNORM) | union(., ./translation) |
text | ./originalText[mediaType/code="text/plain"]/data |
patient | .participation[typeCode=SBJ].role[classCode=PAT] |
encounter | .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN] |
onset[x] | effectiveTime.low |
recordedDate | .participation[typeCode=AUT].time |
recorder | .participation[typeCode=AUT].role |
asserter | .participation[typeCode=INF].role |
lastOccurrence | outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)].effectiveTime |
note | subjectOf.observationEvent[code="annotation"].value |
reaction | outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)] |
id | n/a |
extension | n/a |
modifierExtension | N/A |
substance | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType] |
manifestation | code |
description | text |
onset | effectiveTime.low |
severity | inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)] |
exposureRoute | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].routeCode |
note | subjectOf.observationEvent[code="annotation"].value |
reaction (SHOCK) | outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)] |
id | n/a |
extension | n/a |
modifierExtension | N/A |
substance | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType] |
manifestation | code |
id | n/a |
extension | n/a |
coding | union(., ./translation) |
text | ./originalText[mediaType/code="text/plain"]/data |
description | text |
onset | effectiveTime.low |
severity | inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)] |
exposureRoute | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].routeCode |
note | subjectOf.observationEvent[code="annotation"].value |
reaction (RESP) | outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)] |
id | n/a |
extension | n/a |
modifierExtension | N/A |
substance | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType] |
manifestation | code |
id | n/a |
extension | n/a |
coding | union(., ./translation) |
text | ./originalText[mediaType/code="text/plain"]/data |
description | text |
onset | effectiveTime.low |
severity | inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)] |
exposureRoute | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].routeCode |
note | subjectOf.observationEvent[code="annotation"].value |
reaction (GI) | outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)] |
id | n/a |
extension | n/a |
modifierExtension | N/A |
substance | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType] |
manifestation | code |
id | n/a |
extension | n/a |
coding | union(., ./translation) |
text | ./originalText[mediaType/code="text/plain"]/data |
description | text |
onset | effectiveTime.low |
severity | inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)] |
exposureRoute | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].routeCode |
note | subjectOf.observationEvent[code="annotation"].value |
reaction (HEME) | outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)] |
id | n/a |
extension | n/a |
modifierExtension | N/A |
substance | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType] |
manifestation | code |
id | n/a |
extension | n/a |
coding | union(., ./translation) |
text | ./originalText[mediaType/code="text/plain"]/data |
description | text |
onset | effectiveTime.low |
severity | inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)] |
exposureRoute | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].routeCode |
note | subjectOf.observationEvent[code="annotation"].value |
reaction (RASH) | outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)] |
id | n/a |
extension | n/a |
modifierExtension | N/A |
substance | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType] |
manifestation | code |
id | n/a |
extension | n/a |
coding | union(., ./translation) |
text | ./originalText[mediaType/code="text/plain"]/data |
description | text |
onset | effectiveTime.low |
severity | inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)] |
exposureRoute | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].routeCode |
note | subjectOf.observationEvent[code="annotation"].value |
reaction (OTHER) | outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)] |
id | n/a |
extension | n/a |
modifierExtension | N/A |
substance | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType] |
manifestation | code |
id | n/a |
extension | n/a |
coding | union(., ./translation) |
text | ./originalText[mediaType/code="text/plain"]/data |
description | text |
onset | effectiveTime.low |
severity | inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)] |
exposureRoute | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].routeCode |
note | subjectOf.observationEvent[code="annotation"].value |