Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cgmeyer committed Jun 6, 2024
1 parent 97bee21 commit 73193a0
Show file tree
Hide file tree
Showing 17 changed files with 975 additions and 1,427 deletions.
6 changes: 6 additions & 0 deletions gdcdictionary/schemas/aligned_reads_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ links:
target_type: read_group
multiplicity: many_to_many
required: false
- name: unaligned_reads_files
backref: aligned_reads_files
label: data_from
target_type: unaligned_reads_file
multiplicity: many_to_many
required: false

required:
- type
Expand Down
1 change: 0 additions & 1 deletion gdcdictionary/schemas/blood_pressure_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,5 @@ properties:
harmonization unit for bp_diastolic (A "harmonization unit" is a defined group of subjects whose phenotypes can be similarly processed.)
type: string


subjects:
$ref: "_definitions.yaml#/to_one"
42 changes: 41 additions & 1 deletion gdcdictionary/schemas/condition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Condition
type: object
nodeTerms: null
namespace: https://imaging-hub.data-commons.org
category: medical_history
category: clinical
program: '*'
project: '*'
description: Information pertaining to relevant medical condition(s) of a case's subject (e.g., medical diagnoses, diseases, disorders, symptoms, injuries, illnesses, comorbidities) recorded in the process of clinical care (e.g., data extracted from the electronic medical record).
Expand Down Expand Up @@ -45,6 +45,18 @@ properties:
description: The code for a specific codition, assigned by the code system.
type: string

condition_concept_id:
description: The CONDITION_CONCEPT_ID field is recommended for primary use in analyses, and must be used for network studies. This is the standard concept mapped from the source value which represents a condition The CONCEPT_ID that the CONDITION_SOURCE_VALUE maps to. Only records whose source values map to concepts with a domain of “Condition” should go in this table. Accepted Concepts.
type: string

condition_source_concept_id:
description: This is the concept representing the condition source value and may not necessarily be standard. This field is discouraged from use in analysis because it is not required to contain Standard Concepts that are used across the OHDSI community, and should only be used when Standard Concepts do not adequately represent the source detail for the Condition necessary for a given analytic use case. Consider using CONDITION_CONCEPT_ID instead to enable standardized analytics that can be consistent across the network. If the CONDITION_SOURCE_VALUE is coded in the source data using an OMOP supported vocabulary put the concept id representing the source value here.
type: string

condition_source_value:
description: This field houses the verbatim value from the source data representing the condition that occurred. For example, this could be an ICD10 or Read code. This code is mapped to a Standard Condition Concept in the Standardized Vocabularies and the original code is stored here for reference.
type: string

condition_code_system:
description: The system that assigned the code for a specific condition.
type: string
Expand All @@ -53,6 +65,18 @@ properties:
description: The name of the condition the patient has experienced.
type: string

condition_status_concept_id:
description: This concept represents the point during the visit the diagnosis was given (admitting diagnosis, final diagnosis), whether the diagnosis was determined due to laboratory findings, if the diagnosis was exclusionary, or if it was a preliminary diagnosis, among others. Choose the Concept in the Condition Status domain that best represents the point during the visit when the diagnosis was given. These can include admitting diagnosis, principal diagnosis, and secondary diagnosis. Accepted Concepts.
type: string

condition_status_source_value:
description: This field houses the verbatim value from the source data representing the condition status. This information may be called something different in the source data but the field is meant to contain a value indicating when and how a diagnosis was given to a patient. This source value is mapped to a standard concept which is stored in the CONDITION_STATUS_CONCEPT_ID field.
type: string

condition_type_concept_id:
description: This field can be used to determine the provenance of the Condition record, as in whether the condition was from an EHR system, insurance claim, registry, or other sources. Choose the CONDITION_TYPE_CONCEPT_ID that best represents the provenance of the record. Accepted Concepts. A more detailed explanation of each Type Concept can be found on the vocabulary wiki.
type: string

days_to_condition_end:
description: The number of days from the index date to the date the subject no longer experienced the condition.
type: integer
Expand All @@ -61,6 +85,22 @@ properties:
description: The number of days from the index date to the date the subject was diagnosed with or began experiencing the condition.
type: integer

provider_id:
description: The provider associated with condition record, e.g. the provider who made the diagnosis or the provider who recorded the symptom. The ETL may need to make a choice as to which PROVIDER_ID to put here. Based on what is available this may or may not be different than the provider associated with the overall VISIT_OCCURRENCE record, for example the admitting vs attending physician on an EHR record.
type: string

site_id: The care site ID.
description: The site ID.
type: string

