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

5# 2021, SMART Health IT. 

6 

7 

8from . import element 

9 

10class SampledData(element.Element): 

11 """ A series of measurements taken by a device. 

12  

13 A series of measurements taken by a device, with upper and lower limits. 

14 There may be more than one dimension in the data. 

15 """ 

16 

17 resource_type = "SampledData" 

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

28 """ Decimal values with spaces, or "E" | "U" | "L". 

29 Type `str`. """ 

30 

31 self.dimensions = None 

32 """ Number of sample points at each time point. 

33 Type `int`. """ 

34 

35 self.factor = None 

36 """ Multiply data by this before adding to origin. 

37 Type `float`. """ 

38 

39 self.lowerLimit = None 

40 """ Lower limit of detection. 

41 Type `float`. """ 

42 

43 self.origin = None 

44 """ Zero value and units. 

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

46 

47 self.period = None 

48 """ Number of milliseconds between samples. 

49 Type `float`. """ 

50 

51 self.upperLimit = None 

52 """ Upper limit of detection. 

53 Type `float`. """ 

54 

55 super(SampledData, self).__init__(jsondict=jsondict, strict=strict) 

56 

57 def elementProperties(self): 

58 js = super(SampledData, self).elementProperties() 

59 js.extend([ 

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

61 ("dimensions", "dimensions", int, False, None, True), 

62 ("factor", "factor", float, False, None, False), 

63 ("lowerLimit", "lowerLimit", float, False, None, False), 

64 ("origin", "origin", quantity.Quantity, False, None, True), 

65 ("period", "period", float, False, None, True), 

66 ("upperLimit", "upperLimit", float, False, None, False), 

67 ]) 

68 return js 

69 

70 

71import sys 

72try: 

73 from . import quantity 

74except ImportError: 

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