Coverage for /home/martinb/workspace/client-py/fhirclient/models/identifier.py : 79%

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/Identifier) on 2021-05-18.
5# 2021, SMART Health IT.
8from . import element
10class Identifier(element.Element):
11 """ An identifier intended for computation.
13 An identifier - identifies some entity uniquely and unambiguously.
14 Typically this is used for business identifiers.
15 """
17 resource_type = "Identifier"
19 def __init__(self, jsondict=None, strict=True):
20 """ Initialize all valid properties.
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 """
27 self.assigner = None
28 """ Organization that issued id (may be just text).
29 Type `FHIRReference` (represented as `dict` in JSON). """
31 self.period = None
32 """ Time period when id is/was valid for use.
33 Type `Period` (represented as `dict` in JSON). """
35 self.system = None
36 """ The namespace for the identifier value.
37 Type `str`. """
39 self.type = None
40 """ Description of identifier.
41 Type `CodeableConcept` (represented as `dict` in JSON). """
43 self.use = None
44 """ usual | official | temp | secondary | old (If known).
45 Type `str`. """
47 self.value = None
48 """ The value that is unique.
49 Type `str`. """
51 super(Identifier, self).__init__(jsondict=jsondict, strict=strict)
53 def elementProperties(self):
54 js = super(Identifier, self).elementProperties()
55 js.extend([
56 ("assigner", "assigner", fhirreference.FHIRReference, False, None, False),
57 ("period", "period", period.Period, False, None, False),
58 ("system", "system", str, False, None, False),
59 ("type", "type", codeableconcept.CodeableConcept, False, None, False),
60 ("use", "use", str, False, None, False),
61 ("value", "value", str, False, None, False),
62 ])
63 return js
66import sys
67try:
68 from . import codeableconcept
69except ImportError:
70 codeableconcept = sys.modules[__package__ + '.codeableconcept']
71try:
72 from . import fhirreference
73except ImportError:
74 fhirreference = sys.modules[__package__ + '.fhirreference']
75try:
76 from . import period
77except ImportError:
78 period = sys.modules[__package__ + '.period']