stop_reason:
description: The Stop Reason indicates why a Condition is no longer valid with respect to the purpose within the source data. Note that a Stop Reason does not necessarily imply that the condition is no longer occurring. This information is often not populated in source data and it is a valid etl choice to leave it blank if the information does not exist.
type: string

visit_id:
description: The visit ID.
type: string

subjects:
description: The submitter_id or id of the case this condition describes, i.e., a link to a record in the parent node.
$ref: "_definitions.yaml#/to_one"
74 changes: 74 additions & 0 deletions gdcdictionary/schemas/death.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
$schema: "http://json-schema.org/draft-04/schema#"

id: "death"
title: Death
type: object
nodeTerms: null
namespace: https://imaging-hub.data-commons.org
category: medical_history
program: '*'
project: '*'
description: The death domain contains the clinical event for how and when a Person dies. A person can have up to one record if the source system contains evidence about the Death.
additionalProperties: false
submittable: true
validators: null

systemProperties:
- id
- project_id
- state
- created_datetime
- updated_datetime

links:
- name: subjects
backref: deaths
label: related_to
target_type: subject
multiplicity: one_to_one
required: true

required:
- submitter_id
- type
- subjects

uniqueKeys:
- [id]
- [project_id, submitter_id]

properties:

$ref: "_definitions.yaml#/ubiquitous_properties"

days_to_death:
description: The difference in days between the subject's index_date and the date the subject was deceased.
type: integer

death_type_concept_id:
description: A foreign key referring to the predefined concept identifier in the Standardized Vocabularies reflecting how the death was represented in the source data.
type: string

cause_concept_id:
description: A foreign key referring to a standard concept identifier in the Standardized Vocabularies for conditions.
type: string

cause_source_value:
description: The source code for the cause of death as it appears in the source data. This code is mapped to a standard concept in the Standardized Vocabularies and the original code is, stored here for reference.
type: string

cause_source_concept_id:
description: A foreign key to the concept that refers to the code used in the source. Note, this variable name is abbreviated to ensure it will be allowable across database platforms.
type: string

site_id: The site ID.
description: The site ID.
type: string

subjects:
description: The submitter_id or id of the subject this Death describes, i.e., a link to a record in the parent node.
$ref: "_definitions.yaml#/to_one"




89 changes: 89 additions & 0 deletions gdcdictionary/schemas/device_exposure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
$schema: "http://json-schema.org/draft-04/schema#"

id: "device_exposure"
title: Device Exposure
type: object
namespace: https://imaging-hub.data-commons.org
category: clinical
program: '*'
project: '*'
description: >
The device exposure domain captures information about a person's exposure to a foreign physical object or instrument that which is used for diagnostic or therapeutic purposes through a mechanism beyond chemical action. Devices include implantable objects (e.g. pacemakers, stents, artificial joints), medical equipment and supplies (e.g. bandages, crutches, syringes), other instruments used in medical procedures (e.g. sutures, defibrillators) and material used in clinical care (e.g. adhesives, body material, dental material, surgical material).
additionalProperties: false
submittable: true
validators: null

systemProperties:
- id
- project_id
- state
- created_datetime
- updated_datetime

links:
- name: subjects
backref: device_exposures
label: describes
target_type: subject
multiplicity: many_to_one
required: true

required:
- type
- submitter_id
- subjects

uniqueKeys:
- [id]
- [project_id, submitter_id]

properties:
$ref: "_definitions.yaml#/ubiquitous_properties"

## OMOP Device exposure
days_to_device_exposure_end:
description: The difference in days between the subject's index_date and the end of device exposure.
type: string

days_to_device_exposure_start:
description: The difference in days between the subject's index_date and the start of device exposure.
type: string

device_concept_id:
description: A foreign key that refers to a Standard Concept identifier in the Standardized Vocabularies for the Device concept.
type: string

device_source_concept_id:
description: A foreign key to a Device Concept that refers to the code used in the source.
type: string

device_source_value:
description: The source code for the Device as it appears in the source data. This code is mapped to a standard Device Concept in the Standardized Vocabularies and the original code is stored here for reference.
type: string

device_type_concept_id:
description: A foreign key to the predefined Concept identifier in the Standardized Vocabularies reflecting the type of Device Exposure recorded. It indicates how the Device Exposure was represented in the source data.
type: string

provider_id:
description: A foreign key to the provider in the PROVIDER table who initiated of administered the Device.
type: string

quantity:
description: The number of individual Devices used for the exposure.
type: string

site_id:
description: The site ID.
type: string

unique_device_id:
description: A UDI or equivalent identifying the instance of the Device used in the Person.
type: string

visit_id:
description: A foreign key to the visit in the VISIT table during which the device was used.
type: string

subjects:
$ref: "_definitions.yaml#/to_one"
Loading

0 comments on commit 73193a0

Please sign in to comment.