Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(13)  |  Derive(0)  |  Import(3)
Mapping field for storing record component.

src/a/s/astm-0.5.0/astm/omnilab/server.py   astm(Download)
 
from astm.server import BaseRecordsDispatcher
from astm.mapping import (
    Component, ConstantField, ComponentField, DateTimeField, IntegerField,
    SetField, TextField, NotUsedField, DateField
    """
    action_code = SetField(values=(None, 'Q'))
    instrument = ComponentField(Instrument)
    report_type = ConstantField(default='F')
    test = ComponentField(Test)
                1010, 1011, 1012, 1013))
    abnormality_nature = SetField(values=('N', 'L', 'H', 'LL', 'HH'))
    completed_at = ComponentField(CompletionDate)
    created_at = DateField()
    instrument = TextField(length=16)
    operator = ComponentField(Operator)

src/a/s/astm-0.5.0/astm/omnilab/common.py   astm(Download)
 
from astm import __version__
from astm.mapping import (
    Component, ConstantField, ComponentField, DateField, DateTimeField,
    IntegerField, SetField, TextField
    """
 
    sender = ComponentField(Sender)
    processing_id = ConstantField(default='P')
    version = ConstantField(default='E 1394-97')
    laboratory_id = TextField(required=True, length=16)
    location = TextField(length=20)
    name = ComponentField(PatientName)
    practice_id = TextField(required=True, length=12)
    sex = SetField(values=('M', 'F', None, 'I'))

src/a/s/astm-0.5.0/astm/omnilab/client.py   astm(Download)
"""
 
from astm.mapping import (
    Component, ConstantField, ComponentField, IntegerField, DateTimeField,
    RepeatedComponentField, SetField, TextField, NotUsedField
    """
    physician_id = TextField(length=35)
    special_1 = ComponentField(PatientAge)
 
 
    :type instrument: None
    """
    test = ComponentField(Test)
 
 
    """
    source = ConstantField(default='L')
    data = ComponentField(CommentData)
 

src/a/s/astm-0.5.0/astm/tests/test_mapping.py   astm(Download)
        class Dummy(mapping.Mapping):
            field = mapping.ComponentField(
                mapping = mapping.Component.build(
                    mapping.Field(name='foo'),
                    mapping.IntegerField(name='bar'),
        class Dummy(mapping.Mapping):
            foo = mapping.Field(default='bar')
            bar = mapping.ComponentField(mapping=mapping.Component.build(
                mapping.IntegerField(name='a'),
                mapping.IntegerField(name='b'),