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

5# 2021, SMART Health IT. 

6 

7 

8from . import resource 

9 

10class DomainResource(resource.Resource): 

11 """ A resource with narrative, extensions, and contained resources. 

12  

13 A resource that includes narrative, extensions, and contained resources. 

14 """ 

15 

16 resource_type = "DomainResource" 

17 

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

19 """ Initialize all valid properties. 

20  

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

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

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

24 """ 

25 

26 self.contained = None 

27 """ Contained, inline Resources. 

28 List of `Resource` items (represented as `dict` in JSON). """ 

29 

30 self.extension = None 

31 """ Additional content defined by implementations. 

32 List of `Extension` items (represented as `dict` in JSON). """ 

33 

34 self.modifierExtension = None 

35 """ Extensions that cannot be ignored. 

36 List of `Extension` items (represented as `dict` in JSON). """ 

37 

38 self.text = None 

39 """ Text summary of the resource, for human interpretation. 

40 Type `Narrative` (represented as `dict` in JSON). """ 

41 

42 super(DomainResource, self).__init__(jsondict=jsondict, strict=strict) 

43 

44 def elementProperties(self): 

45 js = super(DomainResource, self).elementProperties() 

46 js.extend([ 

47 ("contained", "contained", resource.Resource, True, None, False), 

48 ("extension", "extension", extension.Extension, True, None, False), 

49 ("modifierExtension", "modifierExtension", extension.Extension, True, None, False), 

50 ("text", "text", narrative.Narrative, False, None, False), 

51 ]) 

52 return js 

53 

54 

55import sys 

56try: 

57 from . import extension 

58except ImportError: 

59 extension = sys.modules[__package__ + '.extension'] 

60try: 

61 from . import narrative 

62except ImportError: 

63 narrative = sys.modules[__package__ + '.narrative']