/**
  * @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('<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('<SubstanceInstance xmlns="http://hl7.org/fhir"></SubstanceInstance>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->identifier) {
         $this->identifier->xmlSerialize(true, $sxe->addChild('identifier'));
     }
     if (null !== $this->expiry) {
         $this->expiry->xmlSerialize(true, $sxe->addChild('expiry'));
     }
     if (null !== $this->quantity) {
         $this->quantity->xmlSerialize(true, $sxe->addChild('quantity'));
     }
     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('<TestScriptAction xmlns="http://hl7.org/fhir"></TestScriptAction>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->operation) {
         $this->operation->xmlSerialize(true, $sxe->addChild('operation'));
     }
     if (null !== $this->assert) {
         $this->assert->xmlSerialize(true, $sxe->addChild('assert'));
     }
     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('<ValueSetInclude xmlns="http://hl7.org/fhir"></ValueSetInclude>');
     }
     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 (0 < count($this->concept)) {
         foreach ($this->concept as $concept) {
             $concept->xmlSerialize(true, $sxe->addChild('concept'));
         }
     }
     if (0 < count($this->filter)) {
         foreach ($this->filter as $filter) {
             $filter->xmlSerialize(true, $sxe->addChild('filter'));
         }
     }
     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('<NutritionOrderAdministration xmlns="http://hl7.org/fhir"></NutritionOrderAdministration>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->schedule) {
         $this->schedule->xmlSerialize(true, $sxe->addChild('schedule'));
     }
     if (null !== $this->quantity) {
         $this->quantity->xmlSerialize(true, $sxe->addChild('quantity'));
     }
     if (null !== $this->rateQuantity) {
         $this->rateQuantity->xmlSerialize(true, $sxe->addChild('rateQuantity'));
     }
     if (null !== $this->rateRatio) {
         $this->rateRatio->xmlSerialize(true, $sxe->addChild('rateRatio'));
     }
     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('<CarePlanParticipant xmlns="http://hl7.org/fhir"></CarePlanParticipant>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->role) {
         $this->role->xmlSerialize(true, $sxe->addChild('role'));
     }
     if (null !== $this->member) {
         $this->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('<ClaimResponseError xmlns="http://hl7.org/fhir"></ClaimResponseError>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->sequenceLinkId) {
         $this->sequenceLinkId->xmlSerialize(true, $sxe->addChild('sequenceLinkId'));
     }
     if (null !== $this->detailSequenceLinkId) {
         $this->detailSequenceLinkId->xmlSerialize(true, $sxe->addChild('detailSequenceLinkId'));
     }
     if (null !== $this->subdetailSequenceLinkId) {
         $this->subdetailSequenceLinkId->xmlSerialize(true, $sxe->addChild('subdetailSequenceLinkId'));
     }
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     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('<HealthcareServiceServiceType xmlns="http://hl7.org/fhir"></HealthcareServiceServiceType>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (0 < count($this->specialty)) {
         foreach ($this->specialty as $specialty) {
             $specialty->xmlSerialize(true, $sxe->addChild('specialty'));
         }
     }
     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('<StructureDefinitionSnapshot xmlns="http://hl7.org/fhir"></StructureDefinitionSnapshot>');
     }
     parent::xmlSerialize(true, $sxe);
     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('<ClaimResponseNote xmlns="http://hl7.org/fhir"></ClaimResponseNote>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->number) {
         $this->number->xmlSerialize(true, $sxe->addChild('number'));
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->text) {
         $this->text->xmlSerialize(true, $sxe->addChild('text'));
     }
     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('<ConditionStage xmlns="http://hl7.org/fhir"></ConditionStage>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->summary) {
         $this->summary->xmlSerialize(true, $sxe->addChild('summary'));
     }
     if (0 < count($this->assessment)) {
         foreach ($this->assessment as $assessment) {
             $assessment->xmlSerialize(true, $sxe->addChild('assessment'));
         }
     }
     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('<NutritionOrderEnteralFormula xmlns="http://hl7.org/fhir"></NutritionOrderEnteralFormula>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->baseFormulaType) {
         $this->baseFormulaType->xmlSerialize(true, $sxe->addChild('baseFormulaType'));
     }
     if (null !== $this->baseFormulaProductName) {
         $this->baseFormulaProductName->xmlSerialize(true, $sxe->addChild('baseFormulaProductName'));
     }
     if (null !== $this->additiveType) {
         $this->additiveType->xmlSerialize(true, $sxe->addChild('additiveType'));
     }
     if (null !== $this->additiveProductName) {
         $this->additiveProductName->xmlSerialize(true, $sxe->addChild('additiveProductName'));
     }
     if (null !== $this->caloricDensity) {
         $this->caloricDensity->xmlSerialize(true, $sxe->addChild('caloricDensity'));
     }
     if (null !== $this->routeofAdministration) {
         $this->routeofAdministration->xmlSerialize(true, $sxe->addChild('routeofAdministration'));
     }
     if (0 < count($this->administration)) {
         foreach ($this->administration as $administration) {
             $administration->xmlSerialize(true, $sxe->addChild('administration'));
         }
     }
     if (null !== $this->maxVolumeToDeliver) {
         $this->maxVolumeToDeliver->xmlSerialize(true, $sxe->addChild('maxVolumeToDeliver'));
     }
     if (null !== $this->administrationInstruction) {
         $this->administrationInstruction->xmlSerialize(true, $sxe->addChild('administrationInstruction'));
     }
     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('<SpecimenContainer xmlns="http://hl7.org/fhir"></SpecimenContainer>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->description) {
         $this->description->xmlSerialize(true, $sxe->addChild('description'));
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->capacity) {
         $this->capacity->xmlSerialize(true, $sxe->addChild('capacity'));
     }
     if (null !== $this->specimenQuantity) {
         $this->specimenQuantity->xmlSerialize(true, $sxe->addChild('specimenQuantity'));
     }
     if (null !== $this->additiveCodeableConcept) {
         $this->additiveCodeableConcept->xmlSerialize(true, $sxe->addChild('additiveCodeableConcept'));
     }
     if (null !== $this->additiveReference) {
         $this->additiveReference->xmlSerialize(true, $sxe->addChild('additiveReference'));
     }
     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('<ImmunizationExplanation xmlns="http://hl7.org/fhir"></ImmunizationExplanation>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->reason)) {
         foreach ($this->reason as $reason) {
             $reason->xmlSerialize(true, $sxe->addChild('reason'));
         }
     }
     if (0 < count($this->reasonNotGiven)) {
         foreach ($this->reasonNotGiven as $reasonNotGiven) {
             $reasonNotGiven->xmlSerialize(true, $sxe->addChild('reasonNotGiven'));
         }
     }
     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('<OperationDefinitionContact xmlns="http://hl7.org/fhir"></OperationDefinitionContact>');
     }
     parent::xmlSerialize(true, $sxe);
     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 ($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('<ImagingStudyInstance xmlns="http://hl7.org/fhir"></ImagingStudyInstance>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->number) {
         $this->number->xmlSerialize(true, $sxe->addChild('number'));
     }
     if (null !== $this->uid) {
         $this->uid->xmlSerialize(true, $sxe->addChild('uid'));
     }
     if (null !== $this->sopClass) {
         $this->sopClass->xmlSerialize(true, $sxe->addChild('sopClass'));
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->title) {
         $this->title->xmlSerialize(true, $sxe->addChild('title'));
     }
     if (0 < count($this->content)) {
         foreach ($this->content as $content) {
             $content->xmlSerialize(true, $sxe->addChild('content'));
         }
     }
     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('<ValueSetDesignation xmlns="http://hl7.org/fhir"></ValueSetDesignation>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->language) {
         $this->language->xmlSerialize(true, $sxe->addChild('language'));
     }
     if (null !== $this->use) {
         $this->use->xmlSerialize(true, $sxe->addChild('use'));
     }
     if (null !== $this->value) {
         $this->value->xmlSerialize(true, $sxe->addChild('value'));
     }
     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('<ImmunizationRecommendationRecommendation xmlns="http://hl7.org/fhir"></ImmunizationRecommendationRecommendation>');
     }
     parent::xmlSerialize(true, $sxe);
     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->doseNumber) {
         $this->doseNumber->xmlSerialize(true, $sxe->addChild('doseNumber'));
     }
     if (null !== $this->forecastStatus) {
         $this->forecastStatus->xmlSerialize(true, $sxe->addChild('forecastStatus'));
     }
     if (0 < count($this->dateCriterion)) {
         foreach ($this->dateCriterion as $dateCriterion) {
             $dateCriterion->xmlSerialize(true, $sxe->addChild('dateCriterion'));
         }
     }
     if (null !== $this->protocol) {
         $this->protocol->xmlSerialize(true, $sxe->addChild('protocol'));
     }
     if (0 < count($this->supportingImmunization)) {
         foreach ($this->supportingImmunization as $supportingImmunization) {
             $supportingImmunization->xmlSerialize(true, $sxe->addChild('supportingImmunization'));
         }
     }
     if (0 < count($this->supportingPatientInformation)) {
         foreach ($this->supportingPatientInformation as $supportingPatientInformation) {
             $supportingPatientInformation->xmlSerialize(true, $sxe->addChild('supportingPatientInformation'));
         }
     }
     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('<ClaimResponseDetail1 xmlns="http://hl7.org/fhir"></ClaimResponseDetail1>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->service) {
         $this->service->xmlSerialize(true, $sxe->addChild('service'));
     }
     if (null !== $this->fee) {
         $this->fee->xmlSerialize(true, $sxe->addChild('fee'));
     }
     if (0 < count($this->adjudication)) {
         foreach ($this->adjudication as $adjudication) {
             $adjudication->xmlSerialize(true, $sxe->addChild('adjudication'));
         }
     }
     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('<DiagnosticReportImage xmlns="http://hl7.org/fhir"></DiagnosticReportImage>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->comment) {
         $this->comment->xmlSerialize(true, $sxe->addChild('comment'));
     }
     if (null !== $this->link) {
         $this->link->xmlSerialize(true, $sxe->addChild('link'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
예제 #23
0
 /**
  * @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('<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('<DetectedIssueMitigation xmlns="http://hl7.org/fhir"></DetectedIssueMitigation>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->action) {
         $this->action->xmlSerialize(true, $sxe->addChild('action'));
     }
     if (null !== $this->date) {
         $this->date->xmlSerialize(true, $sxe->addChild('date'));
     }
     if (null !== $this->author) {
         $this->author->xmlSerialize(true, $sxe->addChild('author'));
     }
     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('<NutritionOrderNutrient xmlns="http://hl7.org/fhir"></NutritionOrderNutrient>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->modifier) {
         $this->modifier->xmlSerialize(true, $sxe->addChild('modifier'));
     }
     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('<AuditEventDetail xmlns="http://hl7.org/fhir"></AuditEventDetail>');
     }
     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 ($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('<EncounterStatusHistory xmlns="http://hl7.org/fhir"></EncounterStatusHistory>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     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('<MedicationProduct xmlns="http://hl7.org/fhir"></MedicationProduct>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->form) {
         $this->form->xmlSerialize(true, $sxe->addChild('form'));
     }
     if (0 < count($this->ingredient)) {
         foreach ($this->ingredient as $ingredient) {
             $ingredient->xmlSerialize(true, $sxe->addChild('ingredient'));
         }
     }
     if (0 < count($this->batch)) {
         foreach ($this->batch as $batch) {
             $batch->xmlSerialize(true, $sxe->addChild('batch'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
예제 #30
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<PersonLink xmlns="http://hl7.org/fhir"></PersonLink>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->target) {
         $this->target->xmlSerialize(true, $sxe->addChild('target'));
     }
     if (null !== $this->assurance) {
         $this->assurance->xmlSerialize(true, $sxe->addChild('assurance'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }