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

5# 2021, SMART Health IT. 

6 

7 

8from . import fhirabstractbase 

9 

10class Element(fhirabstractbase.FHIRAbstractBase): 

11 """ Base for all elements. 

12  

13 Base definition for all elements in a resource. 

14 """ 

15 

16 resource_type = "Element" 

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

27 """ Additional content defined by implementations. 

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

29 

30 self.id = None 

31 """ Unique id for inter-element referencing. 

32 Type `str`. """ 

33 

34 super(Element, self).__init__(jsondict=jsondict, strict=strict) 

35 

36 def elementProperties(self): 

37 js = super(Element, self).elementProperties() 

38 from . import extension 

39 js.extend([ 

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

41 ("id", "id", str, False, None, False), 

42 ]) 

43 return js 

44 

45