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

5# 2021, SMART Health IT. 

6 

7 

8from . import element 

9 

10class BackboneElement(element.Element): 

11 """ Base for elements defined inside a resource. 

12  

13 Base definition for all elements that are defined inside a resource - but 

14 not those in a data type. 

15 """ 

16 

17 resource_type = "BackboneElement" 

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.modifierExtension = None 

28 """ Extensions that cannot be ignored even if unrecognized. 

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

30 

31 super(BackboneElement, self).__init__(jsondict=jsondict, strict=strict) 

32 

33 def elementProperties(self): 

34 js = super(BackboneElement, self).elementProperties() 

35 js.extend([ 

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

37 ]) 

38 return js 

39 

40 

41import sys 

42try: 

43 from . import extension 

44except ImportError: 

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