-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
169 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import type { OntologyTerm } from '@/types/clinphen/ontology'; | ||
import type { Instrument } from '@/types/clinphen/resources'; | ||
|
||
type ExperimentResult = { | ||
id: number; | ||
identifier: string; | ||
description: string; | ||
filename: string; | ||
url: string; | ||
genome_assembly_id: string; | ||
file_format: string; | ||
data_output_type: string; | ||
creation_date: string; | ||
created: string; | ||
updated: string; | ||
}; | ||
|
||
export type Experiment = { | ||
id: string; | ||
experiment_results?: ExperimentResult[]; | ||
instrument: Instrument; | ||
biosample_individual: { | ||
id: string; | ||
}; | ||
study_type: string; | ||
experiment_type: string; | ||
experiment_ontology: OntologyTerm[]; | ||
molecule?: string; | ||
molecule_ontology?: OntologyTerm[]; | ||
library_strategy?: string; | ||
library_source?: string; | ||
library_selection?: string; | ||
created: string; | ||
updated: string; | ||
biosample: string; | ||
dataset: string; | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { OntologyTerm } from '@/types/clinphen/ontology'; | ||
import type { | ||
Biosample, | ||
Disease, | ||
Interpretation, | ||
Measurement, | ||
MedicalAction, | ||
MetaData, | ||
} from '@/types/clinphen/resources'; | ||
|
||
type PhenotypicFeature = { | ||
type: OntologyTerm; | ||
created: string; | ||
updated: string; | ||
excluded: boolean; | ||
phenopacket: string; | ||
}; | ||
|
||
export type Phenopacket = { | ||
id: string; | ||
phenotypic_features?: PhenotypicFeature[]; | ||
interpretations?: Interpretation[]; | ||
diseases?: Disease[]; | ||
created: string; | ||
updated: string; | ||
measurements?: Measurement[]; | ||
medical_actions?: MedicalAction[]; | ||
meta_data: MetaData; | ||
dataset: string; | ||
biosamples?: Biosample[]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
import type { Experiment } from '@/types/clinphen/experiments'; | ||
import type { OntologyTerm } from '@/types/clinphen/ontology'; | ||
|
||
export type Instrument = { | ||
id: number; | ||
identifier: string; | ||
created: string; | ||
updated: string; | ||
}; | ||
|
||
export type Biosample = { | ||
id: string; | ||
experiments?: Experiment[]; | ||
created: string; | ||
updated: string; | ||
sampled_tissue?: { | ||
id: string; | ||
label: string; | ||
}; | ||
procedure?: { | ||
code: OntologyTerm; | ||
}; | ||
}; | ||
|
||
export type Diagnosis = { | ||
id: string; | ||
genomic_interpretations: unknown[]; | ||
disease: unknown | null; | ||
extra_properties: unknown | null; | ||
}; | ||
|
||
export type Interpretation = { | ||
id: string; | ||
created: string; | ||
updated: string; | ||
progress_status: string; | ||
summary: string; | ||
diagnosis: Diagnosis; | ||
}; | ||
|
||
export type Disease = { | ||
id: number; | ||
created: string; | ||
updated: string; | ||
term: OntologyTerm; | ||
excluded: boolean; | ||
}; | ||
|
||
export type MeasurementValue = { | ||
quantity?: { | ||
unit: OntologyTerm; | ||
value: number; | ||
}; | ||
complex_value?: { | ||
typed_quantities: { | ||
type: OntologyTerm; | ||
quantity: { | ||
unit: OntologyTerm; | ||
value: number; | ||
}; | ||
}[]; | ||
}; | ||
}; | ||
|
||
export type Measurement = { | ||
assay: OntologyTerm; | ||
value?: MeasurementValue; | ||
}; | ||
|
||
export type Treatment = { | ||
agent: OntologyTerm; | ||
}; | ||
|
||
export type MedicalAction = { | ||
treatment?: Treatment; | ||
adverse_events?: OntologyTerm[]; | ||
treatment_target?: OntologyTerm; | ||
}; | ||
|
||
export type MetaDataResource = { | ||
id: string; | ||
name: string; | ||
namespace_prefix: string; | ||
url: string; | ||
version: string; | ||
iri_prefix: string; | ||
created: string; | ||
updated: string; | ||
}; | ||
|
||
export type MetaData = { | ||
resources: MetaDataResource[]; | ||
created: string; | ||
updated: string; | ||
created_by: string; | ||
phenopacket_schema_version: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters