本文整理汇总了PHP中PHPFHIRGenerated\FHIRElement\FHIRString类的典型用法代码示例。如果您正苦于以下问题:PHP FHIRString类的具体用法?PHP FHIRString怎么用?PHP FHIRString使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FHIRString类的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('<ConformanceMessaging xmlns="http://hl7.org/fhir"></ConformanceMessaging>');
}
parent::xmlSerialize(true, $sxe);
if (0 < count($this->endpoint)) {
foreach ($this->endpoint as $endpoint) {
$endpoint->xmlSerialize(true, $sxe->addChild('endpoint'));
}
}
if (null !== $this->reliableCache) {
$this->reliableCache->xmlSerialize(true, $sxe->addChild('reliableCache'));
}
if (null !== $this->documentation) {
$this->documentation->xmlSerialize(true, $sxe->addChild('documentation'));
}
if (0 < count($this->event)) {
foreach ($this->event as $event) {
$event->xmlSerialize(true, $sxe->addChild('event'));
}
}
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('<Quantity xmlns="http://hl7.org/fhir"></Quantity>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->value) {
$this->value->xmlSerialize(true, $sxe->addChild('value'));
}
if (null !== $this->comparator) {
$this->comparator->xmlSerialize(true, $sxe->addChild('comparator'));
}
if (null !== $this->unit) {
$this->unit->xmlSerialize(true, $sxe->addChild('unit'));
}
if (null !== $this->system) {
$this->system->xmlSerialize(true, $sxe->addChild('system'));
}
if (null !== $this->code) {
$this->code->xmlSerialize(true, $sxe->addChild('code'));
}
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('<ElementDefinitionSlicing xmlns="http://hl7.org/fhir"></ElementDefinitionSlicing>');
}
parent::xmlSerialize(true, $sxe);
if (0 < count($this->discriminator)) {
foreach ($this->discriminator as $discriminator) {
$discriminator->xmlSerialize(true, $sxe->addChild('discriminator'));
}
}
if (null !== $this->description) {
$this->description->xmlSerialize(true, $sxe->addChild('description'));
}
if (null !== $this->ordered) {
$this->ordered->xmlSerialize(true, $sxe->addChild('ordered'));
}
if (null !== $this->rules) {
$this->rules->xmlSerialize(true, $sxe->addChild('rules'));
}
if ($returnSXE) {
return $sxe;
}
return $sxe->saveXML();
}
示例4: 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();
}
示例5: xmlSerialize
/**
* @param boolean $returnSXE
* @param \SimpleXMLElement $sxe
* @return string|\SimpleXMLElement
*/
public function xmlSerialize($returnSXE = false, $sxe = null)
{
if (null === $sxe) {
$sxe = new \SimpleXMLElement('<MessageHeaderSource xmlns="http://hl7.org/fhir"></MessageHeaderSource>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->name) {
$this->name->xmlSerialize(true, $sxe->addChild('name'));
}
if (null !== $this->software) {
$this->software->xmlSerialize(true, $sxe->addChild('software'));
}
if (null !== $this->version) {
$this->version->xmlSerialize(true, $sxe->addChild('version'));
}
if (null !== $this->contact) {
$this->contact->xmlSerialize(true, $sxe->addChild('contact'));
}
if (null !== $this->endpoint) {
$this->endpoint->xmlSerialize(true, $sxe->addChild('endpoint'));
}
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('<QuestionnaireAnswersGroup xmlns="http://hl7.org/fhir"></QuestionnaireAnswersGroup>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->linkId) {
$this->linkId->xmlSerialize(true, $sxe->addChild('linkId'));
}
if (null !== $this->title) {
$this->title->xmlSerialize(true, $sxe->addChild('title'));
}
if (null !== $this->text) {
$this->text->xmlSerialize(true, $sxe->addChild('text'));
}
if (null !== $this->subject) {
$this->subject->xmlSerialize(true, $sxe->addChild('subject'));
}
if (0 < count($this->group)) {
foreach ($this->group as $group) {
$group->xmlSerialize(true, $sxe->addChild('group'));
}
}
if (0 < count($this->question)) {
foreach ($this->question as $question) {
$question->xmlSerialize(true, $sxe->addChild('question'));
}
}
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('<ConformanceSecurity xmlns="http://hl7.org/fhir"></ConformanceSecurity>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->cors) {
$this->cors->xmlSerialize(true, $sxe->addChild('cors'));
}
if (0 < count($this->service)) {
foreach ($this->service as $service) {
$service->xmlSerialize(true, $sxe->addChild('service'));
}
}
if (null !== $this->description) {
$this->description->xmlSerialize(true, $sxe->addChild('description'));
}
if (0 < count($this->certificate)) {
foreach ($this->certificate as $certificate) {
$certificate->xmlSerialize(true, $sxe->addChild('certificate'));
}
}
if ($returnSXE) {
return $sxe;
}
return $sxe->saveXML();
}
示例8: 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();
}
示例9: 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();
}
示例10: xmlSerialize
/**
* @param boolean $returnSXE
* @param \SimpleXMLElement $sxe
* @return string|\SimpleXMLElement
*/
public function xmlSerialize($returnSXE = false, $sxe = null)
{
if (null === $sxe) {
$sxe = new \SimpleXMLElement('<ValueSetParameter xmlns="http://hl7.org/fhir"></ValueSetParameter>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->name) {
$this->name->xmlSerialize(true, $sxe->addChild('name'));
}
if (null !== $this->valueString) {
$this->valueString->xmlSerialize(true, $sxe->addChild('valueString'));
}
if (null !== $this->valueBoolean) {
$this->valueBoolean->xmlSerialize(true, $sxe->addChild('valueBoolean'));
}
if (null !== $this->valueInteger) {
$this->valueInteger->xmlSerialize(true, $sxe->addChild('valueInteger'));
}
if (null !== $this->valueDecimal) {
$this->valueDecimal->xmlSerialize(true, $sxe->addChild('valueDecimal'));
}
if (null !== $this->valueUri) {
$this->valueUri->xmlSerialize(true, $sxe->addChild('valueUri'));
}
if (null !== $this->valueCode) {
$this->valueCode->xmlSerialize(true, $sxe->addChild('valueCode'));
}
if ($returnSXE) {
return $sxe;
}
return $sxe->saveXML();
}
示例11: xmlSerialize
/**
* @param boolean $returnSXE
* @param \SimpleXMLElement $sxe
* @return string|\SimpleXMLElement
*/
public function xmlSerialize($returnSXE = false, $sxe = null)
{
if (null === $sxe) {
$sxe = new \SimpleXMLElement('<Money xmlns="http://hl7.org/fhir"></Money>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->value) {
$this->value->xmlSerialize(true, $sxe->addChild('value'));
}
if (null !== $this->comparator) {
$this->comparator->xmlSerialize(true, $sxe->addChild('comparator'));
}
if (null !== $this->units) {
$this->units->xmlSerialize(true, $sxe->addChild('units'));
}
if (null !== $this->system) {
$this->system->xmlSerialize(true, $sxe->addChild('system'));
}
if (null !== $this->code) {
$this->code->xmlSerialize(true, $sxe->addChild('code'));
}
if (null !== $this->id) {
$idElement = $sxe->addChild('id');
$idElement->addAttribute('value', (string) $this->id);
}
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('<MedicationAdministrationDosage xmlns="http://hl7.org/fhir"></MedicationAdministrationDosage>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->text) {
$this->text->xmlSerialize(true, $sxe->addChild('text'));
}
if (null !== $this->siteCodeableConcept) {
$this->siteCodeableConcept->xmlSerialize(true, $sxe->addChild('siteCodeableConcept'));
}
if (null !== $this->siteReference) {
$this->siteReference->xmlSerialize(true, $sxe->addChild('siteReference'));
}
if (null !== $this->route) {
$this->route->xmlSerialize(true, $sxe->addChild('route'));
}
if (null !== $this->method) {
$this->method->xmlSerialize(true, $sxe->addChild('method'));
}
if (null !== $this->quantity) {
$this->quantity->xmlSerialize(true, $sxe->addChild('quantity'));
}
if (null !== $this->rateRatio) {
$this->rateRatio->xmlSerialize(true, $sxe->addChild('rateRatio'));
}
if (null !== $this->rateRange) {
$this->rateRange->xmlSerialize(true, $sxe->addChild('rateRange'));
}
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('<ContactPoint xmlns="http://hl7.org/fhir"></ContactPoint>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->system) {
$this->system->xmlSerialize(true, $sxe->addChild('system'));
}
if (null !== $this->value) {
$this->value->xmlSerialize(true, $sxe->addChild('value'));
}
if (null !== $this->use) {
$this->use->xmlSerialize(true, $sxe->addChild('use'));
}
if (null !== $this->rank) {
$this->rank->xmlSerialize(true, $sxe->addChild('rank'));
}
if (null !== $this->period) {
$this->period->xmlSerialize(true, $sxe->addChild('period'));
}
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('<MedicationOrderDosageInstruction xmlns="http://hl7.org/fhir"></MedicationOrderDosageInstruction>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->text) {
$this->text->xmlSerialize(true, $sxe->addChild('text'));
}
if (null !== $this->additionalInstructions) {
$this->additionalInstructions->xmlSerialize(true, $sxe->addChild('additionalInstructions'));
}
if (null !== $this->timing) {
$this->timing->xmlSerialize(true, $sxe->addChild('timing'));
}
if (null !== $this->asNeededBoolean) {
$this->asNeededBoolean->xmlSerialize(true, $sxe->addChild('asNeededBoolean'));
}
if (null !== $this->asNeededCodeableConcept) {
$this->asNeededCodeableConcept->xmlSerialize(true, $sxe->addChild('asNeededCodeableConcept'));
}
if (null !== $this->siteCodeableConcept) {
$this->siteCodeableConcept->xmlSerialize(true, $sxe->addChild('siteCodeableConcept'));
}
if (null !== $this->siteReference) {
$this->siteReference->xmlSerialize(true, $sxe->addChild('siteReference'));
}
if (null !== $this->route) {
$this->route->xmlSerialize(true, $sxe->addChild('route'));
}
if (null !== $this->method) {
$this->method->xmlSerialize(true, $sxe->addChild('method'));
}
if (null !== $this->doseRange) {
$this->doseRange->xmlSerialize(true, $sxe->addChild('doseRange'));
}
if (null !== $this->doseQuantity) {
$this->doseQuantity->xmlSerialize(true, $sxe->addChild('doseQuantity'));
}
if (null !== $this->rateRatio) {
$this->rateRatio->xmlSerialize(true, $sxe->addChild('rateRatio'));
}
if (null !== $this->rateRange) {
$this->rateRange->xmlSerialize(true, $sxe->addChild('rateRange'));
}
if (null !== $this->maxDosePerPeriod) {
$this->maxDosePerPeriod->xmlSerialize(true, $sxe->addChild('maxDosePerPeriod'));
}
if ($returnSXE) {
return $sxe;
}
return $sxe->saveXML();
}
示例15: xmlSerialize
/**
* @param boolean $returnSXE
* @param \SimpleXMLElement $sxe
* @return string|\SimpleXMLElement
*/
public function xmlSerialize($returnSXE = false, $sxe = null)
{
if (null === $sxe) {
$sxe = new \SimpleXMLElement('<ConformanceRest xmlns="http://hl7.org/fhir"></ConformanceRest>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->mode) {
$this->mode->xmlSerialize(true, $sxe->addChild('mode'));
}
if (null !== $this->documentation) {
$this->documentation->xmlSerialize(true, $sxe->addChild('documentation'));
}
if (null !== $this->security) {
$this->security->xmlSerialize(true, $sxe->addChild('security'));
}
if (0 < count($this->resource)) {
foreach ($this->resource as $resource) {
$resource->xmlSerialize(true, $sxe->addChild('resource'));
}
}
if (0 < count($this->interaction)) {
foreach ($this->interaction as $interaction) {
$interaction->xmlSerialize(true, $sxe->addChild('interaction'));
}
}
if (null !== $this->transactionMode) {
$this->transactionMode->xmlSerialize(true, $sxe->addChild('transactionMode'));
}
if (0 < count($this->searchParam)) {
foreach ($this->searchParam as $searchParam) {
$searchParam->xmlSerialize(true, $sxe->addChild('searchParam'));
}
}
if (0 < count($this->operation)) {
foreach ($this->operation as $operation) {
$operation->xmlSerialize(true, $sxe->addChild('operation'));
}
}
if (0 < count($this->compartment)) {
foreach ($this->compartment as $compartment) {
$compartment->xmlSerialize(true, $sxe->addChild('compartment'));
}
}
if ($returnSXE) {
return $sxe;
}
return $sxe->saveXML();
}