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

5# 2021, SMART Health IT. 

6 

7 

8from . import element 

9 

10class Meta(element.Element): 

11 """ Metadata about a resource. 

12  

13 The metadata about a resource. This is content in the resource that is 

14 maintained by the infrastructure. Changes to the content might not always 

15 be associated with version changes to the resource. 

16 """ 

17 

18 resource_type = "Meta" 

19 

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

21 """ Initialize all valid properties. 

22  

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

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

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

26 """ 

27 

28 self.lastUpdated = None 

29 """ When the resource version last changed. 

30 Type `FHIRDate` (represented as `str` in JSON). """ 

31 

32 self.profile = None 

33 """ Profiles this resource claims to conform to. 

34 List of `str` items. """ 

35 

36 self.security = None 

37 """ Security Labels applied to this resource. 

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

39 

40 self.source = None 

41 """ Identifies where the resource comes from. 

42 Type `str`. """ 

43 

44 self.tag = None 

45 """ Tags applied to this resource. 

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

47 

48 self.versionId = None 

49 """ Version specific identifier. 

50 Type `str`. """ 

51 

52 super(Meta, self).__init__(jsondict=jsondict, strict=strict) 

53 

54 def elementProperties(self): 

55 js = super(Meta, self).elementProperties() 

56 js.extend([ 

57 ("lastUpdated", "lastUpdated", fhirdate.FHIRDate, False, None, False), 

58 ("profile", "profile", str, True, None, False), 

59 ("security", "security", coding.Coding, True, None, False), 

60 ("source", "source", str, False, None, False), 

61 ("tag", "tag", coding.Coding, True, None, False), 

62 ("versionId", "versionId", str, False, None, False), 

63 ]) 

64 return js 

65 

66 

67import sys 

68try: 

69 from . import coding 

70except ImportError: 

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

72try: 

73 from . import fhirdate 

74except ImportError: 

75 fhirdate = sys.modules[__package__ + '.fhirdate']