Coverage for /home/martinb/workspace/client-py/fhirclient/models/contactpoint.py : 42%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3#
4# Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/ContactPoint) on 2021-05-18.
5# 2021, SMART Health IT.
8from . import element
10class ContactPoint(element.Element):
11 """ Details of a Technology mediated contact point (phone, fax, email, etc.).
13 Details for all kinds of technology mediated contact points for a person or
14 organization, including telephone, email, etc.
15 """
17 resource_type = "ContactPoint"
19 def __init__(self, jsondict=None, strict=True):
20 """ Initialize all valid properties.
22 :raises: FHIRValidationError on validation errors, unless strict is False
23 :param dict jsondict: A JSON dictionary to use for initialization
24 :param bool strict: If True (the default), invalid variables will raise a TypeError
25 """
27 self.period = None
28 """ Time period when the contact point was/is in use.
29 Type `Period` (represented as `dict` in JSON). """
31 self.rank = None
32 """ Specify preferred order of use (1 = highest).
33 Type `int`. """
35 self.system = None
36 """ phone | fax | email | pager | url | sms | other.
37 Type `str`. """
39 self.use = None
40 """ home | work | temp | old | mobile - purpose of this contact point.
41 Type `str`. """
43 self.value = None
44 """ The actual contact point details.
45 Type `str`. """
47 super(ContactPoint, self).__init__(jsondict=jsondict, strict=strict)
49 def elementProperties(self):
50 js = super(ContactPoint, self).elementProperties()
51 js.extend([
52 ("period", "period", period.Period, False, None, False),
53 ("rank", "rank", int, False, None, False),
54 ("system", "system", str, False, None, False),
55 ("use", "use", str, False, None, False),
56 ("value", "value", str, False, None, False),
57 ])
58 return js
61import sys
62try:
63 from . import period
64except ImportError:
65 period = sys.modules[__package__ + '.period']