/** * @param boolean $returnSXE * @param \SimpleXMLElement $sxe * @return string|\SimpleXMLElement */ public function xmlSerialize($returnSXE = false, $sxe = null) { if (null === $sxe) { $sxe = new \SimpleXMLElement('<ClaimMissingTeeth xmlns="http://hl7.org/fhir"></ClaimMissingTeeth>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->tooth) { $this->tooth->xmlSerialize(true, $sxe->addChild('tooth')); } if (null !== $this->reason) { $this->reason->xmlSerialize(true, $sxe->addChild('reason')); } if (null !== $this->extractionDate) { $this->extractionDate->xmlSerialize(true, $sxe->addChild('extractionDate')); } 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('<Goal xmlns="http://hl7.org/fhir"></Goal>'); } parent::xmlSerialize(true, $sxe); if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } if (null !== $this->subject) { $this->subject->xmlSerialize(true, $sxe->addChild('subject')); } if (null !== $this->startDate) { $this->startDate->xmlSerialize(true, $sxe->addChild('startDate')); } if (null !== $this->startCodeableConcept) { $this->startCodeableConcept->xmlSerialize(true, $sxe->addChild('startCodeableConcept')); } if (null !== $this->targetDate) { $this->targetDate->xmlSerialize(true, $sxe->addChild('targetDate')); } if (null !== $this->targetQuantity) { $this->targetQuantity->xmlSerialize(true, $sxe->addChild('targetQuantity')); } if (0 < count($this->category)) { foreach ($this->category as $category) { $category->xmlSerialize(true, $sxe->addChild('category')); } } if (null !== $this->description) { $this->description->xmlSerialize(true, $sxe->addChild('description')); } if (null !== $this->status) { $this->status->xmlSerialize(true, $sxe->addChild('status')); } if (null !== $this->statusDate) { $this->statusDate->xmlSerialize(true, $sxe->addChild('statusDate')); } if (null !== $this->statusReason) { $this->statusReason->xmlSerialize(true, $sxe->addChild('statusReason')); } if (null !== $this->author) { $this->author->xmlSerialize(true, $sxe->addChild('author')); } if (null !== $this->priority) { $this->priority->xmlSerialize(true, $sxe->addChild('priority')); } if (0 < count($this->addresses)) { foreach ($this->addresses as $addresses) { $addresses->xmlSerialize(true, $sxe->addChild('addresses')); } } if (0 < count($this->note)) { foreach ($this->note as $note) { $note->xmlSerialize(true, $sxe->addChild('note')); } } if (0 < count($this->outcome)) { foreach ($this->outcome as $outcome) { $outcome->xmlSerialize(true, $sxe->addChild('outcome')); } } 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('<ClaimItem xmlns="http://hl7.org/fhir"></ClaimItem>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->sequence) { $this->sequence->xmlSerialize(true, $sxe->addChild('sequence')); } if (null !== $this->type) { $this->type->xmlSerialize(true, $sxe->addChild('type')); } if (null !== $this->provider) { $this->provider->xmlSerialize(true, $sxe->addChild('provider')); } if (0 < count($this->diagnosisLinkId)) { foreach ($this->diagnosisLinkId as $diagnosisLinkId) { $diagnosisLinkId->xmlSerialize(true, $sxe->addChild('diagnosisLinkId')); } } if (null !== $this->service) { $this->service->xmlSerialize(true, $sxe->addChild('service')); } if (null !== $this->serviceDate) { $this->serviceDate->xmlSerialize(true, $sxe->addChild('serviceDate')); } if (null !== $this->quantity) { $this->quantity->xmlSerialize(true, $sxe->addChild('quantity')); } if (null !== $this->unitPrice) { $this->unitPrice->xmlSerialize(true, $sxe->addChild('unitPrice')); } if (null !== $this->factor) { $this->factor->xmlSerialize(true, $sxe->addChild('factor')); } if (null !== $this->points) { $this->points->xmlSerialize(true, $sxe->addChild('points')); } if (null !== $this->net) { $this->net->xmlSerialize(true, $sxe->addChild('net')); } if (null !== $this->udi) { $this->udi->xmlSerialize(true, $sxe->addChild('udi')); } if (null !== $this->bodySite) { $this->bodySite->xmlSerialize(true, $sxe->addChild('bodySite')); } if (0 < count($this->subSite)) { foreach ($this->subSite as $subSite) { $subSite->xmlSerialize(true, $sxe->addChild('subSite')); } } if (0 < count($this->modifier)) { foreach ($this->modifier as $modifier) { $modifier->xmlSerialize(true, $sxe->addChild('modifier')); } } if (0 < count($this->detail)) { foreach ($this->detail as $detail) { $detail->xmlSerialize(true, $sxe->addChild('detail')); } } if (null !== $this->prosthesis) { $this->prosthesis->xmlSerialize(true, $sxe->addChild('prosthesis')); } 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('<Basic xmlns="http://hl7.org/fhir"></Basic>'); } parent::xmlSerialize(true, $sxe); if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } if (null !== $this->code) { $this->code->xmlSerialize(true, $sxe->addChild('code')); } if (null !== $this->subject) { $this->subject->xmlSerialize(true, $sxe->addChild('subject')); } if (null !== $this->author) { $this->author->xmlSerialize(true, $sxe->addChild('author')); } if (null !== $this->created) { $this->created->xmlSerialize(true, $sxe->addChild('created')); } 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('<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('<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('<RelatedPerson xmlns="http://hl7.org/fhir"></RelatedPerson>'); } 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->relationship) { $this->relationship->xmlSerialize(true, $sxe->addChild('relationship')); } 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 (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->address)) { foreach ($this->address as $address) { $address->xmlSerialize(true, $sxe->addChild('address')); } } if (0 < count($this->photo)) { foreach ($this->photo as $photo) { $photo->xmlSerialize(true, $sxe->addChild('photo')); } } 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('<ElementDefinition xmlns="http://hl7.org/fhir"></ElementDefinition>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->path) { $this->path->xmlSerialize(true, $sxe->addChild('path')); } if (0 < count($this->representation)) { foreach ($this->representation as $representation) { $representation->xmlSerialize(true, $sxe->addChild('representation')); } } if (null !== $this->name) { $this->name->xmlSerialize(true, $sxe->addChild('name')); } if (null !== $this->label) { $this->label->xmlSerialize(true, $sxe->addChild('label')); } if (0 < count($this->code)) { foreach ($this->code as $code) { $code->xmlSerialize(true, $sxe->addChild('code')); } } if (null !== $this->slicing) { $this->slicing->xmlSerialize(true, $sxe->addChild('slicing')); } if (null !== $this->short) { $this->short->xmlSerialize(true, $sxe->addChild('short')); } if (null !== $this->definition) { $this->definition->xmlSerialize(true, $sxe->addChild('definition')); } if (null !== $this->comments) { $this->comments->xmlSerialize(true, $sxe->addChild('comments')); } if (null !== $this->requirements) { $this->requirements->xmlSerialize(true, $sxe->addChild('requirements')); } if (0 < count($this->alias)) { foreach ($this->alias as $alias) { $alias->xmlSerialize(true, $sxe->addChild('alias')); } } if (null !== $this->min) { $this->min->xmlSerialize(true, $sxe->addChild('min')); } if (null !== $this->max) { $this->max->xmlSerialize(true, $sxe->addChild('max')); } if (null !== $this->base) { $this->base->xmlSerialize(true, $sxe->addChild('base')); } if (0 < count($this->type)) { foreach ($this->type as $type) { $type->xmlSerialize(true, $sxe->addChild('type')); } } if (null !== $this->nameReference) { $this->nameReference->xmlSerialize(true, $sxe->addChild('nameReference')); } if (null !== $this->defaultValueBoolean) { $this->defaultValueBoolean->xmlSerialize(true, $sxe->addChild('defaultValueBoolean')); } if (null !== $this->defaultValueInteger) { $this->defaultValueInteger->xmlSerialize(true, $sxe->addChild('defaultValueInteger')); } if (null !== $this->defaultValueDecimal) { $this->defaultValueDecimal->xmlSerialize(true, $sxe->addChild('defaultValueDecimal')); } if (null !== $this->defaultValueBase64Binary) { $this->defaultValueBase64Binary->xmlSerialize(true, $sxe->addChild('defaultValueBase64Binary')); } if (null !== $this->defaultValueInstant) { $this->defaultValueInstant->xmlSerialize(true, $sxe->addChild('defaultValueInstant')); } if (null !== $this->defaultValueString) { $this->defaultValueString->xmlSerialize(true, $sxe->addChild('defaultValueString')); } if (null !== $this->defaultValueUri) { $this->defaultValueUri->xmlSerialize(true, $sxe->addChild('defaultValueUri')); } if (null !== $this->defaultValueDate) { $this->defaultValueDate->xmlSerialize(true, $sxe->addChild('defaultValueDate')); } if (null !== $this->defaultValueDateTime) { $this->defaultValueDateTime->xmlSerialize(true, $sxe->addChild('defaultValueDateTime')); } if (null !== $this->defaultValueTime) { $this->defaultValueTime->xmlSerialize(true, $sxe->addChild('defaultValueTime')); } if (null !== $this->defaultValueCode) { $this->defaultValueCode->xmlSerialize(true, $sxe->addChild('defaultValueCode')); } if (null !== $this->defaultValueOid) { $this->defaultValueOid->xmlSerialize(true, $sxe->addChild('defaultValueOid')); } if (null !== $this->defaultValueUuid) { $this->defaultValueUuid->xmlSerialize(true, $sxe->addChild('defaultValueUuid')); } if (null !== $this->defaultValueId) { $this->defaultValueId->xmlSerialize(true, $sxe->addChild('defaultValueId')); } if (null !== $this->defaultValueUnsignedInt) { $this->defaultValueUnsignedInt->xmlSerialize(true, $sxe->addChild('defaultValueUnsignedInt')); } if (null !== $this->defaultValuePositiveInt) { $this->defaultValuePositiveInt->xmlSerialize(true, $sxe->addChild('defaultValuePositiveInt')); } if (null !== $this->defaultValueMarkdown) { $this->defaultValueMarkdown->xmlSerialize(true, $sxe->addChild('defaultValueMarkdown')); } if (null !== $this->defaultValueAnnotation) { $this->defaultValueAnnotation->xmlSerialize(true, $sxe->addChild('defaultValueAnnotation')); } if (null !== $this->defaultValueAttachment) { $this->defaultValueAttachment->xmlSerialize(true, $sxe->addChild('defaultValueAttachment')); } if (null !== $this->defaultValueIdentifier) { $this->defaultValueIdentifier->xmlSerialize(true, $sxe->addChild('defaultValueIdentifier')); } if (null !== $this->defaultValueCodeableConcept) { $this->defaultValueCodeableConcept->xmlSerialize(true, $sxe->addChild('defaultValueCodeableConcept')); } if (null !== $this->defaultValueCoding) { $this->defaultValueCoding->xmlSerialize(true, $sxe->addChild('defaultValueCoding')); } if (null !== $this->defaultValueQuantity) { $this->defaultValueQuantity->xmlSerialize(true, $sxe->addChild('defaultValueQuantity')); } if (null !== $this->defaultValueRange) { $this->defaultValueRange->xmlSerialize(true, $sxe->addChild('defaultValueRange')); } if (null !== $this->defaultValuePeriod) { $this->defaultValuePeriod->xmlSerialize(true, $sxe->addChild('defaultValuePeriod')); } if (null !== $this->defaultValueRatio) { $this->defaultValueRatio->xmlSerialize(true, $sxe->addChild('defaultValueRatio')); } if (null !== $this->defaultValueReference) { $this->defaultValueReference->xmlSerialize(true, $sxe->addChild('defaultValueReference')); } if (null !== $this->defaultValueSampledData) { $this->defaultValueSampledData->xmlSerialize(true, $sxe->addChild('defaultValueSampledData')); } if (null !== $this->defaultValueSignature) { $this->defaultValueSignature->xmlSerialize(true, $sxe->addChild('defaultValueSignature')); } if (null !== $this->defaultValueHumanName) { $this->defaultValueHumanName->xmlSerialize(true, $sxe->addChild('defaultValueHumanName')); } if (null !== $this->defaultValueAddress) { $this->defaultValueAddress->xmlSerialize(true, $sxe->addChild('defaultValueAddress')); } if (null !== $this->defaultValueContactPoint) { $this->defaultValueContactPoint->xmlSerialize(true, $sxe->addChild('defaultValueContactPoint')); } if (null !== $this->defaultValueTiming) { $this->defaultValueTiming->xmlSerialize(true, $sxe->addChild('defaultValueTiming')); } if (null !== $this->defaultValueMeta) { $this->defaultValueMeta->xmlSerialize(true, $sxe->addChild('defaultValueMeta')); } if (null !== $this->meaningWhenMissing) { $this->meaningWhenMissing->xmlSerialize(true, $sxe->addChild('meaningWhenMissing')); } if (null !== $this->fixedBoolean) { $this->fixedBoolean->xmlSerialize(true, $sxe->addChild('fixedBoolean')); } if (null !== $this->fixedInteger) { $this->fixedInteger->xmlSerialize(true, $sxe->addChild('fixedInteger')); } if (null !== $this->fixedDecimal) { $this->fixedDecimal->xmlSerialize(true, $sxe->addChild('fixedDecimal')); } if (null !== $this->fixedBase64Binary) { $this->fixedBase64Binary->xmlSerialize(true, $sxe->addChild('fixedBase64Binary')); } if (null !== $this->fixedInstant) { $this->fixedInstant->xmlSerialize(true, $sxe->addChild('fixedInstant')); } if (null !== $this->fixedString) { $this->fixedString->xmlSerialize(true, $sxe->addChild('fixedString')); } if (null !== $this->fixedUri) { $this->fixedUri->xmlSerialize(true, $sxe->addChild('fixedUri')); } if (null !== $this->fixedDate) { $this->fixedDate->xmlSerialize(true, $sxe->addChild('fixedDate')); } if (null !== $this->fixedDateTime) { $this->fixedDateTime->xmlSerialize(true, $sxe->addChild('fixedDateTime')); } if (null !== $this->fixedTime) { $this->fixedTime->xmlSerialize(true, $sxe->addChild('fixedTime')); } if (null !== $this->fixedCode) { $this->fixedCode->xmlSerialize(true, $sxe->addChild('fixedCode')); } if (null !== $this->fixedOid) { $this->fixedOid->xmlSerialize(true, $sxe->addChild('fixedOid')); } if (null !== $this->fixedUuid) { $this->fixedUuid->xmlSerialize(true, $sxe->addChild('fixedUuid')); } if (null !== $this->fixedId) { $this->fixedId->xmlSerialize(true, $sxe->addChild('fixedId')); } if (null !== $this->fixedUnsignedInt) { $this->fixedUnsignedInt->xmlSerialize(true, $sxe->addChild('fixedUnsignedInt')); } if (null !== $this->fixedPositiveInt) { $this->fixedPositiveInt->xmlSerialize(true, $sxe->addChild('fixedPositiveInt')); } if (null !== $this->fixedMarkdown) { $this->fixedMarkdown->xmlSerialize(true, $sxe->addChild('fixedMarkdown')); } if (null !== $this->fixedAnnotation) { $this->fixedAnnotation->xmlSerialize(true, $sxe->addChild('fixedAnnotation')); } if (null !== $this->fixedAttachment) { $this->fixedAttachment->xmlSerialize(true, $sxe->addChild('fixedAttachment')); } if (null !== $this->fixedIdentifier) { $this->fixedIdentifier->xmlSerialize(true, $sxe->addChild('fixedIdentifier')); } if (null !== $this->fixedCodeableConcept) { $this->fixedCodeableConcept->xmlSerialize(true, $sxe->addChild('fixedCodeableConcept')); } if (null !== $this->fixedCoding) { $this->fixedCoding->xmlSerialize(true, $sxe->addChild('fixedCoding')); } if (null !== $this->fixedQuantity) { $this->fixedQuantity->xmlSerialize(true, $sxe->addChild('fixedQuantity')); } if (null !== $this->fixedRange) { $this->fixedRange->xmlSerialize(true, $sxe->addChild('fixedRange')); } if (null !== $this->fixedPeriod) { $this->fixedPeriod->xmlSerialize(true, $sxe->addChild('fixedPeriod')); } if (null !== $this->fixedRatio) { $this->fixedRatio->xmlSerialize(true, $sxe->addChild('fixedRatio')); } if (null !== $this->fixedReference) { $this->fixedReference->xmlSerialize(true, $sxe->addChild('fixedReference')); } if (null !== $this->fixedSampledData) { $this->fixedSampledData->xmlSerialize(true, $sxe->addChild('fixedSampledData')); } if (null !== $this->fixedSignature) { $this->fixedSignature->xmlSerialize(true, $sxe->addChild('fixedSignature')); } if (null !== $this->fixedHumanName) { $this->fixedHumanName->xmlSerialize(true, $sxe->addChild('fixedHumanName')); } if (null !== $this->fixedAddress) { $this->fixedAddress->xmlSerialize(true, $sxe->addChild('fixedAddress')); } if (null !== $this->fixedContactPoint) { $this->fixedContactPoint->xmlSerialize(true, $sxe->addChild('fixedContactPoint')); } if (null !== $this->fixedTiming) { $this->fixedTiming->xmlSerialize(true, $sxe->addChild('fixedTiming')); } if (null !== $this->fixedMeta) { $this->fixedMeta->xmlSerialize(true, $sxe->addChild('fixedMeta')); } if (null !== $this->patternBoolean) { $this->patternBoolean->xmlSerialize(true, $sxe->addChild('patternBoolean')); } if (null !== $this->patternInteger) { $this->patternInteger->xmlSerialize(true, $sxe->addChild('patternInteger')); } if (null !== $this->patternDecimal) { $this->patternDecimal->xmlSerialize(true, $sxe->addChild('patternDecimal')); } if (null !== $this->patternBase64Binary) { $this->patternBase64Binary->xmlSerialize(true, $sxe->addChild('patternBase64Binary')); } if (null !== $this->patternInstant) { $this->patternInstant->xmlSerialize(true, $sxe->addChild('patternInstant')); } if (null !== $this->patternString) { $this->patternString->xmlSerialize(true, $sxe->addChild('patternString')); } if (null !== $this->patternUri) { $this->patternUri->xmlSerialize(true, $sxe->addChild('patternUri')); } if (null !== $this->patternDate) { $this->patternDate->xmlSerialize(true, $sxe->addChild('patternDate')); } if (null !== $this->patternDateTime) { $this->patternDateTime->xmlSerialize(true, $sxe->addChild('patternDateTime')); } if (null !== $this->patternTime) { $this->patternTime->xmlSerialize(true, $sxe->addChild('patternTime')); } if (null !== $this->patternCode) { $this->patternCode->xmlSerialize(true, $sxe->addChild('patternCode')); } if (null !== $this->patternOid) { $this->patternOid->xmlSerialize(true, $sxe->addChild('patternOid')); } if (null !== $this->patternUuid) { $this->patternUuid->xmlSerialize(true, $sxe->addChild('patternUuid')); } if (null !== $this->patternId) { $this->patternId->xmlSerialize(true, $sxe->addChild('patternId')); } if (null !== $this->patternUnsignedInt) { $this->patternUnsignedInt->xmlSerialize(true, $sxe->addChild('patternUnsignedInt')); } if (null !== $this->patternPositiveInt) { $this->patternPositiveInt->xmlSerialize(true, $sxe->addChild('patternPositiveInt')); } if (null !== $this->patternMarkdown) { $this->patternMarkdown->xmlSerialize(true, $sxe->addChild('patternMarkdown')); } if (null !== $this->patternAnnotation) { $this->patternAnnotation->xmlSerialize(true, $sxe->addChild('patternAnnotation')); } if (null !== $this->patternAttachment) { $this->patternAttachment->xmlSerialize(true, $sxe->addChild('patternAttachment')); } if (null !== $this->patternIdentifier) { $this->patternIdentifier->xmlSerialize(true, $sxe->addChild('patternIdentifier')); } if (null !== $this->patternCodeableConcept) { $this->patternCodeableConcept->xmlSerialize(true, $sxe->addChild('patternCodeableConcept')); } if (null !== $this->patternCoding) { $this->patternCoding->xmlSerialize(true, $sxe->addChild('patternCoding')); } if (null !== $this->patternQuantity) { $this->patternQuantity->xmlSerialize(true, $sxe->addChild('patternQuantity')); } if (null !== $this->patternRange) { $this->patternRange->xmlSerialize(true, $sxe->addChild('patternRange')); } if (null !== $this->patternPeriod) { $this->patternPeriod->xmlSerialize(true, $sxe->addChild('patternPeriod')); } if (null !== $this->patternRatio) { $this->patternRatio->xmlSerialize(true, $sxe->addChild('patternRatio')); } if (null !== $this->patternReference) { $this->patternReference->xmlSerialize(true, $sxe->addChild('patternReference')); } if (null !== $this->patternSampledData) { $this->patternSampledData->xmlSerialize(true, $sxe->addChild('patternSampledData')); } if (null !== $this->patternSignature) { $this->patternSignature->xmlSerialize(true, $sxe->addChild('patternSignature')); } if (null !== $this->patternHumanName) { $this->patternHumanName->xmlSerialize(true, $sxe->addChild('patternHumanName')); } if (null !== $this->patternAddress) { $this->patternAddress->xmlSerialize(true, $sxe->addChild('patternAddress')); } if (null !== $this->patternContactPoint) { $this->patternContactPoint->xmlSerialize(true, $sxe->addChild('patternContactPoint')); } if (null !== $this->patternTiming) { $this->patternTiming->xmlSerialize(true, $sxe->addChild('patternTiming')); } if (null !== $this->patternMeta) { $this->patternMeta->xmlSerialize(true, $sxe->addChild('patternMeta')); } if (null !== $this->exampleBoolean) { $this->exampleBoolean->xmlSerialize(true, $sxe->addChild('exampleBoolean')); } if (null !== $this->exampleInteger) { $this->exampleInteger->xmlSerialize(true, $sxe->addChild('exampleInteger')); } if (null !== $this->exampleDecimal) { $this->exampleDecimal->xmlSerialize(true, $sxe->addChild('exampleDecimal')); } if (null !== $this->exampleBase64Binary) { $this->exampleBase64Binary->xmlSerialize(true, $sxe->addChild('exampleBase64Binary')); } if (null !== $this->exampleInstant) { $this->exampleInstant->xmlSerialize(true, $sxe->addChild('exampleInstant')); } if (null !== $this->exampleString) { $this->exampleString->xmlSerialize(true, $sxe->addChild('exampleString')); } if (null !== $this->exampleUri) { $this->exampleUri->xmlSerialize(true, $sxe->addChild('exampleUri')); } if (null !== $this->exampleDate) { $this->exampleDate->xmlSerialize(true, $sxe->addChild('exampleDate')); } if (null !== $this->exampleDateTime) { $this->exampleDateTime->xmlSerialize(true, $sxe->addChild('exampleDateTime')); } if (null !== $this->exampleTime) { $this->exampleTime->xmlSerialize(true, $sxe->addChild('exampleTime')); } if (null !== $this->exampleCode) { $this->exampleCode->xmlSerialize(true, $sxe->addChild('exampleCode')); } if (null !== $this->exampleOid) { $this->exampleOid->xmlSerialize(true, $sxe->addChild('exampleOid')); } if (null !== $this->exampleUuid) { $this->exampleUuid->xmlSerialize(true, $sxe->addChild('exampleUuid')); } if (null !== $this->exampleId) { $this->exampleId->xmlSerialize(true, $sxe->addChild('exampleId')); } if (null !== $this->exampleUnsignedInt) { $this->exampleUnsignedInt->xmlSerialize(true, $sxe->addChild('exampleUnsignedInt')); } if (null !== $this->examplePositiveInt) { $this->examplePositiveInt->xmlSerialize(true, $sxe->addChild('examplePositiveInt')); } if (null !== $this->exampleMarkdown) { $this->exampleMarkdown->xmlSerialize(true, $sxe->addChild('exampleMarkdown')); } if (null !== $this->exampleAnnotation) { $this->exampleAnnotation->xmlSerialize(true, $sxe->addChild('exampleAnnotation')); } if (null !== $this->exampleAttachment) { $this->exampleAttachment->xmlSerialize(true, $sxe->addChild('exampleAttachment')); } if (null !== $this->exampleIdentifier) { $this->exampleIdentifier->xmlSerialize(true, $sxe->addChild('exampleIdentifier')); } if (null !== $this->exampleCodeableConcept) { $this->exampleCodeableConcept->xmlSerialize(true, $sxe->addChild('exampleCodeableConcept')); } if (null !== $this->exampleCoding) { $this->exampleCoding->xmlSerialize(true, $sxe->addChild('exampleCoding')); } if (null !== $this->exampleQuantity) { $this->exampleQuantity->xmlSerialize(true, $sxe->addChild('exampleQuantity')); } if (null !== $this->exampleRange) { $this->exampleRange->xmlSerialize(true, $sxe->addChild('exampleRange')); } if (null !== $this->examplePeriod) { $this->examplePeriod->xmlSerialize(true, $sxe->addChild('examplePeriod')); } if (null !== $this->exampleRatio) { $this->exampleRatio->xmlSerialize(true, $sxe->addChild('exampleRatio')); } if (null !== $this->exampleReference) { $this->exampleReference->xmlSerialize(true, $sxe->addChild('exampleReference')); } if (null !== $this->exampleSampledData) { $this->exampleSampledData->xmlSerialize(true, $sxe->addChild('exampleSampledData')); } if (null !== $this->exampleSignature) { $this->exampleSignature->xmlSerialize(true, $sxe->addChild('exampleSignature')); } if (null !== $this->exampleHumanName) { $this->exampleHumanName->xmlSerialize(true, $sxe->addChild('exampleHumanName')); } if (null !== $this->exampleAddress) { $this->exampleAddress->xmlSerialize(true, $sxe->addChild('exampleAddress')); } if (null !== $this->exampleContactPoint) { $this->exampleContactPoint->xmlSerialize(true, $sxe->addChild('exampleContactPoint')); } if (null !== $this->exampleTiming) { $this->exampleTiming->xmlSerialize(true, $sxe->addChild('exampleTiming')); } if (null !== $this->exampleMeta) { $this->exampleMeta->xmlSerialize(true, $sxe->addChild('exampleMeta')); } if (null !== $this->minValueBoolean) { $this->minValueBoolean->xmlSerialize(true, $sxe->addChild('minValueBoolean')); } if (null !== $this->minValueInteger) { $this->minValueInteger->xmlSerialize(true, $sxe->addChild('minValueInteger')); } if (null !== $this->minValueDecimal) { $this->minValueDecimal->xmlSerialize(true, $sxe->addChild('minValueDecimal')); } if (null !== $this->minValueBase64Binary) { $this->minValueBase64Binary->xmlSerialize(true, $sxe->addChild('minValueBase64Binary')); } if (null !== $this->minValueInstant) { $this->minValueInstant->xmlSerialize(true, $sxe->addChild('minValueInstant')); } if (null !== $this->minValueString) { $this->minValueString->xmlSerialize(true, $sxe->addChild('minValueString')); } if (null !== $this->minValueUri) { $this->minValueUri->xmlSerialize(true, $sxe->addChild('minValueUri')); } if (null !== $this->minValueDate) { $this->minValueDate->xmlSerialize(true, $sxe->addChild('minValueDate')); } if (null !== $this->minValueDateTime) { $this->minValueDateTime->xmlSerialize(true, $sxe->addChild('minValueDateTime')); } if (null !== $this->minValueTime) { $this->minValueTime->xmlSerialize(true, $sxe->addChild('minValueTime')); } if (null !== $this->minValueCode) { $this->minValueCode->xmlSerialize(true, $sxe->addChild('minValueCode')); } if (null !== $this->minValueOid) { $this->minValueOid->xmlSerialize(true, $sxe->addChild('minValueOid')); } if (null !== $this->minValueUuid) { $this->minValueUuid->xmlSerialize(true, $sxe->addChild('minValueUuid')); } if (null !== $this->minValueId) { $this->minValueId->xmlSerialize(true, $sxe->addChild('minValueId')); } if (null !== $this->minValueUnsignedInt) { $this->minValueUnsignedInt->xmlSerialize(true, $sxe->addChild('minValueUnsignedInt')); } if (null !== $this->minValuePositiveInt) { $this->minValuePositiveInt->xmlSerialize(true, $sxe->addChild('minValuePositiveInt')); } if (null !== $this->minValueMarkdown) { $this->minValueMarkdown->xmlSerialize(true, $sxe->addChild('minValueMarkdown')); } if (null !== $this->minValueAnnotation) { $this->minValueAnnotation->xmlSerialize(true, $sxe->addChild('minValueAnnotation')); } if (null !== $this->minValueAttachment) { $this->minValueAttachment->xmlSerialize(true, $sxe->addChild('minValueAttachment')); } if (null !== $this->minValueIdentifier) { $this->minValueIdentifier->xmlSerialize(true, $sxe->addChild('minValueIdentifier')); } if (null !== $this->minValueCodeableConcept) { $this->minValueCodeableConcept->xmlSerialize(true, $sxe->addChild('minValueCodeableConcept')); } if (null !== $this->minValueCoding) { $this->minValueCoding->xmlSerialize(true, $sxe->addChild('minValueCoding')); } if (null !== $this->minValueQuantity) { $this->minValueQuantity->xmlSerialize(true, $sxe->addChild('minValueQuantity')); } if (null !== $this->minValueRange) { $this->minValueRange->xmlSerialize(true, $sxe->addChild('minValueRange')); } if (null !== $this->minValuePeriod) { $this->minValuePeriod->xmlSerialize(true, $sxe->addChild('minValuePeriod')); } if (null !== $this->minValueRatio) { $this->minValueRatio->xmlSerialize(true, $sxe->addChild('minValueRatio')); } if (null !== $this->minValueReference) { $this->minValueReference->xmlSerialize(true, $sxe->addChild('minValueReference')); } if (null !== $this->minValueSampledData) { $this->minValueSampledData->xmlSerialize(true, $sxe->addChild('minValueSampledData')); } if (null !== $this->minValueSignature) { $this->minValueSignature->xmlSerialize(true, $sxe->addChild('minValueSignature')); } if (null !== $this->minValueHumanName) { $this->minValueHumanName->xmlSerialize(true, $sxe->addChild('minValueHumanName')); } if (null !== $this->minValueAddress) { $this->minValueAddress->xmlSerialize(true, $sxe->addChild('minValueAddress')); } if (null !== $this->minValueContactPoint) { $this->minValueContactPoint->xmlSerialize(true, $sxe->addChild('minValueContactPoint')); } if (null !== $this->minValueTiming) { $this->minValueTiming->xmlSerialize(true, $sxe->addChild('minValueTiming')); } if (null !== $this->minValueMeta) { $this->minValueMeta->xmlSerialize(true, $sxe->addChild('minValueMeta')); } if (null !== $this->maxValueBoolean) { $this->maxValueBoolean->xmlSerialize(true, $sxe->addChild('maxValueBoolean')); } if (null !== $this->maxValueInteger) { $this->maxValueInteger->xmlSerialize(true, $sxe->addChild('maxValueInteger')); } if (null !== $this->maxValueDecimal) { $this->maxValueDecimal->xmlSerialize(true, $sxe->addChild('maxValueDecimal')); } if (null !== $this->maxValueBase64Binary) { $this->maxValueBase64Binary->xmlSerialize(true, $sxe->addChild('maxValueBase64Binary')); } if (null !== $this->maxValueInstant) { $this->maxValueInstant->xmlSerialize(true, $sxe->addChild('maxValueInstant')); } if (null !== $this->maxValueString) { $this->maxValueString->xmlSerialize(true, $sxe->addChild('maxValueString')); } if (null !== $this->maxValueUri) { $this->maxValueUri->xmlSerialize(true, $sxe->addChild('maxValueUri')); } if (null !== $this->maxValueDate) { $this->maxValueDate->xmlSerialize(true, $sxe->addChild('maxValueDate')); } if (null !== $this->maxValueDateTime) { $this->maxValueDateTime->xmlSerialize(true, $sxe->addChild('maxValueDateTime')); } if (null !== $this->maxValueTime) { $this->maxValueTime->xmlSerialize(true, $sxe->addChild('maxValueTime')); } if (null !== $this->maxValueCode) { $this->maxValueCode->xmlSerialize(true, $sxe->addChild('maxValueCode')); } if (null !== $this->maxValueOid) { $this->maxValueOid->xmlSerialize(true, $sxe->addChild('maxValueOid')); } if (null !== $this->maxValueUuid) { $this->maxValueUuid->xmlSerialize(true, $sxe->addChild('maxValueUuid')); } if (null !== $this->maxValueId) { $this->maxValueId->xmlSerialize(true, $sxe->addChild('maxValueId')); } if (null !== $this->maxValueUnsignedInt) { $this->maxValueUnsignedInt->xmlSerialize(true, $sxe->addChild('maxValueUnsignedInt')); } if (null !== $this->maxValuePositiveInt) { $this->maxValuePositiveInt->xmlSerialize(true, $sxe->addChild('maxValuePositiveInt')); } if (null !== $this->maxValueMarkdown) { $this->maxValueMarkdown->xmlSerialize(true, $sxe->addChild('maxValueMarkdown')); } if (null !== $this->maxValueAnnotation) { $this->maxValueAnnotation->xmlSerialize(true, $sxe->addChild('maxValueAnnotation')); } if (null !== $this->maxValueAttachment) { $this->maxValueAttachment->xmlSerialize(true, $sxe->addChild('maxValueAttachment')); } if (null !== $this->maxValueIdentifier) { $this->maxValueIdentifier->xmlSerialize(true, $sxe->addChild('maxValueIdentifier')); } if (null !== $this->maxValueCodeableConcept) { $this->maxValueCodeableConcept->xmlSerialize(true, $sxe->addChild('maxValueCodeableConcept')); } if (null !== $this->maxValueCoding) { $this->maxValueCoding->xmlSerialize(true, $sxe->addChild('maxValueCoding')); } if (null !== $this->maxValueQuantity) { $this->maxValueQuantity->xmlSerialize(true, $sxe->addChild('maxValueQuantity')); } if (null !== $this->maxValueRange) { $this->maxValueRange->xmlSerialize(true, $sxe->addChild('maxValueRange')); } if (null !== $this->maxValuePeriod) { $this->maxValuePeriod->xmlSerialize(true, $sxe->addChild('maxValuePeriod')); } if (null !== $this->maxValueRatio) { $this->maxValueRatio->xmlSerialize(true, $sxe->addChild('maxValueRatio')); } if (null !== $this->maxValueReference) { $this->maxValueReference->xmlSerialize(true, $sxe->addChild('maxValueReference')); } if (null !== $this->maxValueSampledData) { $this->maxValueSampledData->xmlSerialize(true, $sxe->addChild('maxValueSampledData')); } if (null !== $this->maxValueSignature) { $this->maxValueSignature->xmlSerialize(true, $sxe->addChild('maxValueSignature')); } if (null !== $this->maxValueHumanName) { $this->maxValueHumanName->xmlSerialize(true, $sxe->addChild('maxValueHumanName')); } if (null !== $this->maxValueAddress) { $this->maxValueAddress->xmlSerialize(true, $sxe->addChild('maxValueAddress')); } if (null !== $this->maxValueContactPoint) { $this->maxValueContactPoint->xmlSerialize(true, $sxe->addChild('maxValueContactPoint')); } if (null !== $this->maxValueTiming) { $this->maxValueTiming->xmlSerialize(true, $sxe->addChild('maxValueTiming')); } if (null !== $this->maxValueMeta) { $this->maxValueMeta->xmlSerialize(true, $sxe->addChild('maxValueMeta')); } if (null !== $this->maxLength) { $this->maxLength->xmlSerialize(true, $sxe->addChild('maxLength')); } if (0 < count($this->condition)) { foreach ($this->condition as $condition) { $condition->xmlSerialize(true, $sxe->addChild('condition')); } } if (0 < count($this->constraint)) { foreach ($this->constraint as $constraint) { $constraint->xmlSerialize(true, $sxe->addChild('constraint')); } } if (null !== $this->mustSupport) { $this->mustSupport->xmlSerialize(true, $sxe->addChild('mustSupport')); } if (null !== $this->isModifier) { $this->isModifier->xmlSerialize(true, $sxe->addChild('isModifier')); } if (null !== $this->isSummary) { $this->isSummary->xmlSerialize(true, $sxe->addChild('isSummary')); } if (null !== $this->binding) { $this->binding->xmlSerialize(true, $sxe->addChild('binding')); } if (0 < count($this->mapping)) { foreach ($this->mapping as $mapping) { $mapping->xmlSerialize(true, $sxe->addChild('mapping')); } } 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('<ClaimResponse xmlns="http://hl7.org/fhir"></ClaimResponse>'); } parent::xmlSerialize(true, $sxe); if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } if (null !== $this->request) { $this->request->xmlSerialize(true, $sxe->addChild('request')); } if (null !== $this->ruleset) { $this->ruleset->xmlSerialize(true, $sxe->addChild('ruleset')); } if (null !== $this->originalRuleset) { $this->originalRuleset->xmlSerialize(true, $sxe->addChild('originalRuleset')); } if (null !== $this->created) { $this->created->xmlSerialize(true, $sxe->addChild('created')); } if (null !== $this->organization) { $this->organization->xmlSerialize(true, $sxe->addChild('organization')); } if (null !== $this->requestProvider) { $this->requestProvider->xmlSerialize(true, $sxe->addChild('requestProvider')); } if (null !== $this->requestOrganization) { $this->requestOrganization->xmlSerialize(true, $sxe->addChild('requestOrganization')); } if (null !== $this->outcome) { $this->outcome->xmlSerialize(true, $sxe->addChild('outcome')); } if (null !== $this->disposition) { $this->disposition->xmlSerialize(true, $sxe->addChild('disposition')); } if (null !== $this->payeeType) { $this->payeeType->xmlSerialize(true, $sxe->addChild('payeeType')); } if (0 < count($this->item)) { foreach ($this->item as $item) { $item->xmlSerialize(true, $sxe->addChild('item')); } } if (0 < count($this->addItem)) { foreach ($this->addItem as $addItem) { $addItem->xmlSerialize(true, $sxe->addChild('addItem')); } } if (0 < count($this->error)) { foreach ($this->error as $error) { $error->xmlSerialize(true, $sxe->addChild('error')); } } if (null !== $this->totalCost) { $this->totalCost->xmlSerialize(true, $sxe->addChild('totalCost')); } if (null !== $this->unallocDeductable) { $this->unallocDeductable->xmlSerialize(true, $sxe->addChild('unallocDeductable')); } if (null !== $this->totalBenefit) { $this->totalBenefit->xmlSerialize(true, $sxe->addChild('totalBenefit')); } if (null !== $this->paymentAdjustment) { $this->paymentAdjustment->xmlSerialize(true, $sxe->addChild('paymentAdjustment')); } if (null !== $this->paymentAdjustmentReason) { $this->paymentAdjustmentReason->xmlSerialize(true, $sxe->addChild('paymentAdjustmentReason')); } if (null !== $this->paymentDate) { $this->paymentDate->xmlSerialize(true, $sxe->addChild('paymentDate')); } if (null !== $this->paymentAmount) { $this->paymentAmount->xmlSerialize(true, $sxe->addChild('paymentAmount')); } if (null !== $this->paymentRef) { $this->paymentRef->xmlSerialize(true, $sxe->addChild('paymentRef')); } if (null !== $this->reserved) { $this->reserved->xmlSerialize(true, $sxe->addChild('reserved')); } if (null !== $this->form) { $this->form->xmlSerialize(true, $sxe->addChild('form')); } if (0 < count($this->note)) { foreach ($this->note as $note) { $note->xmlSerialize(true, $sxe->addChild('note')); } } if (0 < count($this->coverage)) { foreach ($this->coverage as $coverage) { $coverage->xmlSerialize(true, $sxe->addChild('coverage')); } } 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('<FamilyMemberHistory xmlns="http://hl7.org/fhir"></FamilyMemberHistory>'); } 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->date) { $this->date->xmlSerialize(true, $sxe->addChild('date')); } if (null !== $this->status) { $this->status->xmlSerialize(true, $sxe->addChild('status')); } if (null !== $this->name) { $this->name->xmlSerialize(true, $sxe->addChild('name')); } if (null !== $this->relationship) { $this->relationship->xmlSerialize(true, $sxe->addChild('relationship')); } if (null !== $this->gender) { $this->gender->xmlSerialize(true, $sxe->addChild('gender')); } if (null !== $this->bornPeriod) { $this->bornPeriod->xmlSerialize(true, $sxe->addChild('bornPeriod')); } if (null !== $this->bornDate) { $this->bornDate->xmlSerialize(true, $sxe->addChild('bornDate')); } if (null !== $this->bornString) { $this->bornString->xmlSerialize(true, $sxe->addChild('bornString')); } if (null !== $this->ageQuantity) { $this->ageQuantity->xmlSerialize(true, $sxe->addChild('ageQuantity')); } if (null !== $this->ageRange) { $this->ageRange->xmlSerialize(true, $sxe->addChild('ageRange')); } if (null !== $this->ageString) { $this->ageString->xmlSerialize(true, $sxe->addChild('ageString')); } if (null !== $this->deceasedBoolean) { $this->deceasedBoolean->xmlSerialize(true, $sxe->addChild('deceasedBoolean')); } if (null !== $this->deceasedQuantity) { $this->deceasedQuantity->xmlSerialize(true, $sxe->addChild('deceasedQuantity')); } if (null !== $this->deceasedRange) { $this->deceasedRange->xmlSerialize(true, $sxe->addChild('deceasedRange')); } if (null !== $this->deceasedDate) { $this->deceasedDate->xmlSerialize(true, $sxe->addChild('deceasedDate')); } if (null !== $this->deceasedString) { $this->deceasedString->xmlSerialize(true, $sxe->addChild('deceasedString')); } if (null !== $this->note) { $this->note->xmlSerialize(true, $sxe->addChild('note')); } if (0 < count($this->condition)) { foreach ($this->condition as $condition) { $condition->xmlSerialize(true, $sxe->addChild('condition')); } } 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('<Person xmlns="http://hl7.org/fhir"></Person>'); } parent::xmlSerialize(true, $sxe); if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } 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 (0 < count($this->address)) { foreach ($this->address as $address) { $address->xmlSerialize(true, $sxe->addChild('address')); } } if (null !== $this->photo) { $this->photo->xmlSerialize(true, $sxe->addChild('photo')); } if (null !== $this->managingOrganization) { $this->managingOrganization->xmlSerialize(true, $sxe->addChild('managingOrganization')); } if (null !== $this->active) { $this->active->xmlSerialize(true, $sxe->addChild('active')); } 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('<Extension xmlns="http://hl7.org/fhir"></Extension>'); } parent::xmlSerialize(true, $sxe); 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->valueBase64Binary) { $this->valueBase64Binary->xmlSerialize(true, $sxe->addChild('valueBase64Binary')); } if (null !== $this->valueInstant) { $this->valueInstant->xmlSerialize(true, $sxe->addChild('valueInstant')); } 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->valueDate) { $this->valueDate->xmlSerialize(true, $sxe->addChild('valueDate')); } if (null !== $this->valueDateTime) { $this->valueDateTime->xmlSerialize(true, $sxe->addChild('valueDateTime')); } if (null !== $this->valueTime) { $this->valueTime->xmlSerialize(true, $sxe->addChild('valueTime')); } if (null !== $this->valueCode) { $this->valueCode->xmlSerialize(true, $sxe->addChild('valueCode')); } if (null !== $this->valueOid) { $this->valueOid->xmlSerialize(true, $sxe->addChild('valueOid')); } if (null !== $this->valueUuid) { $this->valueUuid->xmlSerialize(true, $sxe->addChild('valueUuid')); } if (null !== $this->valueId) { $this->valueId->xmlSerialize(true, $sxe->addChild('valueId')); } if (null !== $this->valueUnsignedInt) { $this->valueUnsignedInt->xmlSerialize(true, $sxe->addChild('valueUnsignedInt')); } if (null !== $this->valuePositiveInt) { $this->valuePositiveInt->xmlSerialize(true, $sxe->addChild('valuePositiveInt')); } if (null !== $this->valueMarkdown) { $this->valueMarkdown->xmlSerialize(true, $sxe->addChild('valueMarkdown')); } if (null !== $this->valueAnnotation) { $this->valueAnnotation->xmlSerialize(true, $sxe->addChild('valueAnnotation')); } if (null !== $this->valueAttachment) { $this->valueAttachment->xmlSerialize(true, $sxe->addChild('valueAttachment')); } if (null !== $this->valueIdentifier) { $this->valueIdentifier->xmlSerialize(true, $sxe->addChild('valueIdentifier')); } if (null !== $this->valueCodeableConcept) { $this->valueCodeableConcept->xmlSerialize(true, $sxe->addChild('valueCodeableConcept')); } if (null !== $this->valueCoding) { $this->valueCoding->xmlSerialize(true, $sxe->addChild('valueCoding')); } if (null !== $this->valueQuantity) { $this->valueQuantity->xmlSerialize(true, $sxe->addChild('valueQuantity')); } if (null !== $this->valueRange) { $this->valueRange->xmlSerialize(true, $sxe->addChild('valueRange')); } if (null !== $this->valuePeriod) { $this->valuePeriod->xmlSerialize(true, $sxe->addChild('valuePeriod')); } if (null !== $this->valueRatio) { $this->valueRatio->xmlSerialize(true, $sxe->addChild('valueRatio')); } if (null !== $this->valueReference) { $this->valueReference->xmlSerialize(true, $sxe->addChild('valueReference')); } if (null !== $this->valueSampledData) { $this->valueSampledData->xmlSerialize(true, $sxe->addChild('valueSampledData')); } if (null !== $this->valueSignature) { $this->valueSignature->xmlSerialize(true, $sxe->addChild('valueSignature')); } if (null !== $this->valueHumanName) { $this->valueHumanName->xmlSerialize(true, $sxe->addChild('valueHumanName')); } if (null !== $this->valueAddress) { $this->valueAddress->xmlSerialize(true, $sxe->addChild('valueAddress')); } if (null !== $this->valueContactPoint) { $this->valueContactPoint->xmlSerialize(true, $sxe->addChild('valueContactPoint')); } if (null !== $this->valueTiming) { $this->valueTiming->xmlSerialize(true, $sxe->addChild('valueTiming')); } if (null !== $this->valueMeta) { $this->valueMeta->xmlSerialize(true, $sxe->addChild('valueMeta')); } if (null !== $this->url) { $urlElement = $sxe->addChild('url'); $urlElement->addAttribute('value', (string) $this->url); } 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('<PaymentReconciliationDetail xmlns="http://hl7.org/fhir"></PaymentReconciliationDetail>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->type) { $this->type->xmlSerialize(true, $sxe->addChild('type')); } if (null !== $this->request) { $this->request->xmlSerialize(true, $sxe->addChild('request')); } if (null !== $this->responce) { $this->responce->xmlSerialize(true, $sxe->addChild('responce')); } if (null !== $this->submitter) { $this->submitter->xmlSerialize(true, $sxe->addChild('submitter')); } if (null !== $this->payee) { $this->payee->xmlSerialize(true, $sxe->addChild('payee')); } if (null !== $this->date) { $this->date->xmlSerialize(true, $sxe->addChild('date')); } if (null !== $this->amount) { $this->amount->xmlSerialize(true, $sxe->addChild('amount')); } 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('<ValueSet xmlns="http://hl7.org/fhir"></ValueSet>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->url) { $this->url->xmlSerialize(true, $sxe->addChild('url')); } if (null !== $this->identifier) { $this->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 (null !== $this->lockedDate) { $this->lockedDate->xmlSerialize(true, $sxe->addChild('lockedDate')); } 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->immutable) { $this->immutable->xmlSerialize(true, $sxe->addChild('immutable')); } 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->extensible) { $this->extensible->xmlSerialize(true, $sxe->addChild('extensible')); } if (null !== $this->codeSystem) { $this->codeSystem->xmlSerialize(true, $sxe->addChild('codeSystem')); } if (null !== $this->compose) { $this->compose->xmlSerialize(true, $sxe->addChild('compose')); } if (null !== $this->expansion) { $this->expansion->xmlSerialize(true, $sxe->addChild('expansion')); } 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('<Claim xmlns="http://hl7.org/fhir"></Claim>'); } parent::xmlSerialize(true, $sxe); if (null !== $this->type) { $this->type->xmlSerialize(true, $sxe->addChild('type')); } if (0 < count($this->identifier)) { foreach ($this->identifier as $identifier) { $identifier->xmlSerialize(true, $sxe->addChild('identifier')); } } if (null !== $this->ruleset) { $this->ruleset->xmlSerialize(true, $sxe->addChild('ruleset')); } if (null !== $this->originalRuleset) { $this->originalRuleset->xmlSerialize(true, $sxe->addChild('originalRuleset')); } if (null !== $this->created) { $this->created->xmlSerialize(true, $sxe->addChild('created')); } if (null !== $this->target) { $this->target->xmlSerialize(true, $sxe->addChild('target')); } if (null !== $this->provider) { $this->provider->xmlSerialize(true, $sxe->addChild('provider')); } if (null !== $this->organization) { $this->organization->xmlSerialize(true, $sxe->addChild('organization')); } if (null !== $this->use) { $this->use->xmlSerialize(true, $sxe->addChild('use')); } if (null !== $this->priority) { $this->priority->xmlSerialize(true, $sxe->addChild('priority')); } if (null !== $this->fundsReserve) { $this->fundsReserve->xmlSerialize(true, $sxe->addChild('fundsReserve')); } if (null !== $this->enterer) { $this->enterer->xmlSerialize(true, $sxe->addChild('enterer')); } if (null !== $this->facility) { $this->facility->xmlSerialize(true, $sxe->addChild('facility')); } if (null !== $this->prescription) { $this->prescription->xmlSerialize(true, $sxe->addChild('prescription')); } if (null !== $this->originalPrescription) { $this->originalPrescription->xmlSerialize(true, $sxe->addChild('originalPrescription')); } if (null !== $this->payee) { $this->payee->xmlSerialize(true, $sxe->addChild('payee')); } if (null !== $this->referral) { $this->referral->xmlSerialize(true, $sxe->addChild('referral')); } if (0 < count($this->diagnosis)) { foreach ($this->diagnosis as $diagnosis) { $diagnosis->xmlSerialize(true, $sxe->addChild('diagnosis')); } } if (0 < count($this->condition)) { foreach ($this->condition as $condition) { $condition->xmlSerialize(true, $sxe->addChild('condition')); } } if (null !== $this->patient) { $this->patient->xmlSerialize(true, $sxe->addChild('patient')); } if (0 < count($this->coverage)) { foreach ($this->coverage as $coverage) { $coverage->xmlSerialize(true, $sxe->addChild('coverage')); } } if (0 < count($this->exception)) { foreach ($this->exception as $exception) { $exception->xmlSerialize(true, $sxe->addChild('exception')); } } if (null !== $this->school) { $this->school->xmlSerialize(true, $sxe->addChild('school')); } if (null !== $this->accident) { $this->accident->xmlSerialize(true, $sxe->addChild('accident')); } if (null !== $this->accidentType) { $this->accidentType->xmlSerialize(true, $sxe->addChild('accidentType')); } if (0 < count($this->interventionException)) { foreach ($this->interventionException as $interventionException) { $interventionException->xmlSerialize(true, $sxe->addChild('interventionException')); } } if (0 < count($this->item)) { foreach ($this->item as $item) { $item->xmlSerialize(true, $sxe->addChild('item')); } } if (0 < count($this->additionalMaterials)) { foreach ($this->additionalMaterials as $additionalMaterials) { $additionalMaterials->xmlSerialize(true, $sxe->addChild('additionalMaterials')); } } if (0 < count($this->missingTeeth)) { foreach ($this->missingTeeth as $missingTeeth) { $missingTeeth->xmlSerialize(true, $sxe->addChild('missingTeeth')); } } 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('<Immunization xmlns="http://hl7.org/fhir"></Immunization>'); } 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->date) { $this->date->xmlSerialize(true, $sxe->addChild('date')); } if (null !== $this->vaccineCode) { $this->vaccineCode->xmlSerialize(true, $sxe->addChild('vaccineCode')); } if (null !== $this->patient) { $this->patient->xmlSerialize(true, $sxe->addChild('patient')); } if (null !== $this->wasNotGiven) { $this->wasNotGiven->xmlSerialize(true, $sxe->addChild('wasNotGiven')); } if (null !== $this->reported) { $this->reported->xmlSerialize(true, $sxe->addChild('reported')); } if (null !== $this->performer) { $this->performer->xmlSerialize(true, $sxe->addChild('performer')); } if (null !== $this->requester) { $this->requester->xmlSerialize(true, $sxe->addChild('requester')); } if (null !== $this->encounter) { $this->encounter->xmlSerialize(true, $sxe->addChild('encounter')); } if (null !== $this->manufacturer) { $this->manufacturer->xmlSerialize(true, $sxe->addChild('manufacturer')); } if (null !== $this->location) { $this->location->xmlSerialize(true, $sxe->addChild('location')); } if (null !== $this->lotNumber) { $this->lotNumber->xmlSerialize(true, $sxe->addChild('lotNumber')); } if (null !== $this->expirationDate) { $this->expirationDate->xmlSerialize(true, $sxe->addChild('expirationDate')); } if (null !== $this->site) { $this->site->xmlSerialize(true, $sxe->addChild('site')); } if (null !== $this->route) { $this->route->xmlSerialize(true, $sxe->addChild('route')); } if (null !== $this->doseQuantity) { $this->doseQuantity->xmlSerialize(true, $sxe->addChild('doseQuantity')); } if (0 < count($this->note)) { foreach ($this->note as $note) { $note->xmlSerialize(true, $sxe->addChild('note')); } } if (null !== $this->explanation) { $this->explanation->xmlSerialize(true, $sxe->addChild('explanation')); } if (0 < count($this->reaction)) { foreach ($this->reaction as $reaction) { $reaction->xmlSerialize(true, $sxe->addChild('reaction')); } } if (0 < count($this->vaccinationProtocol)) { foreach ($this->vaccinationProtocol as $vaccinationProtocol) { $vaccinationProtocol->xmlSerialize(true, $sxe->addChild('vaccinationProtocol')); } } if ($returnSXE) { return $sxe; } return $sxe->saveXML(); }