Hide keyboard shortcuts

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. 

6 

7 

8from . import element 

9 

10class CodeableConcept(element.Element): 

11 """ Concept - reference to a terminology or just text. 

12  

13 A concept that may be defined by a formal reference to a terminology or 

14 ontology or may be provided by text. 

15 """ 

16 

17 resource_type = "CodeableConcept" 

18 

19 def __init__(self, jsondict=None, strict=True): 

20 """ Initialize all valid properties. 

21  

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 """ 

26 

27 self.coding = None 

28 """ Code defined by a terminology system. 

29 List of `Coding` items (represented as `dict` in JSON). """ 

30 

31 self.text = None 

32 """ Plain text representation of the concept. 

33 Type `str`. """ 

34 

35 super(CodeableConcept, self).__init__(jsondict=jsondict, strict=strict) 

36 

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 

44 

45 

46import sys 

47try: 

48 from . import coding 

49except ImportError: 

50 coding = sys.modules[__package__ + '.coding']