Reference Data and Results
Reference data and Results classes for the KCDB API.
These classes represent the xs:complexType
and xs:simpleType
definitions in the
KCDB XSD Schema.
AbsoluteRelative
¤
Analyte
dataclass
¤
Analyte(id, label, value)
Bases: ReferenceData
An analyte of Chemistry and Biology.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
Analyte identity. Example: 1 |
label |
str
|
Analyte label. Example: |
value |
str
|
Analyte value. Example: |
Branch
dataclass
¤
Branch(id, label, value, metrology_area)
Bases: ReferenceData
A branch of General Physics or Ionizing Radiation.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
Branch identity. Example: 21 |
label |
str
|
Branch label. Example: |
metrology_area |
MetrologyArea
|
The metrology area that the branch belongs to. |
value |
str
|
Branch value. Example: |
Category
dataclass
¤
Category(id, label, value)
Bases: ReferenceData
A category of Chemistry and Biology.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
Category identity. Example: 8 |
label |
str
|
Category label. Example: |
value |
str
|
Category value. Example: |
Country
dataclass
¤
Country(id, label, value)
Bases: ReferenceData
Information about a country.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
Country identity. Example: 58 |
label |
str
|
Country label. Example: |
value |
str
|
Country value. Example: |
Domain
dataclass
¤
Domain(code, name)
IndividualService
dataclass
¤
IndividualService(
id, label, value, physics_code, sub_service
)
Bases: ReferenceData
An individual service of General Physics.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
Individual service identity. Example: 225 |
label |
str
|
Individual service label. Example: |
physics_code |
str
|
The physics code for this individual service. Example: |
sub_service |
SubService
|
The sub service that the individual service belongs to. |
value |
str
|
Individual service value. Example: |
Medium
dataclass
¤
Medium(id, label, value, branch)
Bases: ReferenceData
A medium of Ionizing Radiation.
Attributes:
Name | Type | Description |
---|---|---|
branch |
Branch
|
The branch that the medium belongs to. |
id |
int
|
Medium identity. Example: 5 |
label |
str
|
Medium label. Example: |
value |
str
|
Medium value. Example: |
MetrologyArea
dataclass
¤
MetrologyArea(id, label, value, domain)
Bases: ReferenceData
A metrology area of a domain.
Attributes:
Name | Type | Description |
---|---|---|
domain |
Domain
|
The domain that the metrology area belongs to. |
id |
int
|
Metrology area identity. Example: 2 |
label |
str
|
Metrology area label. Example: |
value |
str
|
Metrology area value. Example: |
NonIonizingQuantity
dataclass
¤
NonIonizingQuantity(id, label, value)
Bases: ReferenceData
A quantity that is not Ionizing Radiation.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
Non-ionizing identity. Example: 109 |
label |
str
|
Always an empty string. Example: |
value |
str
|
Non-ionizing value. Example: |
Nuclide
dataclass
¤
Nuclide(id, label, value)
Bases: ReferenceData
A nuclide of Ionizing Radiation.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
Nuclide identity. Example: 1 |
label |
str
|
Nuclide label. Example: |
value |
str
|
Nuclide value. Example: |
Quantity
dataclass
¤
Quantity(id, label, value, branch)
Bases: ReferenceData
A quantity of Ionizing Radiation.
Attributes:
Name | Type | Description |
---|---|---|
branch |
Branch
|
The branch that the quantity belongs to. |
id |
int
|
Quantity identity. Example: 1 |
label |
str
|
Quantity label. Example: |
value |
str
|
Quantity value. Example: |
ReferenceData
dataclass
¤
ReferenceData(id, label, value)
ResultAggregation
¤
ResultAggregation(kwargs)
ResultChemistryBiology
¤
ResultChemistryBiology(kwargs)
Bases: ResultCommon
Chemistry and Biology result.
Attributes:
Name | Type | Description |
---|---|---|
analyte_matrix |
str
|
Analyte matrix. Example: |
analyte_value |
str
|
Analyte value. Example: |
approval_date |
str
|
Approval date (YYYY-MM-DD). |
category_label |
int
|
Category identifier. Example: |
category_value |
str
|
Category value. Example: |
cmc |
ResultUnit | None
|
CMC result unit. |
cmc_base_unit |
ResultUnit | None
|
CMC base unit. |
cmc_uncertainty |
ResultUnit | None
|
CMC uncertainty. |
cmc_uncertainty_base_unit |
ResultUnit | None
|
CMC uncertainty base unit. |
comments |
str
|
Comments. |
confidence_level |
float | None
|
Confidence level. |
country_value |
str
|
Country full name. Example: |
coverage_factor |
float | None
|
Coverage factor. |
crm |
ResultUnit | None
|
CRM unit. |
crm_confidence_level |
float | None
|
CRM confidence level. |
crm_coverage_factor |
float | None
|
CRM coverage factor. |
crm_uncertainty |
ResultUnit | None
|
CRM uncertainty. |
crm_uncertainty_equation |
ResultEquation | None
|
CRM uncertainty equation. |
crm_uncertainty_mode |
AbsoluteRelative | None
|
CRM uncertainty mode. |
crm_uncertainty_table |
ResultTable | None
|
CRM uncertainty table. |
domain_code |
str
|
Domain code. Example: |
group_identifier |
str
|
Group identifier. |
id |
int
|
Document database id. |
kcdb_code |
str
|
Document KCDB code. Example: |
kcdb_service_category |
str
|
KCDB service category. Example: |
measurement_technique |
str
|
Measurement technique.
Example: |
mechanism |
str
|
Mechanism. Example: |
metrology_area_label |
str
|
Metrology area label. Example: |
nmi_code |
str
|
NMI code. Example: |
nmi_name |
str
|
NMI name. Example: |
nmi_service_code |
str
|
NMI service code. Example: |
nmi_service_link |
str
|
NMI service link. |
publication_date |
str
|
Publication date (YYYY-MM-DD). |
quantity_value |
str
|
Quantity value. Example: |
rmo |
str
|
RMO acronym. Example: |
status |
str
|
CMC status. Example: |
status_date |
str
|
Last status date (YYYY-MM-DD). |
sub_category_label |
int
|
Sub category identifier. Example: |
sub_category_value |
str
|
Sub category value. Example: |
traceability_source |
str
|
Traceability source. Example: |
uncertainty_convention |
UncertaintyConvention | None
|
Uncertainty convention. |
uncertainty_equation |
ResultEquation | None
|
Uncertainty equation. |
uncertainty_mode |
AbsoluteRelative | None
|
Uncertainty mode. |
uncertainty_table |
ResultTable | None
|
Uncertainty table. |
ResultCommon
¤
ResultCommon(kwargs)
Common attributes for advanced search results.
Attributes:
Name | Type | Description |
---|---|---|
approval_date |
str
|
Approval date (YYYY-MM-DD). |
cmc |
ResultUnit | None
|
CMC result unit. |
cmc_base_unit |
ResultUnit | None
|
CMC base unit. |
cmc_uncertainty |
ResultUnit | None
|
CMC uncertainty. |
cmc_uncertainty_base_unit |
ResultUnit | None
|
CMC uncertainty base unit. |
comments |
str
|
Comments. |
confidence_level |
float | None
|
Confidence level. |
country_value |
str
|
Country full name. Example: |
coverage_factor |
float | None
|
Coverage factor. |
domain_code |
str
|
Domain code. Example: |
group_identifier |
str
|
Group identifier. |
id |
int
|
Document database id. |
kcdb_code |
str
|
Document KCDB code. Example: |
metrology_area_label |
str
|
Metrology area label. Example: |
nmi_code |
str
|
NMI code. Example: |
nmi_name |
str
|
NMI name. Example: |
nmi_service_code |
str
|
NMI service code. Example: |
nmi_service_link |
str
|
NMI service link. |
publication_date |
str
|
Publication date (YYYY-MM-DD). |
quantity_value |
str
|
Quantity value. Example: |
rmo |
str
|
RMO acronym. Example: |
status |
str
|
CMC status. Example: |
status_date |
str
|
Last status date (YYYY-MM-DD). |
traceability_source |
str
|
Traceability source. Example: |
uncertainty_equation |
ResultEquation | None
|
Uncertainty equation. |
uncertainty_mode |
AbsoluteRelative | None
|
Uncertainty mode. |
uncertainty_table |
ResultTable | None
|
Uncertainty table. |
ResultEquation
¤
ResultEquation(kwargs)
ResultFilter
¤
ResultFilter(kwargs)
ResultParam
¤
ResultParam(kwargs)
ResultPhysics
¤
ResultPhysics(kwargs)
Bases: ResultCommon
General Physics result.
Attributes:
Name | Type | Description |
---|---|---|
approval_date |
str
|
Approval date (YYYY-MM-DD). |
branch_label |
str
|
Branch label. Example: |
branch_value |
str
|
Branch value. Example: |
cmc |
ResultUnit | None
|
CMC result unit. |
cmc_base_unit |
ResultUnit | None
|
CMC base unit. |
cmc_uncertainty |
ResultUnit | None
|
CMC uncertainty. |
cmc_uncertainty_base_unit |
ResultUnit | None
|
CMC uncertainty base unit. |
comments |
str
|
Comments. |
confidence_level |
float | None
|
Confidence level. |
country_value |
str
|
Country full name. Example: |
coverage_factor |
float | None
|
Coverage factor. |
domain_code |
str
|
Domain code. Example: |
group_identifier |
str
|
Group identifier. |
id |
int
|
Document database id. |
individual_service_value |
str
|
Individual service value. Example: |
instrument |
str
|
Instrument. Example: |
instrument_method |
str
|
Instrument method. Example: |
international_standard |
str
|
International standard. Example: |
kcdb_code |
str
|
Document KCDB code. Example: |
kcdb_service_category |
str
|
KCDB service category. Example: |
metrology_area_label |
str
|
Metrology area label. Example: |
nmi_code |
str
|
NMI code. Example: |
nmi_name |
str
|
NMI name. Example: |
nmi_service_code |
str
|
NMI service code. Example: |
nmi_service_link |
str
|
NMI service link. |
parameters |
list[ResultParam]
|
Parameters list with name and value. |
physics_code |
str
|
Physics code. Example: |
publication_date |
str
|
Publication date (YYYY-MM-DD). |
quantity_value |
str
|
Quantity value. Example: |
rmo |
str
|
RMO acronym. Example: |
service_value |
str
|
Service value. Example: |
status |
str
|
CMC status. Example: |
status_date |
str
|
Last status date (YYYY-MM-DD). |
sub_service_value |
str
|
Sub service value. Example: |
traceability_source |
str
|
Traceability source. Example: |
uncertainty_equation |
ResultEquation | None
|
Uncertainty equation. |
uncertainty_mode |
AbsoluteRelative | None
|
Uncertainty mode. |
uncertainty_table |
ResultTable | None
|
Uncertainty table. |
ResultRadiation
¤
ResultRadiation(kwargs)
Bases: ResultCommon
Ionizing Radiation result.
Attributes:
Name | Type | Description |
---|---|---|
approval_date |
str
|
Approval date (YYYY-MM-DD). |
branch_label |
str
|
Branch label. Example: |
branch_value |
str
|
Branch value. Example: |
cmc |
ResultUnit | None
|
CMC result unit. |
cmc_base_unit |
ResultUnit | None
|
CMC base unit. |
cmc_uncertainty |
ResultUnit | None
|
CMC uncertainty. |
cmc_uncertainty_base_unit |
ResultUnit | None
|
CMC uncertainty base unit. |
comments |
str
|
Comments. |
confidence_level |
float | None
|
Confidence level. |
country_value |
str
|
Country full name. Example: |
coverage_factor |
float | None
|
Coverage factor. |
domain_code |
str
|
Domain code. Example: |
group_identifier |
str
|
Group identifier. |
id |
int
|
Document database id. |
instrument |
str
|
Instrument. Example: |
instrument_method |
str
|
Instrument method. Example: |
international_standard |
str
|
International standard. Example: |
kcdb_code |
str
|
Document KCDB code. Example: |
kcdb_service_category |
str
|
KCDB service category. Example: |
medium_value |
str
|
Medium value. Example: |
metrology_area_label |
str
|
Metrology area label. Example: |
nmi_code |
str
|
NMI code. Example: |
nmi_name |
str
|
NMI name. Example: |
nmi_service_code |
str
|
NMI service code. Example: |
nmi_service_link |
str
|
NMI service link. |
nuclide_value |
str
|
Nuclide value. Example: |
publication_date |
str
|
Publication date (YYYY-MM-DD). |
quantity_value |
str
|
Quantity value. Example: |
radiation_code |
str
|
Radiation code separated by a dot for branch, quantity, source, medium. Example: |
radiation_specification |
str
|
Radiation specification name.
Example: |
reference_standard |
str
|
Reference standard. Example: |
rmo |
str
|
RMO acronym. Example: |
source_value |
str
|
Source value. Example: |
status |
str
|
CMC status. Example: |
status_date |
str
|
Last status date (YYYY-MM-DD). |
traceability_source |
str
|
Traceability source. Example: |
uncertainty_equation |
ResultEquation | None
|
Uncertainty equation. |
uncertainty_mode |
AbsoluteRelative | None
|
Uncertainty mode. |
uncertainty_table |
ResultTable | None
|
Uncertainty table. |
ResultTable
¤
ResultTable(kwargs)
Table representation.
Attributes:
Name | Type | Description |
---|---|---|
table_cols |
int
|
Number of columns in table. |
table_comment |
str
|
Table comment. |
table_contents |
str
|
Table contents. Example: |
table_name |
str
|
Table name. Example: |
table_rows |
int
|
Number of rows in table. |
ResultUnit
¤
ResultUnit(kwargs)
Results
¤
Results(kwargs)
Attributes for advanced search results.
Attributes:
Name | Type | Description |
---|---|---|
number_of_elements |
int
|
Number of elements on this page. |
page_number |
int
|
The page number (first page is 0) of the request. |
page_size |
int
|
The page size that was requested. |
total_elements |
int
|
Total number of elements available (in all pages). |
total_pages |
int
|
Total number of pages. |
version_api_kcdb |
str
|
KCDB API version. Example: |
ResultsChemistryBiology
¤
ResultsChemistryBiology(kwargs)
Bases: Results
Chemistry and Biology search results.
Attributes:
Name | Type | Description |
---|---|---|
data |
list[ResultChemistryBiology]
|
Chemistry and Biology result data. |
number_of_elements |
int
|
Number of elements on this page. |
page_number |
int
|
The page number (first page is 0) of the request. |
page_size |
int
|
The page size that was requested. |
total_elements |
int
|
Total number of elements available (in all pages). |
total_pages |
int
|
Total number of pages. |
version_api_kcdb |
str
|
KCDB API version. Example: |
ResultsPhysics
¤
ResultsPhysics(kwargs)
Bases: Results
General Physics search results.
Attributes:
Name | Type | Description |
---|---|---|
data |
list[ResultPhysics]
|
General Physics result data. |
number_of_elements |
int
|
Number of elements on this page. |
page_number |
int
|
The page number (first page is 0) of the request. |
page_size |
int
|
The page size that was requested. |
total_elements |
int
|
Total number of elements available (in all pages). |
total_pages |
int
|
Total number of pages. |
version_api_kcdb |
str
|
KCDB API version. Example: |
ResultsQuickSearch
¤
ResultsQuickSearch(kwargs)
Bases: Results
Quick search results.
Attributes:
Name | Type | Description |
---|---|---|
aggregations |
list[ResultAggregation]
|
The aggregations list. |
data |
list[Any]
|
The quick search result data. |
filters_list |
list[ResultFilter]
|
The filters list. |
number_of_elements |
int
|
Number of elements on this page. |
page_number |
int
|
The page number (first page is 0) of the request. |
page_size |
int
|
The page size that was requested. |
total_elements |
int
|
Total number of elements available (in all pages). |
total_pages |
int
|
Total number of pages. |
version_api_kcdb |
str
|
KCDB API version. Example: |
ResultsRadiation
¤
ResultsRadiation(kwargs)
Bases: Results
Ionizing Radiation search results.
Attributes:
Name | Type | Description |
---|---|---|
data |
list[ResultRadiation]
|
Ionizing Radiation result data. |
number_of_elements |
int
|
Number of elements on this page. |
page_number |
int
|
The page number (first page is 0) of the request. |
page_size |
int
|
The page size that was requested. |
total_elements |
int
|
Total number of elements available (in all pages). |
total_pages |
int
|
Total number of pages. |
version_api_kcdb |
str
|
KCDB API version. Example: |
Service
dataclass
¤
Service(id, label, value, branch, physics_code)
Bases: ReferenceData
A service of General Physics.
Attributes:
Name | Type | Description |
---|---|---|
branch |
Branch
|
The branch that the service belongs to. |
id |
int
|
Service identity. Example: 16 |
label |
str
|
Service label. Example: |
physics_code |
str
|
The physics code for this service. Example: |
value |
str
|
Service value. Example: |
Source
dataclass
¤
Source(id, label, value, branch)
Bases: ReferenceData
A source of Ionizing Radiation.
Attributes:
Name | Type | Description |
---|---|---|
branch |
Branch
|
The branch that the source belongs to. |
id |
int
|
Source identity. Example: 3 |
label |
str
|
Source label. Example: |
value |
str
|
Source value. Example: |
SubService
dataclass
¤
SubService(id, label, value, physics_code, service)
Bases: ReferenceData
A sub service of General Physics.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
Sub service identity. Example: 33 |
label |
str
|
Sub service label. Example: |
physics_code |
str
|
The physics code for this sub service. Example: |
service |
Service
|
The service that the sub service belongs to. |
value |
str
|
Sub service value. Example: |