disease.schemas#

Contains data models for representing VICC normalized disease records.

class disease.schemas.DataLicenseAttributes(**data)[source]#

Define constraints for data license attributes.

attribution: Annotated[bool][source]#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

non_commercial: Annotated[bool][source]#
share_alike: Annotated[bool][source]#
class disease.schemas.Disease(**data)[source]#

Define disease record.

aliases: List[Annotated[str]][source]#
associated_with: List[Annotated[str]][source]#
concept_id: Annotated[str][source]#
label: Annotated[str][source]#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

pediatric_disease: Optional[bool][source]#
xrefs: List[Annotated[str]][source]#
class disease.schemas.MatchType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Define string constraints for use in Match Type attributes.

ALIAS = 60[source]#
ASSOCIATED_WITH = 60[source]#
CONCEPT_ID = 100[source]#
FUZZY_MATCH = 20[source]#
LABEL = 80[source]#
NO_MATCH = 0[source]#
XREF = 60[source]#
class disease.schemas.NamespacePrefix(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Define string constraints for how concept ID namespace prefixes are stored.

COHD = 'cohd'[source]#
DECIPHER = 'decipher'[source]#
DO = 'DOID'[source]#
DOID = 'DOID'[source]#
EFO = 'efo'[source]#
GARD = 'gard'[source]#
HP = 'HP'[source]#
HPO = 'HP'[source]#
ICD10 = 'icd10'[source]#
ICD10CM = 'icd10.cm'[source]#
ICD10WHO = 'icd10'[source]#
ICD11 = 'icd11'[source]#
ICD9 = 'icd9'[source]#
ICD9CM = 'icd9.cm'[source]#
ICDO = 'icdo'[source]#
IDO = 'ido'[source]#
IMDRF = 'imdrf'[source]#
KEGG = 'kegg.disease'[source]#
MEDDRA = 'meddra'[source]#
MEDGEN = 'medgen'[source]#
MESH = 'mesh'[source]#
MF = 'mf'[source]#
MONDO = 'mondo'[source]#
MP = 'MP'[source]#
MPATH = 'mpath'[source]#
NCIT = 'ncit'[source]#
NIFSTD = 'nifstd'[source]#
OBI = 'obi'[source]#
OGMS = 'ogms'[source]#
OMIM = 'omim'[source]#
OMIMPS = 'omimps'[source]#
ONCOTREE = 'oncotree'[source]#
ORPHANET = 'orphanet'[source]#
PATO = 'pato'[source]#
SCDO = 'scdo'[source]#
UMLS = 'umls'[source]#
WIKIDATA = 'wikidata'[source]#
WIKIPEDIA = 'wikipedia.en'[source]#
class disease.schemas.NormalizationService(**data)[source]#

Response containing one or more merged records and source data.

disease: Optional[Disease][source]#
match_type: MatchType[source]#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

normalized_id: Optional[str][source]#
query: Annotated[str][source]#
service_meta_: ServiceMeta[source]#
source_meta_: Optional[Dict[SourceName, SourceMeta]][source]#
warnings: Optional[Dict][source]#
class disease.schemas.RecordType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Record item types.

IDENTITY = 'identity'[source]#
MERGER = 'merger'[source]#
class disease.schemas.RefType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Reference item types.

ALIASES = 'alias'[source]#
ASSOCIATED_WITH = 'associated_with'[source]#
LABEL = 'label'[source]#
XREFS = 'xref'[source]#
class disease.schemas.SearchService(**data)[source]#

Core response schema containing matches for each source

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

query: Annotated[str][source]#
service_meta_: ServiceMeta[source]#
source_matches: Dict[SourceName, SourceSearchMatches][source]#
warnings: Optional[Dict][source]#
class disease.schemas.ServiceMeta(**data)[source]#

Metadata regarding the disease-normalization service.

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

name: Literal['disease-normalizer'][source]#
response_datetime: datetime[source]#
url: Literal['https://github.com/cancervariants/disease-normalization'][source]#
version: Annotated[str][source]#
class disease.schemas.SourceIDAfterNamespace(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Define string constraints after namespace.

DO = ''[source]#
MONDO = ''[source]#
NCIT = 'C'[source]#
OMIM = ''[source]#
ONCOTREE = ''[source]#
class disease.schemas.SourceMeta(**data)[source]#

Metadata for a given source to return in response object.

data_license: Annotated[str][source]#
data_license_attributes: DataLicenseAttributes[source]#
data_license_url: Annotated[str][source]#
data_url: Optional[Annotated[str]][source]#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

rdp_url: Optional[Annotated[str]][source]#
version: Annotated[str][source]#
class disease.schemas.SourceName(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Define string constraints to ensure consistent capitalization.

DO = 'DO'[source]#
MONDO = 'Mondo'[source]#
NCIT = 'NCIt'[source]#
OMIM = 'OMIM'[source]#
ONCOTREE = 'OncoTree'[source]#
class disease.schemas.SourcePriority(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Define priorities for sources in building merged concepts.

DO = 5[source]#
MONDO = 2[source]#
NCIT = 1[source]#
OMIM = 3[source]#
ONCOTREE = 4[source]#
class disease.schemas.SourceSearchMatches(**data)[source]#

Container for matching information from an individual source.

match_type: MatchType[source]#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

records: List[Disease][source]#
source_meta_: SourceMeta[source]#