示例#1
0
def generate_simple_patient():
    od = collections.OrderedDict()
    od['phn'] = demographics.ID()
    od['first_name'] = name.first_name()
    od['last_name'] = name.last_name()
    od['birthdate'] = demographics.birthdate()
    od['city'] = address.ca_city()
    od['postal_code'] = address.ca_postal_code(od['city'])
    od['education'] = demographics.education_code()
    return od
def generate_simple_patient():
  od = collections.OrderedDict()
  od['phn'] = demographics.ID()
  od['first_name'] = name.first_name()
  od['last_name'] = name.last_name()
  od['birthdate'] = demographics.birthdate()
  od['city'] = address.ca_city()
  od['postal_code'] = address.ca_postal_code(od['city'])
  od['education'] = demographics.education_code()
  return od
def generate_complex_patient():
  od = collections.OrderedDict()
  od['phn'] = demographics.ID()
  od['name'] = name.find_name()
  od['birthdate'] = '"' + demographics.birthdate(random.choice(['%Y-%m-%d', '%b %d, %Y', '%d %B %Y'])) + '"'
  od['postal_code'] = address.ca_postal_code(address.ca_city())
  od['province'] = 'Alberta'
  od['province_abbr'] = address.ca_province_abbr(od['province'])
  od['gender'] = demographics.gender()
  od['phone'] = phone_number.phone_number()
  od['education'] = '"' + demographics.education() + '"'
  return od
示例#4
0
def generate_complex_patient():
    od = collections.OrderedDict()
    od['phn'] = demographics.ID()
    od['name'] = name.find_name()
    od['birthdate'] = '"' + demographics.birthdate(
        random.choice(['%Y-%m-%d', '%b %d, %Y', '%d %B %Y'])) + '"'
    od['postal_code'] = address.ca_postal_code(address.ca_city())
    od['province'] = 'Alberta'
    od['province_abbr'] = address.ca_province_abbr(od['province'])
    od['gender'] = demographics.gender()
    od['phone'] = phone_number.phone_number()
    od['education'] = '"' + demographics.education() + '"'
    return od