Coverage for /home/martinb/workspace/client-py/fhirclient/models/parameterdefinition.py : 31%

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/ParameterDefinition) on 2021-05-18.
5# 2021, SMART Health IT.
8from . import element
10class ParameterDefinition(element.Element):
11 """ Definition of a parameter to a module.
13 The parameters to the module. This collection specifies both the input and
14 output parameters. Input parameters are provided by the caller as part of
15 the $evaluate operation. Output parameters are included in the
16 GuidanceResponse.
17 """
19 resource_type = "ParameterDefinition"
21 def __init__(self, jsondict=None, strict=True):
22 """ Initialize all valid properties.
24 :raises: FHIRValidationError on validation errors, unless strict is False
25 :param dict jsondict: A JSON dictionary to use for initialization
26 :param bool strict: If True (the default), invalid variables will raise a TypeError
27 """
29 self.documentation = None
30 """ A brief description of the parameter.
31 Type `str`. """
33 self.max = None
34 """ Maximum cardinality (a number of *).
35 Type `str`. """
37 self.min = None
38 """ Minimum cardinality.
39 Type `int`. """
41 self.name = None
42 """ Name used to access the parameter value.
43 Type `str`. """
45 self.profile = None
46 """ What profile the value is expected to be.
47 Type `str`. """
49 self.type = None
50 """ What type of value.
51 Type `str`. """
53 self.use = None
54 """ in | out.
55 Type `str`. """
57 super(ParameterDefinition, self).__init__(jsondict=jsondict, strict=strict)
59 def elementProperties(self):
60 js = super(ParameterDefinition, self).elementProperties()
61 js.extend([
62 ("documentation", "documentation", str, False, None, False),
63 ("max", "max", str, False, None, False),
64 ("min", "min", int, False, None, False),
65 ("name", "name", str, False, None, False),
66 ("profile", "profile", str, False, None, False),
67 ("type", "type", str, False, None, True),
68 ("use", "use", str, False, None, True),
69 ])
70 return js