本文整理汇总了PHP中PHPFHIRGenerated\FHIRElement\FHIRReference类的典型用法代码示例。如果您正苦于以下问题:PHP FHIRReference类的具体用法?PHP FHIRReference怎么用?PHP FHIRReference使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FHIRReference类的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('<Schedule xmlns="http://hl7.org/fhir"></Schedule>');
}
parent::xmlSerialize(true, $sxe);
if (0 < count($this->identifier)) {
foreach ($this->identifier as $identifier) {
$identifier->xmlSerialize(true, $sxe->addChild('identifier'));
}
}
if (0 < count($this->type)) {
foreach ($this->type as $type) {
$type->xmlSerialize(true, $sxe->addChild('type'));
}
}
if (null !== $this->actor) {
$this->actor->xmlSerialize(true, $sxe->addChild('actor'));
}
if (null !== $this->planningHorizon) {
$this->planningHorizon->xmlSerialize(true, $sxe->addChild('planningHorizon'));
}
if (null !== $this->comment) {
$this->comment->xmlSerialize(true, $sxe->addChild('comment'));
}
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('<AppointmentParticipant xmlns="http://hl7.org/fhir"></AppointmentParticipant>');
}
parent::xmlSerialize(true, $sxe);
if (0 < count($this->type)) {
foreach ($this->type as $type) {
$type->xmlSerialize(true, $sxe->addChild('type'));
}
}
if (null !== $this->actor) {
$this->actor->xmlSerialize(true, $sxe->addChild('actor'));
}
if (null !== $this->required) {
$this->required->xmlSerialize(true, $sxe->addChild('required'));
}
if (null !== $this->status) {
$this->status->xmlSerialize(true, $sxe->addChild('status'));
}
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('<CarePlanActivity xmlns="http://hl7.org/fhir"></CarePlanActivity>');
}
parent::xmlSerialize(true, $sxe);
if (0 < count($this->actionResulting)) {
foreach ($this->actionResulting as $actionResulting) {
$actionResulting->xmlSerialize(true, $sxe->addChild('actionResulting'));
}
}
if (0 < count($this->progress)) {
foreach ($this->progress as $progress) {
$progress->xmlSerialize(true, $sxe->addChild('progress'));
}
}
if (null !== $this->reference) {
$this->reference->xmlSerialize(true, $sxe->addChild('reference'));
}
if (null !== $this->detail) {
$this->detail->xmlSerialize(true, $sxe->addChild('detail'));
}
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('<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();
}
示例5: xmlSerialize
/**
* @param boolean $returnSXE
* @param \SimpleXMLElement $sxe
* @return string|\SimpleXMLElement
*/
public function xmlSerialize($returnSXE = false, $sxe = null)
{
if (null === $sxe) {
$sxe = new \SimpleXMLElement('<PractitionerPractitionerRole xmlns="http://hl7.org/fhir"></PractitionerPractitionerRole>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->managingOrganization) {
$this->managingOrganization->xmlSerialize(true, $sxe->addChild('managingOrganization'));
}
if (null !== $this->role) {
$this->role->xmlSerialize(true, $sxe->addChild('role'));
}
if (0 < count($this->specialty)) {
foreach ($this->specialty as $specialty) {
$specialty->xmlSerialize(true, $sxe->addChild('specialty'));
}
}
if (null !== $this->period) {
$this->period->xmlSerialize(true, $sxe->addChild('period'));
}
if (0 < count($this->location)) {
foreach ($this->location as $location) {
$location->xmlSerialize(true, $sxe->addChild('location'));
}
}
if (0 < count($this->healthcareService)) {
foreach ($this->healthcareService as $healthcareService) {
$healthcareService->xmlSerialize(true, $sxe->addChild('healthcareService'));
}
}
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('<MedicationOrderDispenseRequest xmlns="http://hl7.org/fhir"></MedicationOrderDispenseRequest>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->medicationCodeableConcept) {
$this->medicationCodeableConcept->xmlSerialize(true, $sxe->addChild('medicationCodeableConcept'));
}
if (null !== $this->medicationReference) {
$this->medicationReference->xmlSerialize(true, $sxe->addChild('medicationReference'));
}
if (null !== $this->validityPeriod) {
$this->validityPeriod->xmlSerialize(true, $sxe->addChild('validityPeriod'));
}
if (null !== $this->numberOfRepeatsAllowed) {
$this->numberOfRepeatsAllowed->xmlSerialize(true, $sxe->addChild('numberOfRepeatsAllowed'));
}
if (null !== $this->quantity) {
$this->quantity->xmlSerialize(true, $sxe->addChild('quantity'));
}
if (null !== $this->expectedSupplyDuration) {
$this->expectedSupplyDuration->xmlSerialize(true, $sxe->addChild('expectedSupplyDuration'));
}
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('<ImagingObjectSelectionStudy xmlns="http://hl7.org/fhir"></ImagingObjectSelectionStudy>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->uid) {
$this->uid->xmlSerialize(true, $sxe->addChild('uid'));
}
if (null !== $this->url) {
$this->url->xmlSerialize(true, $sxe->addChild('url'));
}
if (null !== $this->imagingStudy) {
$this->imagingStudy->xmlSerialize(true, $sxe->addChild('imagingStudy'));
}
if (0 < count($this->series)) {
foreach ($this->series as $series) {
$series->xmlSerialize(true, $sxe->addChild('series'));
}
}
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('<SpecimenCollection xmlns="http://hl7.org/fhir"></SpecimenCollection>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->collector) {
$this->collector->xmlSerialize(true, $sxe->addChild('collector'));
}
if (0 < count($this->comment)) {
foreach ($this->comment as $comment) {
$comment->xmlSerialize(true, $sxe->addChild('comment'));
}
}
if (null !== $this->collectedDateTime) {
$this->collectedDateTime->xmlSerialize(true, $sxe->addChild('collectedDateTime'));
}
if (null !== $this->collectedPeriod) {
$this->collectedPeriod->xmlSerialize(true, $sxe->addChild('collectedPeriod'));
}
if (null !== $this->quantity) {
$this->quantity->xmlSerialize(true, $sxe->addChild('quantity'));
}
if (null !== $this->method) {
$this->method->xmlSerialize(true, $sxe->addChild('method'));
}
if (null !== $this->bodySite) {
$this->bodySite->xmlSerialize(true, $sxe->addChild('bodySite'));
}
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('<ProvenanceAgent xmlns="http://hl7.org/fhir"></ProvenanceAgent>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->role) {
$this->role->xmlSerialize(true, $sxe->addChild('role'));
}
if (null !== $this->actor) {
$this->actor->xmlSerialize(true, $sxe->addChild('actor'));
}
if (null !== $this->userId) {
$this->userId->xmlSerialize(true, $sxe->addChild('userId'));
}
if (0 < count($this->relatedAgent)) {
foreach ($this->relatedAgent as $relatedAgent) {
$relatedAgent->xmlSerialize(true, $sxe->addChild('relatedAgent'));
}
}
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('<BodySite xmlns="http://hl7.org/fhir"></BodySite>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->patient) {
$this->patient->xmlSerialize(true, $sxe->addChild('patient'));
}
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 (0 < count($this->modifier)) {
foreach ($this->modifier as $modifier) {
$modifier->xmlSerialize(true, $sxe->addChild('modifier'));
}
}
if (null !== $this->description) {
$this->description->xmlSerialize(true, $sxe->addChild('description'));
}
if (0 < count($this->image)) {
foreach ($this->image as $image) {
$image->xmlSerialize(true, $sxe->addChild('image'));
}
}
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('<Medication xmlns="http://hl7.org/fhir"></Medication>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->code) {
$this->code->xmlSerialize(true, $sxe->addChild('code'));
}
if (null !== $this->isBrand) {
$this->isBrand->xmlSerialize(true, $sxe->addChild('isBrand'));
}
if (null !== $this->manufacturer) {
$this->manufacturer->xmlSerialize(true, $sxe->addChild('manufacturer'));
}
if (null !== $this->product) {
$this->product->xmlSerialize(true, $sxe->addChild('product'));
}
if (null !== $this->package) {
$this->package->xmlSerialize(true, $sxe->addChild('package'));
}
if ($returnSXE) {
return $sxe;
}
return $sxe->saveXML();
}
示例12: xmlSerialize
/**
* @param boolean $returnSXE
* @param \SimpleXMLElement $sxe
* @return string|\SimpleXMLElement
*/
public function xmlSerialize($returnSXE = false, $sxe = null)
{
if (null === $sxe) {
$sxe = new \SimpleXMLElement('<DocumentManifest xmlns="http://hl7.org/fhir"></DocumentManifest>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->masterIdentifier) {
$this->masterIdentifier->xmlSerialize(true, $sxe->addChild('masterIdentifier'));
}
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 (0 < count($this->recipient)) {
foreach ($this->recipient as $recipient) {
$recipient->xmlSerialize(true, $sxe->addChild('recipient'));
}
}
if (null !== $this->type) {
$this->type->xmlSerialize(true, $sxe->addChild('type'));
}
if (0 < count($this->author)) {
foreach ($this->author as $author) {
$author->xmlSerialize(true, $sxe->addChild('author'));
}
}
if (null !== $this->created) {
$this->created->xmlSerialize(true, $sxe->addChild('created'));
}
if (null !== $this->source) {
$this->source->xmlSerialize(true, $sxe->addChild('source'));
}
if (null !== $this->status) {
$this->status->xmlSerialize(true, $sxe->addChild('status'));
}
if (null !== $this->description) {
$this->description->xmlSerialize(true, $sxe->addChild('description'));
}
if (0 < count($this->content)) {
foreach ($this->content as $content) {
$content->xmlSerialize(true, $sxe->addChild('content'));
}
}
if (0 < count($this->related)) {
foreach ($this->related as $related) {
$related->xmlSerialize(true, $sxe->addChild('related'));
}
}
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('<ConformanceResource xmlns="http://hl7.org/fhir"></ConformanceResource>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->type) {
$this->type->xmlSerialize(true, $sxe->addChild('type'));
}
if (null !== $this->profile) {
$this->profile->xmlSerialize(true, $sxe->addChild('profile'));
}
if (0 < count($this->interaction)) {
foreach ($this->interaction as $interaction) {
$interaction->xmlSerialize(true, $sxe->addChild('interaction'));
}
}
if (null !== $this->versioning) {
$this->versioning->xmlSerialize(true, $sxe->addChild('versioning'));
}
if (null !== $this->readHistory) {
$this->readHistory->xmlSerialize(true, $sxe->addChild('readHistory'));
}
if (null !== $this->updateCreate) {
$this->updateCreate->xmlSerialize(true, $sxe->addChild('updateCreate'));
}
if (null !== $this->conditionalCreate) {
$this->conditionalCreate->xmlSerialize(true, $sxe->addChild('conditionalCreate'));
}
if (null !== $this->conditionalUpdate) {
$this->conditionalUpdate->xmlSerialize(true, $sxe->addChild('conditionalUpdate'));
}
if (null !== $this->conditionalDelete) {
$this->conditionalDelete->xmlSerialize(true, $sxe->addChild('conditionalDelete'));
}
if (0 < count($this->searchInclude)) {
foreach ($this->searchInclude as $searchInclude) {
$searchInclude->xmlSerialize(true, $sxe->addChild('searchInclude'));
}
}
if (0 < count($this->searchRevInclude)) {
foreach ($this->searchRevInclude as $searchRevInclude) {
$searchRevInclude->xmlSerialize(true, $sxe->addChild('searchRevInclude'));
}
}
if (0 < count($this->searchParam)) {
foreach ($this->searchParam as $searchParam) {
$searchParam->xmlSerialize(true, $sxe->addChild('searchParam'));
}
}
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('<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();
}
示例15: xmlSerialize
/**
* @param boolean $returnSXE
* @param \SimpleXMLElement $sxe
* @return string|\SimpleXMLElement
*/
public function xmlSerialize($returnSXE = false, $sxe = null)
{
if (null === $sxe) {
$sxe = new \SimpleXMLElement('<MedicationContent xmlns="http://hl7.org/fhir"></MedicationContent>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->item) {
$this->item->xmlSerialize(true, $sxe->addChild('item'));
}
if (null !== $this->amount) {
$this->amount->xmlSerialize(true, $sxe->addChild('amount'));
}
if ($returnSXE) {
return $sxe;
}
return $sxe->saveXML();
}