Coverage for /home/martinb/workspace/client-py/fhirclient/models/codeableconcept.py : 50%

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/CodeableConcept) on 2021-05-18.
5# 2021, SMART Health IT.
8from . import element
10class CodeableConcept(element.Element):
11 """ Concept - reference to a terminology or just text.
13 A concept that may be defined by a formal reference to a terminology or
14 ontology or may be provided by text.
15 """
17 resource_type = "CodeableConcept"
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.coding = None
28 """ Code defined by a terminology system.
29 List of `Coding` items (represented as `dict` in JSON). """
31 self.text = None
32 """ Plain text representation of the concept.
33 Type `str`. """
35 super(CodeableConcept, self).__init__(jsondict=jsondict, strict=strict)
37 def elementProperties(self):
38 js = super(CodeableConcept, self).elementProperties()
39 js.extend([
40 ("coding", "coding", coding.Coding, True, None, False),
41 ("text", "text", str, False, None, False),
42 ])
43 return js
46import sys
47try:
48 from . import coding
49except ImportError:
50 coding = sys.modules[__package__ + '.coding']