1 <?php
namespace HL7\FHIR\STU3\FHIRResource\FHIRClaimResponse
;
4 * This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
5 * class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
7 * Class creation date: February 10th, 2018
10 use HL7\FHIR\STU3\FHIRElement\FHIRBackboneElement
;
13 * This resource provides the adjudication details from the processing of a Claim resource.
15 class FHIRClaimResponseProcessNote
extends FHIRBackboneElement
implements \JsonSerializable
18 * An integer associated with each note which may be referred to from each service line item.
19 * @var \HL7\FHIR\STU3\FHIRElement\FHIRPositiveInt
21 public $number = null;
24 * The note purpose: Print/Display.
25 * @var \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept
31 * @var \HL7\FHIR\STU3\FHIRElement\FHIRString
36 * The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. "en" for English, or "en-US" for American English versus "en-EN" for England English.
37 * @var \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept
39 public $language = null;
44 private $_fhirElementName = 'ClaimResponse.ProcessNote';
47 * An integer associated with each note which may be referred to from each service line item.
48 * @return \HL7\FHIR\STU3\FHIRElement\FHIRPositiveInt
50 public function getNumber()
56 * An integer associated with each note which may be referred to from each service line item.
57 * @param \HL7\FHIR\STU3\FHIRElement\FHIRPositiveInt $number
60 public function setNumber($number)
62 $this->number
= $number;
67 * The note purpose: Print/Display.
68 * @return \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept
70 public function getType()
76 * The note purpose: Print/Display.
77 * @param \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept $type
80 public function setType($type)
88 * @return \HL7\FHIR\STU3\FHIRElement\FHIRString
90 public function getText()
97 * @param \HL7\FHIR\STU3\FHIRElement\FHIRString $text
100 public function setText($text)
107 * The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. "en" for English, or "en-US" for American English versus "en-EN" for England English.
108 * @return \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept
110 public function getLanguage()
112 return $this->language
;
116 * The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. "en" for English, or "en-US" for American English versus "en-EN" for England English.
117 * @param \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept $language
120 public function setLanguage($language)
122 $this->language
= $language;
129 public function get_fhirElementName()
131 return $this->_fhirElementName
;
137 public function __construct($data = [])
139 if (is_array($data)) {
140 if (isset($data['number'])) {
141 $this->setNumber($data['number']);
143 if (isset($data['type'])) {
144 $this->setType($data['type']);
146 if (isset($data['text'])) {
147 $this->setText($data['text']);
149 if (isset($data['language'])) {
150 $this->setLanguage($data['language']);
152 } else if (null !== $data) {
153 throw new \
InvalidArgumentException('$data expected to be array of values, saw "'.gettype($data).'"');
155 parent
::__construct($data);
161 public function __toString()
163 return $this->get_fhirElementName();
169 public function jsonSerialize()
171 $json = parent
::jsonSerialize();
172 if (isset($this->number
)) {
173 $json['number'] = $this->number
;
175 if (isset($this->type
)) {
176 $json['type'] = $this->type
;
178 if (isset($this->text
)) {
179 $json['text'] = $this->text
;
181 if (isset($this->language
)) {
182 $json['language'] = $this->language
;
188 * @param boolean $returnSXE
189 * @param \SimpleXMLElement $sxe
190 * @return string|\SimpleXMLElement
192 public function xmlSerialize($returnSXE = false, $sxe = null)
195 $sxe = new \
SimpleXMLElement('<ClaimResponseProcessNote xmlns="http://hl7.org/fhir"></ClaimResponseProcessNote>');
197 parent
::xmlSerialize(true, $sxe);
198 if (isset($this->number
)) {
199 $this->number
->xmlSerialize(true, $sxe->addChild('number'));
201 if (isset($this->type
)) {
202 $this->type
->xmlSerialize(true, $sxe->addChild('type'));
204 if (isset($this->text
)) {
205 $this->text
->xmlSerialize(true, $sxe->addChild('text'));
207 if (isset($this->language
)) {
208 $this->language
->xmlSerialize(true, $sxe->addChild('language'));
213 return $sxe->saveXML();