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/Coding) on 2021-05-18. 

5# 2021, SMART Health IT. 

6 

7 

8from . import element 

9 

10class Coding(element.Element): 

11 """ A reference to a code defined by a terminology system. 

12 """ 

13 

14 resource_type = "Coding" 

15 

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

17 """ Initialize all valid properties. 

18  

19 :raises: FHIRValidationError on validation errors, unless strict is False 

20 :param dict jsondict: A JSON dictionary to use for initialization 

21 :param bool strict: If True (the default), invalid variables will raise a TypeError 

22 """ 

23 

24 self.code = None 

25 """ Symbol in syntax defined by the system. 

26 Type `str`. """ 

27 

28 self.display = None 

29 """ Representation defined by the system. 

30 Type `str`. """ 

31 

32 self.system = None 

33 """ Identity of the terminology system. 

34 Type `str`. """ 

35 

36 self.userSelected = None 

37 """ If this coding was chosen directly by the user. 

38 Type `bool`. """ 

39 

40 self.version = None 

41 """ Version of the system - if relevant. 

42 Type `str`. """ 

43 

44 super(Coding, self).__init__(jsondict=jsondict, strict=strict) 

45 

46 def elementProperties(self): 

47 js = super(Coding, self).elementProperties() 

48 js.extend([ 

49 ("code", "code", str, False, None, False), 

50 ("display", "display", str, False, None, False), 

51 ("system", "system", str, False, None, False), 

52 ("userSelected", "userSelected", bool, False, None, False), 

53 ("version", "version", str, False, None, False), 

54 ]) 

55 return js 

56 

57