/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<ValueSetCodeSystem xmlns="http://hl7.org/fhir"></ValueSetCodeSystem>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->system) { $this->system->xmlSerialize(true, $sxe->addChild('system')); } if (null !== $this->version) { $this->version->xmlSerialize(true, $sxe->addChild('version')); } if (null !== $this->caseSensitive) { $this->caseSensitive->xmlSerialize(true, $sxe->addChild('caseSensitive')); } if (0 < count($this->concept)) { foreach ($this->concept as $concept) { $concept->xmlSerialize(true, $sxe->addChild('concept')); } } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<TestScriptCapability xmlns="http://hl7.org/fhir"></TestScriptCapability>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->required) { $this->required->xmlSerialize(true, $sxe->addChild('required')); } if (null !== $this->validated) { $this->validated->xmlSerialize(true, $sxe->addChild('validated')); } if (null !== $this->description) { $this->description->xmlSerialize(true, $sxe->addChild('description')); } if (null !== $this->destination) { $this->destination->xmlSerialize(true, $sxe->addChild('destination')); } if (0 < count($this->link)) { foreach ($this->link as $link) { $link->xmlSerialize(true, $sxe->addChild('link')); } } if (null !== $this->conformance) { $this->conformance->xmlSerialize(true, $sxe->addChild('conformance')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<Medication xmlns="http://hl7.org/fhir"></Medication>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->code) { $this->code->xmlSerialize(true, $sxe->addChild('code')); } if (null !== $this->isBrand) { $this->isBrand->xmlSerialize(true, $sxe->addChild('isBrand')); } if (null !== $this->manufacturer) { $this->manufacturer->xmlSerialize(true, $sxe->addChild('manufacturer')); } if (null !== $this->product) { $this->product->xmlSerialize(true, $sxe->addChild('product')); } if (null !== $this->package) { $this->package->xmlSerialize(true, $sxe->addChild('package')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<ValueSetParameter xmlns="http://hl7.org/fhir"></ValueSetParameter>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->name) { $this->name->xmlSerialize(true, $sxe->addChild('name')); } if (null !== $this->valueString) { $this->valueString->xmlSerialize(true, $sxe->addChild('valueString')); } if (null !== $this->valueBoolean) { $this->valueBoolean->xmlSerialize(true, $sxe->addChild('valueBoolean')); } if (null !== $this->valueInteger) { $this->valueInteger->xmlSerialize(true, $sxe->addChild('valueInteger')); } if (null !== $this->valueDecimal) { $this->valueDecimal->xmlSerialize(true, $sxe->addChild('valueDecimal')); } if (null !== $this->valueUri) { $this->valueUri->xmlSerialize(true, $sxe->addChild('valueUri')); } if (null !== $this->valueCode) { $this->valueCode->xmlSerialize(true, $sxe->addChild('valueCode')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<ValueSetContains xmlns="http://hl7.org/fhir"></ValueSetContains>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->system) { $this->system->xmlSerialize(true, $sxe->addChild('system')); } if (null !== $this->abstract) { $this->abstract->xmlSerialize(true, $sxe->addChild('abstract')); } if (null !== $this->version) { $this->version->xmlSerialize(true, $sxe->addChild('version')); } if (null !== $this->code) { $this->code->xmlSerialize(true, $sxe->addChild('code')); } if (null !== $this->display) { $this->display->xmlSerialize(true, $sxe->addChild('display')); } if (0 < count($this->contains)) { foreach ($this->contains as $contains) { $contains->xmlSerialize(true, $sxe->addChild('contains')); } } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<ValueSetConcept xmlns="http://hl7.org/fhir"></ValueSetConcept>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->code) { $this->code->xmlSerialize(true, $sxe->addChild('code')); } if (null !== $this->abstract) { $this->abstract->xmlSerialize(true, $sxe->addChild('abstract')); } if (null !== $this->display) { $this->display->xmlSerialize(true, $sxe->addChild('display')); } if (null !== $this->definition) { $this->definition->xmlSerialize(true, $sxe->addChild('definition')); } if (0 < count($this->designation)) { foreach ($this->designation as $designation) { $designation->xmlSerialize(true, $sxe->addChild('designation')); } } if (0 < count($this->concept)) { foreach ($this->concept as $concept) { $concept->xmlSerialize(true, $sxe->addChild('concept')); } } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<ElementDefinitionSlicing xmlns="http://hl7.org/fhir"></ElementDefinitionSlicing>'); } parent::xmlSerialize(true, $sxe); if (0 < count($this->discriminator)) { foreach ($this->discriminator as $discriminator) { $discriminator->xmlSerialize(true, $sxe->addChild('discriminator')); } } if (null !== $this->description) { $this->description->xmlSerialize(true, $sxe->addChild('description')); } if (null !== $this->ordered) { $this->ordered->xmlSerialize(true, $sxe->addChild('ordered')); } if (null !== $this->rules) { $this->rules->xmlSerialize(true, $sxe->addChild('rules')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<ConformanceSecurity xmlns="http://hl7.org/fhir"></ConformanceSecurity>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->cors) { $this->cors->xmlSerialize(true, $sxe->addChild('cors')); } if (0 < count($this->service)) { foreach ($this->service as $service) { $service->xmlSerialize(true, $sxe->addChild('service')); } } if (null !== $this->description) { $this->description->xmlSerialize(true, $sxe->addChild('description')); } if (0 < count($this->certificate)) { foreach ($this->certificate as $certificate) { $certificate->xmlSerialize(true, $sxe->addChild('certificate')); } } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<HealthcareServiceAvailableTime xmlns="http://hl7.org/fhir"></HealthcareServiceAvailableTime>'); } parent::xmlSerialize(true, $sxe); if (0 < count($this->daysOfWeek)) { foreach ($this->daysOfWeek as $daysOfWeek) { $daysOfWeek->xmlSerialize(true, $sxe->addChild('daysOfWeek')); } } if (null !== $this->allDay) { $this->allDay->xmlSerialize(true, $sxe->addChild('allDay')); } if (null !== $this->availableStartTime) { $this->availableStartTime->xmlSerialize(true, $sxe->addChild('availableStartTime')); } if (null !== $this->availableEndTime) { $this->availableEndTime->xmlSerialize(true, $sxe->addChild('availableEndTime')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<Practitioner xmlns="http://hl7.org/fhir"></Practitioner>'); } parent::xmlSerialize(true, $sxe); if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } if (null !== $this->active) { $this->active->xmlSerialize(true, $sxe->addChild('active')); } if (null !== $this->name) { $this->name->xmlSerialize(true, $sxe->addChild('name')); } if (0 < count($this->telecom)) { foreach ($this->telecom as $telecom) { $telecom->xmlSerialize(true, $sxe->addChild('telecom')); } } if (0 < count($this->address)) { foreach ($this->address as $address) { $address->xmlSerialize(true, $sxe->addChild('address')); } } if (null !== $this->gender) { $this->gender->xmlSerialize(true, $sxe->addChild('gender')); } if (null !== $this->birthDate) { $this->birthDate->xmlSerialize(true, $sxe->addChild('birthDate')); } if (0 < count($this->photo)) { foreach ($this->photo as $photo) { $photo->xmlSerialize(true, $sxe->addChild('photo')); } } if (0 < count($this->practitionerRole)) { foreach ($this->practitionerRole as $practitionerRole) { $practitionerRole->xmlSerialize(true, $sxe->addChild('practitionerRole')); } } if (0 < count($this->qualification)) { foreach ($this->qualification as $qualification) { $qualification->xmlSerialize(true, $sxe->addChild('qualification')); } } if (0 < count($this->communication)) { foreach ($this->communication as $communication) { $communication->xmlSerialize(true, $sxe->addChild('communication')); } } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<QuestionnaireAnswersAnswer xmlns="http://hl7.org/fhir"></QuestionnaireAnswersAnswer>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->valueBoolean) { $this->valueBoolean->xmlSerialize(true, $sxe->addChild('valueBoolean')); } if (null !== $this->valueDecimal) { $this->valueDecimal->xmlSerialize(true, $sxe->addChild('valueDecimal')); } if (null !== $this->valueInteger) { $this->valueInteger->xmlSerialize(true, $sxe->addChild('valueInteger')); } if (null !== $this->valueDate) { $this->valueDate->xmlSerialize(true, $sxe->addChild('valueDate')); } if (null !== $this->valueDateTime) { $this->valueDateTime->xmlSerialize(true, $sxe->addChild('valueDateTime')); } if (null !== $this->valueInstant) { $this->valueInstant->xmlSerialize(true, $sxe->addChild('valueInstant')); } if (null !== $this->valueTime) { $this->valueTime->xmlSerialize(true, $sxe->addChild('valueTime')); } if (null !== $this->valueString) { $this->valueString->xmlSerialize(true, $sxe->addChild('valueString')); } if (null !== $this->valueUri) { $this->valueUri->xmlSerialize(true, $sxe->addChild('valueUri')); } if (null !== $this->valueAttachment) { $this->valueAttachment->xmlSerialize(true, $sxe->addChild('valueAttachment')); } if (null !== $this->valueCoding) { $this->valueCoding->xmlSerialize(true, $sxe->addChild('valueCoding')); } if (null !== $this->valueMeasuredQuantity) { $this->valueMeasuredQuantity->xmlSerialize(true, $sxe->addChild('valueMeasuredQuantity')); } if (null !== $this->valueReference) { $this->valueReference->xmlSerialize(true, $sxe->addChild('valueReference')); } if (0 < count($this->group)) { foreach ($this->group as $group) { $group->xmlSerialize(true, $sxe->addChild('group')); } } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<PatientCommunication xmlns="http://hl7.org/fhir"></PatientCommunication>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->language) { $this->language->xmlSerialize(true, $sxe->addChild('language')); } if (null !== $this->preferred) { $this->preferred->xmlSerialize(true, $sxe->addChild('preferred')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<Organization xmlns="http://hl7.org/fhir"></Organization>'); } parent::xmlSerialize(true, $sxe); if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } if (null !== $this->active) { $this->active->xmlSerialize(true, $sxe->addChild('active')); } if (null !== $this->type) { $this->type->xmlSerialize(true, $sxe->addChild('type')); } if (null !== $this->name) { $this->name->xmlSerialize(true, $sxe->addChild('name')); } if (0 < count($this->telecom)) { foreach ($this->telecom as $telecom) { $telecom->xmlSerialize(true, $sxe->addChild('telecom')); } } if (0 < count($this->address)) { foreach ($this->address as $address) { $address->xmlSerialize(true, $sxe->addChild('address')); } } if (null !== $this->partOf) { $this->partOf->xmlSerialize(true, $sxe->addChild('partOf')); } if (0 < count($this->contact)) { foreach ($this->contact as $contact) { $contact->xmlSerialize(true, $sxe->addChild('contact')); } } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<ClaimProsthesis xmlns="http://hl7.org/fhir"></ClaimProsthesis>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->initial) { $this->initial->xmlSerialize(true, $sxe->addChild('initial')); } if (null !== $this->priorDate) { $this->priorDate->xmlSerialize(true, $sxe->addChild('priorDate')); } if (null !== $this->priorMaterial) { $this->priorMaterial->xmlSerialize(true, $sxe->addChild('priorMaterial')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<GroupMember xmlns="http://hl7.org/fhir"></GroupMember>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->entity) { $this->entity->xmlSerialize(true, $sxe->addChild('entity')); } if (null !== $this->period) { $this->period->xmlSerialize(true, $sxe->addChild('period')); } if (null !== $this->inactive) { $this->inactive->xmlSerialize(true, $sxe->addChild('inactive')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<TestScriptFixture xmlns="http://hl7.org/fhir"></TestScriptFixture>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->autocreate) { $this->autocreate->xmlSerialize(true, $sxe->addChild('autocreate')); } if (null !== $this->autodelete) { $this->autodelete->xmlSerialize(true, $sxe->addChild('autodelete')); } if (null !== $this->resource) { $this->resource->xmlSerialize(true, $sxe->addChild('resource')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<ImmunizationReaction xmlns="http://hl7.org/fhir"></ImmunizationReaction>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->date) { $this->date->xmlSerialize(true, $sxe->addChild('date')); } if (null !== $this->detail) { $this->detail->xmlSerialize(true, $sxe->addChild('detail')); } if (null !== $this->reported) { $this->reported->xmlSerialize(true, $sxe->addChild('reported')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<Group xmlns="http://hl7.org/fhir"></Group>'); } parent::xmlSerialize(true, $sxe); if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } if (null !== $this->type) { $this->type->xmlSerialize(true, $sxe->addChild('type')); } if (null !== $this->actual) { $this->actual->xmlSerialize(true, $sxe->addChild('actual')); } if (null !== $this->code) { $this->code->xmlSerialize(true, $sxe->addChild('code')); } if (null !== $this->name) { $this->name->xmlSerialize(true, $sxe->addChild('name')); } if (null !== $this->quantity) { $this->quantity->xmlSerialize(true, $sxe->addChild('quantity')); } if (0 < count($this->characteristic)) { foreach ($this->characteristic as $characteristic) { $characteristic->xmlSerialize(true, $sxe->addChild('characteristic')); } } if (0 < count($this->member)) { foreach ($this->member as $member) { $member->xmlSerialize(true, $sxe->addChild('member')); } } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<ListEntry xmlns="http://hl7.org/fhir"></ListEntry>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->flag) { $this->flag->xmlSerialize(true, $sxe->addChild('flag')); } if (null !== $this->deleted) { $this->deleted->xmlSerialize(true, $sxe->addChild('deleted')); } if (null !== $this->date) { $this->date->xmlSerialize(true, $sxe->addChild('date')); } if (null !== $this->item) { $this->item->xmlSerialize(true, $sxe->addChild('item')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<NamingSystemUniqueId xmlns="http://hl7.org/fhir"></NamingSystemUniqueId>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->type) { $this->type->xmlSerialize(true, $sxe->addChild('type')); } if (null !== $this->value) { $this->value->xmlSerialize(true, $sxe->addChild('value')); } if (null !== $this->preferred) { $this->preferred->xmlSerialize(true, $sxe->addChild('preferred')); } if (null !== $this->period) { $this->period->xmlSerialize(true, $sxe->addChild('period')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<ClaimResponseCoverage xmlns="http://hl7.org/fhir"></ClaimResponseCoverage>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->sequence) { $this->sequence->xmlSerialize(true, $sxe->addChild('sequence')); } if (null !== $this->focal) { $this->focal->xmlSerialize(true, $sxe->addChild('focal')); } if (null !== $this->coverage) { $this->coverage->xmlSerialize(true, $sxe->addChild('coverage')); } if (null !== $this->businessArrangement) { $this->businessArrangement->xmlSerialize(true, $sxe->addChild('businessArrangement')); } if (null !== $this->relationship) { $this->relationship->xmlSerialize(true, $sxe->addChild('relationship')); } if (0 < count($this->preAuthRef)) { foreach ($this->preAuthRef as $preAuthRef) { $preAuthRef->xmlSerialize(true, $sxe->addChild('preAuthRef')); } } if (null !== $this->claimResponse) { $this->claimResponse->xmlSerialize(true, $sxe->addChild('claimResponse')); } if (null !== $this->originalRuleset) { $this->originalRuleset->xmlSerialize(true, $sxe->addChild('originalRuleset')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<TestScriptAssert xmlns="http://hl7.org/fhir"></TestScriptAssert>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->label) { $this->label->xmlSerialize(true, $sxe->addChild('label')); } if (null !== $this->description) { $this->description->xmlSerialize(true, $sxe->addChild('description')); } if (null !== $this->direction) { $this->direction->xmlSerialize(true, $sxe->addChild('direction')); } if (null !== $this->compareToSourceId) { $this->compareToSourceId->xmlSerialize(true, $sxe->addChild('compareToSourceId')); } if (null !== $this->compareToSourcePath) { $this->compareToSourcePath->xmlSerialize(true, $sxe->addChild('compareToSourcePath')); } if (null !== $this->contentType) { $this->contentType->xmlSerialize(true, $sxe->addChild('contentType')); } if (null !== $this->headerField) { $this->headerField->xmlSerialize(true, $sxe->addChild('headerField')); } if (null !== $this->minimumId) { $this->minimumId->xmlSerialize(true, $sxe->addChild('minimumId')); } if (null !== $this->navigationLinks) { $this->navigationLinks->xmlSerialize(true, $sxe->addChild('navigationLinks')); } if (null !== $this->operator) { $this->operator->xmlSerialize(true, $sxe->addChild('operator')); } if (null !== $this->path) { $this->path->xmlSerialize(true, $sxe->addChild('path')); } if (null !== $this->resource) { $this->resource->xmlSerialize(true, $sxe->addChild('resource')); } if (null !== $this->response) { $this->response->xmlSerialize(true, $sxe->addChild('response')); } if (null !== $this->responseCode) { $this->responseCode->xmlSerialize(true, $sxe->addChild('responseCode')); } if (null !== $this->sourceId) { $this->sourceId->xmlSerialize(true, $sxe->addChild('sourceId')); } if (null !== $this->validateProfileId) { $this->validateProfileId->xmlSerialize(true, $sxe->addChild('validateProfileId')); } if (null !== $this->value) { $this->value->xmlSerialize(true, $sxe->addChild('value')); } if (null !== $this->warningOnly) { $this->warningOnly->xmlSerialize(true, $sxe->addChild('warningOnly')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<Patient xmlns="http://hl7.org/fhir"></Patient>'); } parent::xmlSerialize(true, $sxe); if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } if (null !== $this->active) { $this->active->xmlSerialize(true, $sxe->addChild('active')); } if (0 < count($this->name)) { foreach ($this->name as $name) { $name->xmlSerialize(true, $sxe->addChild('name')); } } if (0 < count($this->telecom)) { foreach ($this->telecom as $telecom) { $telecom->xmlSerialize(true, $sxe->addChild('telecom')); } } if (null !== $this->gender) { $this->gender->xmlSerialize(true, $sxe->addChild('gender')); } if (null !== $this->birthDate) { $this->birthDate->xmlSerialize(true, $sxe->addChild('birthDate')); } if (null !== $this->deceasedBoolean) { $this->deceasedBoolean->xmlSerialize(true, $sxe->addChild('deceasedBoolean')); } if (null !== $this->deceasedDateTime) { $this->deceasedDateTime->xmlSerialize(true, $sxe->addChild('deceasedDateTime')); } if (0 < count($this->address)) { foreach ($this->address as $address) { $address->xmlSerialize(true, $sxe->addChild('address')); } } if (null !== $this->maritalStatus) { $this->maritalStatus->xmlSerialize(true, $sxe->addChild('maritalStatus')); } if (null !== $this->multipleBirthBoolean) { $this->multipleBirthBoolean->xmlSerialize(true, $sxe->addChild('multipleBirthBoolean')); } if (null !== $this->multipleBirthInteger) { $this->multipleBirthInteger->xmlSerialize(true, $sxe->addChild('multipleBirthInteger')); } if (0 < count($this->photo)) { foreach ($this->photo as $photo) { $photo->xmlSerialize(true, $sxe->addChild('photo')); } } if (0 < count($this->contact)) { foreach ($this->contact as $contact) { $contact->xmlSerialize(true, $sxe->addChild('contact')); } } if (null !== $this->animal) { $this->animal->xmlSerialize(true, $sxe->addChild('animal')); } if (0 < count($this->communication)) { foreach ($this->communication as $communication) { $communication->xmlSerialize(true, $sxe->addChild('communication')); } } if (0 < count($this->careProvider)) { foreach ($this->careProvider as $careProvider) { $careProvider->xmlSerialize(true, $sxe->addChild('careProvider')); } } if (null !== $this->managingOrganization) { $this->managingOrganization->xmlSerialize(true, $sxe->addChild('managingOrganization')); } if (0 < count($this->link)) { foreach ($this->link as $link) { $link->xmlSerialize(true, $sxe->addChild('link')); } } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<ConditionDefinition xmlns="http://hl7.org/fhir"></ConditionDefinition>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->url) { $this->url->xmlSerialize(true, $sxe->addChild('url')); } if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } if (null !== $this->version) { $this->version->xmlSerialize(true, $sxe->addChild('version')); } if (null !== $this->name) { $this->name->xmlSerialize(true, $sxe->addChild('name')); } if (null !== $this->status) { $this->status->xmlSerialize(true, $sxe->addChild('status')); } if (null !== $this->experimental) { $this->experimental->xmlSerialize(true, $sxe->addChild('experimental')); } if (null !== $this->publisher) { $this->publisher->xmlSerialize(true, $sxe->addChild('publisher')); } if (0 < count($this->contact)) { foreach ($this->contact as $contact) { $contact->xmlSerialize(true, $sxe->addChild('contact')); } } if (null !== $this->date) { $this->date->xmlSerialize(true, $sxe->addChild('date')); } if (0 < count($this->useContext)) { foreach ($this->useContext as $useContext) { $useContext->xmlSerialize(true, $sxe->addChild('useContext')); } } if (null !== $this->copyright) { $this->copyright->xmlSerialize(true, $sxe->addChild('copyright')); } if (null !== $this->severity) { $this->severity->xmlSerialize(true, $sxe->addChild('severity')); } if (0 < count($this->occurance)) { foreach ($this->occurance as $occurance) { $occurance->xmlSerialize(true, $sxe->addChild('occurance')); } } if (0 < count($this->findingSite)) { foreach ($this->findingSite as $findingSite) { $findingSite->xmlSerialize(true, $sxe->addChild('findingSite')); } } if (0 < count($this->morphology)) { foreach ($this->morphology as $morphology) { $morphology->xmlSerialize(true, $sxe->addChild('morphology')); } } if (0 < count($this->causedBy)) { foreach ($this->causedBy as $causedBy) { $causedBy->xmlSerialize(true, $sxe->addChild('causedBy')); } } if (0 < count($this->associated)) { foreach ($this->associated as $associated) { $associated->xmlSerialize(true, $sxe->addChild('associated')); } } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<DataElement xmlns="http://hl7.org/fhir"></DataElement>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->url) { $this->url->xmlSerialize(true, $sxe->addChild('url')); } if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } if (null !== $this->version) { $this->version->xmlSerialize(true, $sxe->addChild('version')); } if (null !== $this->name) { $this->name->xmlSerialize(true, $sxe->addChild('name')); } if (null !== $this->status) { $this->status->xmlSerialize(true, $sxe->addChild('status')); } if (null !== $this->experimental) { $this->experimental->xmlSerialize(true, $sxe->addChild('experimental')); } if (null !== $this->publisher) { $this->publisher->xmlSerialize(true, $sxe->addChild('publisher')); } if (0 < count($this->contact)) { foreach ($this->contact as $contact) { $contact->xmlSerialize(true, $sxe->addChild('contact')); } } if (null !== $this->date) { $this->date->xmlSerialize(true, $sxe->addChild('date')); } if (0 < count($this->useContext)) { foreach ($this->useContext as $useContext) { $useContext->xmlSerialize(true, $sxe->addChild('useContext')); } } if (null !== $this->copyright) { $this->copyright->xmlSerialize(true, $sxe->addChild('copyright')); } if (null !== $this->stringency) { $this->stringency->xmlSerialize(true, $sxe->addChild('stringency')); } if (0 < count($this->mapping)) { foreach ($this->mapping as $mapping) { $mapping->xmlSerialize(true, $sxe->addChild('mapping')); } } if (0 < count($this->element)) { foreach ($this->element as $element) { $element->xmlSerialize(true, $sxe->addChild('element')); } } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<TestScript xmlns="http://hl7.org/fhir"></TestScript>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->url) { $this->url->xmlSerialize(true, $sxe->addChild('url')); } if (null !== $this->version) { $this->version->xmlSerialize(true, $sxe->addChild('version')); } if (null !== $this->name) { $this->name->xmlSerialize(true, $sxe->addChild('name')); } if (null !== $this->status) { $this->status->xmlSerialize(true, $sxe->addChild('status')); } if (null !== $this->identifier) { $this->identifier->xmlSerialize(true, $sxe->addChild('identifier')); } if (null !== $this->experimental) { $this->experimental->xmlSerialize(true, $sxe->addChild('experimental')); } if (null !== $this->publisher) { $this->publisher->xmlSerialize(true, $sxe->addChild('publisher')); } if (0 < count($this->contact)) { foreach ($this->contact as $contact) { $contact->xmlSerialize(true, $sxe->addChild('contact')); } } if (null !== $this->date) { $this->date->xmlSerialize(true, $sxe->addChild('date')); } if (null !== $this->description) { $this->description->xmlSerialize(true, $sxe->addChild('description')); } if (0 < count($this->useContext)) { foreach ($this->useContext as $useContext) { $useContext->xmlSerialize(true, $sxe->addChild('useContext')); } } if (null !== $this->requirements) { $this->requirements->xmlSerialize(true, $sxe->addChild('requirements')); } if (null !== $this->copyright) { $this->copyright->xmlSerialize(true, $sxe->addChild('copyright')); } if (null !== $this->metadata) { $this->metadata->xmlSerialize(true, $sxe->addChild('metadata')); } if (null !== $this->multiserver) { $this->multiserver->xmlSerialize(true, $sxe->addChild('multiserver')); } if (0 < count($this->fixture)) { foreach ($this->fixture as $fixture) { $fixture->xmlSerialize(true, $sxe->addChild('fixture')); } } if (0 < count($this->profile)) { foreach ($this->profile as $profile) { $profile->xmlSerialize(true, $sxe->addChild('profile')); } } if (0 < count($this->variable)) { foreach ($this->variable as $variable) { $variable->xmlSerialize(true, $sxe->addChild('variable')); } } if (null !== $this->setup) { $this->setup->xmlSerialize(true, $sxe->addChild('setup')); } if (0 < count($this->test)) { foreach ($this->test as $test) { $test->xmlSerialize(true, $sxe->addChild('test')); } } if (null !== $this->teardown) { $this->teardown->xmlSerialize(true, $sxe->addChild('teardown')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<MedicationOrderDosageInstruction xmlns="http://hl7.org/fhir"></MedicationOrderDosageInstruction>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->text) { $this->text->xmlSerialize(true, $sxe->addChild('text')); } if (null !== $this->additionalInstructions) { $this->additionalInstructions->xmlSerialize(true, $sxe->addChild('additionalInstructions')); } if (null !== $this->timing) { $this->timing->xmlSerialize(true, $sxe->addChild('timing')); } if (null !== $this->asNeededBoolean) { $this->asNeededBoolean->xmlSerialize(true, $sxe->addChild('asNeededBoolean')); } if (null !== $this->asNeededCodeableConcept) { $this->asNeededCodeableConcept->xmlSerialize(true, $sxe->addChild('asNeededCodeableConcept')); } if (null !== $this->siteCodeableConcept) { $this->siteCodeableConcept->xmlSerialize(true, $sxe->addChild('siteCodeableConcept')); } if (null !== $this->siteReference) { $this->siteReference->xmlSerialize(true, $sxe->addChild('siteReference')); } if (null !== $this->route) { $this->route->xmlSerialize(true, $sxe->addChild('route')); } if (null !== $this->method) { $this->method->xmlSerialize(true, $sxe->addChild('method')); } if (null !== $this->doseRange) { $this->doseRange->xmlSerialize(true, $sxe->addChild('doseRange')); } if (null !== $this->doseQuantity) { $this->doseQuantity->xmlSerialize(true, $sxe->addChild('doseQuantity')); } if (null !== $this->rateRatio) { $this->rateRatio->xmlSerialize(true, $sxe->addChild('rateRatio')); } if (null !== $this->rateRange) { $this->rateRange->xmlSerialize(true, $sxe->addChild('rateRange')); } if (null !== $this->maxDosePerPeriod) { $this->maxDosePerPeriod->xmlSerialize(true, $sxe->addChild('maxDosePerPeriod')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<Condition xmlns="http://hl7.org/fhir"></Condition>'); } parent::xmlSerialize(true, $sxe); if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } if (null !== $this->patient) { $this->patient->xmlSerialize(true, $sxe->addChild('patient')); } if (null !== $this->encounter) { $this->encounter->xmlSerialize(true, $sxe->addChild('encounter')); } if (null !== $this->asserter) { $this->asserter->xmlSerialize(true, $sxe->addChild('asserter')); } if (null !== $this->dateRecorded) { $this->dateRecorded->xmlSerialize(true, $sxe->addChild('dateRecorded')); } if (null !== $this->code) { $this->code->xmlSerialize(true, $sxe->addChild('code')); } if (null !== $this->category) { $this->category->xmlSerialize(true, $sxe->addChild('category')); } if (null !== $this->clinicalStatus) { $this->clinicalStatus->xmlSerialize(true, $sxe->addChild('clinicalStatus')); } if (null !== $this->verificationStatus) { $this->verificationStatus->xmlSerialize(true, $sxe->addChild('verificationStatus')); } if (null !== $this->severity) { $this->severity->xmlSerialize(true, $sxe->addChild('severity')); } if (null !== $this->onsetDateTime) { $this->onsetDateTime->xmlSerialize(true, $sxe->addChild('onsetDateTime')); } if (null !== $this->onsetQuantity) { $this->onsetQuantity->xmlSerialize(true, $sxe->addChild('onsetQuantity')); } if (null !== $this->onsetPeriod) { $this->onsetPeriod->xmlSerialize(true, $sxe->addChild('onsetPeriod')); } if (null !== $this->onsetRange) { $this->onsetRange->xmlSerialize(true, $sxe->addChild('onsetRange')); } if (null !== $this->onsetString) { $this->onsetString->xmlSerialize(true, $sxe->addChild('onsetString')); } if (null !== $this->abatementDateTime) { $this->abatementDateTime->xmlSerialize(true, $sxe->addChild('abatementDateTime')); } if (null !== $this->abatementQuantity) { $this->abatementQuantity->xmlSerialize(true, $sxe->addChild('abatementQuantity')); } if (null !== $this->abatementBoolean) { $this->abatementBoolean->xmlSerialize(true, $sxe->addChild('abatementBoolean')); } if (null !== $this->abatementPeriod) { $this->abatementPeriod->xmlSerialize(true, $sxe->addChild('abatementPeriod')); } if (null !== $this->abatementRange) { $this->abatementRange->xmlSerialize(true, $sxe->addChild('abatementRange')); } if (null !== $this->abatementString) { $this->abatementString->xmlSerialize(true, $sxe->addChild('abatementString')); } if (null !== $this->stage) { $this->stage->xmlSerialize(true, $sxe->addChild('stage')); } if (0 < count($this->evidence)) { foreach ($this->evidence as $evidence) { $evidence->xmlSerialize(true, $sxe->addChild('evidence')); } } if (0 < count($this->bodySite)) { foreach ($this->bodySite as $bodySite) { $bodySite->xmlSerialize(true, $sxe->addChild('bodySite')); } } if (null !== $this->notes) { $this->notes->xmlSerialize(true, $sxe->addChild('notes')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<MedicationAdministration xmlns="http://hl7.org/fhir"></MedicationAdministration>'); } parent::xmlSerialize(true, $sxe); if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } if (null !== $this->status) { $this->status->xmlSerialize(true, $sxe->addChild('status')); } if (null !== $this->patient) { $this->patient->xmlSerialize(true, $sxe->addChild('patient')); } if (null !== $this->practitioner) { $this->practitioner->xmlSerialize(true, $sxe->addChild('practitioner')); } if (null !== $this->encounter) { $this->encounter->xmlSerialize(true, $sxe->addChild('encounter')); } if (null !== $this->prescription) { $this->prescription->xmlSerialize(true, $sxe->addChild('prescription')); } if (null !== $this->wasNotGiven) { $this->wasNotGiven->xmlSerialize(true, $sxe->addChild('wasNotGiven')); } if (0 < count($this->reasonNotGiven)) { foreach ($this->reasonNotGiven as $reasonNotGiven) { $reasonNotGiven->xmlSerialize(true, $sxe->addChild('reasonNotGiven')); } } if (0 < count($this->reasonGiven)) { foreach ($this->reasonGiven as $reasonGiven) { $reasonGiven->xmlSerialize(true, $sxe->addChild('reasonGiven')); } } if (null !== $this->effectiveTimeDateTime) { $this->effectiveTimeDateTime->xmlSerialize(true, $sxe->addChild('effectiveTimeDateTime')); } if (null !== $this->effectiveTimePeriod) { $this->effectiveTimePeriod->xmlSerialize(true, $sxe->addChild('effectiveTimePeriod')); } if (null !== $this->medicationCodeableConcept) { $this->medicationCodeableConcept->xmlSerialize(true, $sxe->addChild('medicationCodeableConcept')); } if (null !== $this->medicationReference) { $this->medicationReference->xmlSerialize(true, $sxe->addChild('medicationReference')); } if (0 < count($this->device)) { foreach ($this->device as $device) { $device->xmlSerialize(true, $sxe->addChild('device')); } } if (null !== $this->note) { $this->note->xmlSerialize(true, $sxe->addChild('note')); } if (null !== $this->dosage) { $this->dosage->xmlSerialize(true, $sxe->addChild('dosage')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }
/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<Coding xmlns="http://hl7.org/fhir"></Coding>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->system) { $this->system->xmlSerialize(true, $sxe->addChild('system')); } if (null !== $this->version) { $this->version->xmlSerialize(true, $sxe->addChild('version')); } if (null !== $this->code) { $this->code->xmlSerialize(true, $sxe->addChild('code')); } if (null !== $this->display) { $this->display->xmlSerialize(true, $sxe->addChild('display')); } if (null !== $this->userSelected) { $this->userSelected->xmlSerialize(true, $sxe->addChild('userSelected')); } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }