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

5# 2021, SMART Health IT. 

6 

7 

8from . import element 

9 

10class Range(element.Element): 

11 """ Set of values bounded by low and high. 

12  

13 A set of ordered Quantities defined by a low and high limit. 

14 """ 

15 

16 resource_type = "Range" 

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

27 """ High limit. 

28 Type `Quantity` (represented as `dict` in JSON). """ 

29 

30 self.low = None 

31 """ Low limit. 

32 Type `Quantity` (represented as `dict` in JSON). """ 

33 

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

35 

36 def elementProperties(self): 

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

38 js.extend([ 

39 ("high", "high", quantity.Quantity, False, None, False), 

40 ("low", "low", quantity.Quantity, False, None, False), 

41 ]) 

42 return js 

43 

44 

45import sys 

46try: 

47 from . import quantity 

48except ImportError: 

49 quantity = sys.modules[__package__ + '.quantity']