Coverage for /home/martinb/workspace/client-py/fhirclient/models/contributor.py : 47%

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/Contributor) on 2021-05-18.
5# 2021, SMART Health IT.
8from . import element
10class Contributor(element.Element):
11 """ Contributor information.
13 A contributor to the content of a knowledge asset, including authors,
14 editors, reviewers, and endorsers.
15 """
17 resource_type = "Contributor"
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.contact = None
28 """ Contact details of the contributor.
29 List of `ContactDetail` items (represented as `dict` in JSON). """
31 self.name = None
32 """ Who contributed the content.
33 Type `str`. """
35 self.type = None
36 """ author | editor | reviewer | endorser.
37 Type `str`. """
39 super(Contributor, self).__init__(jsondict=jsondict, strict=strict)
41 def elementProperties(self):
42 js = super(Contributor, self).elementProperties()
43 js.extend([
44 ("contact", "contact", contactdetail.ContactDetail, True, None, False),
45 ("name", "name", str, False, None, True),
46 ("type", "type", str, False, None, True),
47 ])
48 return js
51import sys
52try:
53 from . import contactdetail
54except ImportError:
55 contactdetail = sys.modules[__package__ + '.contactdetail']