示例#1
0
class _FhirBiobankOrderHandlingInfo(FhirMixin, BackboneElement):
    """Information about what user and site handled an order."""
    resource_name = "BiobankOrderHandlingInfo"
    _PROPERTIES = [
        FhirProperty('author', Identifier),
        FhirProperty('site', Identifier),
    ]
class _FhirOrganization(FhirMixin, BackboneElement):
    """FHIR client definition of the expected JSON structure for an Organization resource"""
    resource_name = 'Organization'
    _PROPERTIES = [
        FhirProperty('display_name', str, required=True),
        FhirProperty('sites', _FhirSite, is_list=True)
    ]
示例#3
0
class _FhirAwardee(FhirMixin, DomainResource):
    """FHIR client definition of the expected JSON structure for an Awardee resource."""
    resource_name = 'Awardee'
    _PROPERTIES = [
        FhirProperty('display_name', str, required=True),
        FhirProperty('type', str, required=True),
        FhirProperty('organizations', _FhirOrganization, is_list=True)
    ]
示例#4
0
class _FhirBiobankOrderNotes(FhirMixin, BackboneElement):
    """Notes sub-element."""
    resource_name = "BiobankOrderNotes"
    _PROPERTIES = [
        FhirProperty('collected', str),
        FhirProperty('processed', str),
        FhirProperty('finalized', str),
    ]
class _FhirBiobankOrder(FhirMixin, DomainResource):
    """FHIR client definition of the expected JSON structure for a BiobankOrder resource."""
    resource_name = 'BiobankOrder'
    _PROPERTIES = [
        FhirProperty('subject', str, required=True),
        FhirProperty('identifier', Identifier, is_list=True, required=True),
        FhirProperty('created', fhirdate.FHIRDate, required=True),
        FhirProperty('samples',
                     _FhirBiobankOrderedSample,
                     is_list=True,
                     required=True),
        FhirProperty('notes', _FhirBiobankOrderNotes),
        FhirProperty('created_info', _FhirBiobankOrderHandlingInfo),
        FhirProperty('collected_info', _FhirBiobankOrderHandlingInfo),
        FhirProperty('processed_info', _FhirBiobankOrderHandlingInfo),
        FhirProperty('finalized_info', _FhirBiobankOrderHandlingInfo)
    ]
示例#6
0
class _FhirBiobankOrderedSample(FhirMixin, BackboneElement):
    """Sample sub-element."""
    resource_name = "BiobankOrderedSample"
    _PROPERTIES = [
        FhirProperty('test', str, required=True),
        FhirProperty('description', str, required=True),
        FhirProperty('processing_required', bool, required=True),
        FhirProperty('collected', fhirdate.FHIRDate),
        FhirProperty('processed', fhirdate.FHIRDate),
        FhirProperty('finalized', fhirdate.FHIRDate),
    ]
示例#7
0
class _FhirSite(FhirMixin, BackboneElement):
    """FHIR client definition of the expected JSON structure for a Site resource"""
    resource_name = 'Site'
    _PROPERTIES = [
        FhirProperty('display_name', str, required=True),
        FhirProperty('mayolink_client_number', long),
        FhirProperty('site_status', str, required=True),
        FhirProperty('enrolling_status', str),
        FhirProperty('launch_date', fhirdate.FHIRDate),
        FhirProperty('notes', str),
        FhirProperty('latitude', float),
        FhirProperty('longitude', float),
        FhirProperty('time_zone_id', str),
        FhirProperty('directions', str),
        FhirProperty('physical_location_name', str),
        FhirProperty('address', Address),
        FhirProperty('phone_number', str),
        FhirProperty('admin_emails', str, is_list=True),
        FhirProperty('link', str)
    ]