Coverage for /home/martinb/workspace/client-py/fhirclient/models/narrative.py : 45%

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/Narrative) on 2021-05-18.
5# 2021, SMART Health IT.
8from . import element
10class Narrative(element.Element):
11 """ Human-readable summary of the resource (essential clinical and business
12 information).
14 A human-readable summary of the resource conveying the essential clinical
15 and business information for the resource.
16 """
18 resource_type = "Narrative"
20 def __init__(self, jsondict=None, strict=True):
21 """ Initialize all valid properties.
23 :raises: FHIRValidationError on validation errors, unless strict is False
24 :param dict jsondict: A JSON dictionary to use for initialization
25 :param bool strict: If True (the default), invalid variables will raise a TypeError
26 """
28 self.div = None
29 """ Limited xhtml content.
30 Type `str`. """
32 self.status = None
33 """ generated | extensions | additional | empty.
34 Type `str`. """
36 super(Narrative, self).__init__(jsondict=jsondict, strict=strict)
38 def elementProperties(self):
39 js = super(Narrative, self).elementProperties()
40 js.extend([
41 ("div", "div", str, False, None, True),
42 ("status", "status", str, False, None, True),
43 ])
44 return js