Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created a base Exposure class #45

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 21 additions & 34 deletions src/bdchm/schema/bdchm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -470,14 +470,11 @@ classes:
slots:
- identity

DrugExposure:
Exposure:
is_a: Entity
description: >-
DrugExposures are records of a Person suggesting exposure to a medication. The source could be prescription, dispensing, medication administration records (MARs), or patient medication list.
Exposures are records of a Person suggesting exposure to a medication, device, environmental material.
attributes:
drug_concept:
range: DrugExposureConceptEnum
description: The coded value for a drug. From RxNorm. The syntax for the enum may need work.
age_at_exposure_start:
range: integer
description: The Participant's age (expressed in days) at the exposure start date.
Expand All @@ -488,6 +485,24 @@ classes:
description: The Participant's age (expressed in days) at the exposure end date, if available. Otherwise equal to age_at_exposure_start.
unit:
ucum_code: d
associated_participant:
range: Participant
description: A reference to the Participant to which the exposure is attributed.
associated_visit:
description: A reference to the Visit the exposure is associated with, if any.
range: Visit
required: false
slots:
- identity

DrugExposure:
is_a: Exposure
description: >-
DrugExposures are records of a Person suggesting exposure to a medication. The source could be prescription, dispensing, medication administration records (MARs), or patient medication list.
attributes:
drug_concept:
range: DrugExposureConceptEnum
description: The coded value for a drug. From RxNorm. The syntax for the enum may need work.
exposure_provenance:
range: DrugExposureProvenanceEnum
description: A value representing the provenance of the DrugExposure record. From OMOP Drug Types.
Expand All @@ -512,50 +527,22 @@ classes:
route_concept:
range: DrugRouteEnum
description: Route of drug administration.
associated_participant:
range: Participant
description: A reference to the Participant to which the exposure is attributed.
associated_visit:
description: A reference to the Visit the exposure is associated with, if any.
range: Visit
required: false
slots:
- identity

DeviceExposure:
is_a: Entity
is_a: Exposure
description: >-
DeviceExposures are records of a Person suggesting exposure to a foreign object. The source is typically physical objects used in procedures, measurements, or observations.
attributes:
device_concept:
range: DeviceExposureConceptEnum
description: The coded value for a device. Primarily SNOMED. The syntax for the enum may need work.
age_at_exposure_start:
range: integer
description: The Participant's age (expressed in days) at the exposure start date.
unit:
ucum_code: d
age_at_exposure_end:
range: integer
description: The Participant's age (expressed in days) at the exposure end date, if available. Otherwise equal to age_at_exposure_start.
unit:
ucum_code: d
exposure_provenance:
range: DeviceExposureProvenanceEnum
description: A value representing the provenance of the DeviceExposure record. From OMOP Device Types.
quantity:
range: float
description: Amount of device used. If not present in source, default to 1.
required: false
associated_participant:
range: Participant
description: A reference to the Participant to which the exposure is attributed.
associated_visit:
description: A reference to the Visit the exposure is associated with, if any.
range: Visit
required: false
slots:
- identity

DimensionalObservation:
is_a: Observation
Expand Down