Repository URL to install this package:
|
Version:
4.0.0 ▾
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/MedicinalProductAuthorization) on 2019-05-07.
# 2019, SMART Health IT.
from . import domainresource
class MedicinalProductAuthorization(domainresource.DomainResource):
""" The regulatory authorization of a medicinal product.
"""
resource_type = "MedicinalProductAuthorization"
def __init__(self, jsondict=None, strict=True):
""" Initialize all valid properties.
:raises: FHIRValidationError on validation errors, unless strict is False
:param dict jsondict: A JSON dictionary to use for initialization
:param bool strict: If True (the default), invalid variables will raise a TypeError
"""
self.country = None
""" The country in which the marketing authorization has been granted.
List of `CodeableConcept` items (represented as `dict` in JSON). """
self.dataExclusivityPeriod = None
""" A period of time after authorization before generic product
applicatiosn can be submitted.
Type `Period` (represented as `dict` in JSON). """
self.dateOfFirstAuthorization = None
""" The date when the first authorization was granted by a Medicines
Regulatory Agency.
Type `FHIRDate` (represented as `str` in JSON). """
self.holder = None
""" Marketing Authorization Holder.
Type `FHIRReference` (represented as `dict` in JSON). """
self.identifier = None
""" Business identifier for the marketing authorization, as assigned by
a regulator.
List of `Identifier` items (represented as `dict` in JSON). """
self.internationalBirthDate = None
""" Date of first marketing authorization for a company's new medicinal
product in any country in the World.
Type `FHIRDate` (represented as `str` in JSON). """
self.jurisdiction = None
""" Jurisdiction within a country.
List of `CodeableConcept` items (represented as `dict` in JSON). """
self.jurisdictionalAuthorization = None
""" Authorization in areas within a country.
List of `MedicinalProductAuthorizationJurisdictionalAuthorization` items (represented as `dict` in JSON). """
self.legalBasis = None
""" The legal framework against which this authorization is granted.
Type `CodeableConcept` (represented as `dict` in JSON). """
self.procedure = None
""" The regulatory procedure for granting or amending a marketing
authorization.
Type `MedicinalProductAuthorizationProcedure` (represented as `dict` in JSON). """
self.regulator = None
""" Medicines Regulatory Agency.
Type `FHIRReference` (represented as `dict` in JSON). """
self.restoreDate = None
""" The date when a suspended the marketing or the marketing
authorization of the product is anticipated to be restored.
Type `FHIRDate` (represented as `str` in JSON). """
self.status = None
""" The status of the marketing authorization.
Type `CodeableConcept` (represented as `dict` in JSON). """
self.statusDate = None
""" The date at which the given status has become applicable.
Type `FHIRDate` (represented as `str` in JSON). """
self.subject = None
""" The medicinal product that is being authorized.
Type `FHIRReference` (represented as `dict` in JSON). """
self.validityPeriod = None
""" The beginning of the time period in which the marketing
authorization is in the specific status shall be specified A
complete date consisting of day, month and year shall be specified
using the ISO 8601 date format.
Type `Period` (represented as `dict` in JSON). """
super(MedicinalProductAuthorization, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(MedicinalProductAuthorization, self).elementProperties()
js.extend([
("country", "country", codeableconcept.CodeableConcept, True, None, False),
("dataExclusivityPeriod", "dataExclusivityPeriod", period.Period, False, None, False),
("dateOfFirstAuthorization", "dateOfFirstAuthorization", fhirdate.FHIRDate, False, None, False),
("holder", "holder", fhirreference.FHIRReference, False, None, False),
("identifier", "identifier", identifier.Identifier, True, None, False),
("internationalBirthDate", "internationalBirthDate", fhirdate.FHIRDate, False, None, False),
("jurisdiction", "jurisdiction", codeableconcept.CodeableConcept, True, None, False),
("jurisdictionalAuthorization", "jurisdictionalAuthorization", MedicinalProductAuthorizationJurisdictionalAuthorization, True, None, False),
("legalBasis", "legalBasis", codeableconcept.CodeableConcept, False, None, False),
("procedure", "procedure", MedicinalProductAuthorizationProcedure, False, None, False),
("regulator", "regulator", fhirreference.FHIRReference, False, None, False),
("restoreDate", "restoreDate", fhirdate.FHIRDate, False, None, False),
("status", "status", codeableconcept.CodeableConcept, False, None, False),
("statusDate", "statusDate", fhirdate.FHIRDate, False, None, False),
("subject", "subject", fhirreference.FHIRReference, False, None, False),
("validityPeriod", "validityPeriod", period.Period, False, None, False),
])
return js
from . import backboneelement
class MedicinalProductAuthorizationJurisdictionalAuthorization(backboneelement.BackboneElement):
""" Authorization in areas within a country.
"""
resource_type = "MedicinalProductAuthorizationJurisdictionalAuthorization"
def __init__(self, jsondict=None, strict=True):
""" Initialize all valid properties.
:raises: FHIRValidationError on validation errors, unless strict is False
:param dict jsondict: A JSON dictionary to use for initialization
:param bool strict: If True (the default), invalid variables will raise a TypeError
"""
self.country = None
""" Country of authorization.
Type `CodeableConcept` (represented as `dict` in JSON). """
self.identifier = None
""" The assigned number for the marketing authorization.
List of `Identifier` items (represented as `dict` in JSON). """
self.jurisdiction = None
""" Jurisdiction within a country.
List of `CodeableConcept` items (represented as `dict` in JSON). """
self.legalStatusOfSupply = None
""" The legal status of supply in a jurisdiction or region.
Type `CodeableConcept` (represented as `dict` in JSON). """
self.validityPeriod = None
""" The start and expected end date of the authorization.
Type `Period` (represented as `dict` in JSON). """
super(MedicinalProductAuthorizationJurisdictionalAuthorization, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(MedicinalProductAuthorizationJurisdictionalAuthorization, self).elementProperties()
js.extend([
("country", "country", codeableconcept.CodeableConcept, False, None, False),
("identifier", "identifier", identifier.Identifier, True, None, False),
("jurisdiction", "jurisdiction", codeableconcept.CodeableConcept, True, None, False),
("legalStatusOfSupply", "legalStatusOfSupply", codeableconcept.CodeableConcept, False, None, False),
("validityPeriod", "validityPeriod", period.Period, False, None, False),
])
return js
class MedicinalProductAuthorizationProcedure(backboneelement.BackboneElement):
""" The regulatory procedure for granting or amending a marketing authorization.
"""
resource_type = "MedicinalProductAuthorizationProcedure"
def __init__(self, jsondict=None, strict=True):
""" Initialize all valid properties.
:raises: FHIRValidationError on validation errors, unless strict is False
:param dict jsondict: A JSON dictionary to use for initialization
:param bool strict: If True (the default), invalid variables will raise a TypeError
"""
self.application = None
""" Applcations submitted to obtain a marketing authorization.
List of `MedicinalProductAuthorizationProcedure` items (represented as `dict` in JSON). """
self.dateDateTime = None
""" Date of procedure.
Type `FHIRDate` (represented as `str` in JSON). """
self.datePeriod = None
""" Date of procedure.
Type `Period` (represented as `dict` in JSON). """
self.identifier = None
""" Identifier for this procedure.
Type `Identifier` (represented as `dict` in JSON). """
self.type = None
""" Type of procedure.
Type `CodeableConcept` (represented as `dict` in JSON). """
super(MedicinalProductAuthorizationProcedure, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(MedicinalProductAuthorizationProcedure, self).elementProperties()
js.extend([
("application", "application", MedicinalProductAuthorizationProcedure, True, None, False),
("dateDateTime", "dateDateTime", fhirdate.FHIRDate, False, "date", False),
("datePeriod", "datePeriod", period.Period, False, "date", False),
("identifier", "identifier", identifier.Identifier, False, None, False),
("type", "type", codeableconcept.CodeableConcept, False, None, True),
])
return js
import sys
try:
from . import codeableconcept
except ImportError:
codeableconcept = sys.modules[__package__ + '.codeableconcept']
try:
from . import fhirdate
except ImportError:
fhirdate = sys.modules[__package__ + '.fhirdate']
try:
from . import fhirreference
except ImportError:
fhirreference = sys.modules[__package__ + '.fhirreference']
try:
from . import identifier
except ImportError:
identifier = sys.modules[__package__ + '.identifier']
try:
from . import period
except ImportError:
period = sys.modules[__package__ + '.period']