本文整理汇总了PHP中PHPFHIRGenerated\FHIRElement\FHIRBackboneElement类的典型用法代码示例。如果您正苦于以下问题:PHP FHIRBackboneElement类的具体用法?PHP FHIRBackboneElement怎么用?PHP FHIRBackboneElement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FHIRBackboneElement类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: xmlSerialize
/**
* @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();
}
示例2: xmlSerialize
/**
* @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();
}
示例3: xmlSerialize
/**
* @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();
}
示例4: xmlSerialize
/**
* @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();
}
示例5: xmlSerialize
/**
* @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();
}
示例6: xmlSerialize
/**
* @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();
}
示例7: xmlSerialize
/**
* @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();
}
示例8: xmlSerialize
/**
* @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();
}
示例9: xmlSerialize
/**
* @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();
}
示例10: xmlSerialize
/**
* @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();
}
示例11: xmlSerialize
/**
* @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();
}
示例12: xmlSerialize
/**
* @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();
}
示例13: xmlSerialize
/**
* @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();
}
示例14: xmlSerialize
/**
* @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();
}
示例15: xmlSerialize
/**
* @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();
}