本文整理汇总了PHP中PHPFHIRGenerated\FHIRElement\FHIRCodeableConcept类的典型用法代码示例。如果您正苦于以下问题:PHP FHIRCodeableConcept类的具体用法?PHP FHIRCodeableConcept怎么用?PHP FHIRCodeableConcept使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FHIRCodeableConcept类的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('<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();
}
示例2: xmlSerialize
/**
* @param boolean $returnSXE
* @param \SimpleXMLElement $sxe
* @return string|\SimpleXMLElement
*/
public function xmlSerialize($returnSXE = false, $sxe = null)
{
if (null === $sxe) {
$sxe = new \SimpleXMLElement('<ObservationReferenceRange xmlns="http://hl7.org/fhir"></ObservationReferenceRange>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->low) {
$this->low->xmlSerialize(true, $sxe->addChild('low'));
}
if (null !== $this->high) {
$this->high->xmlSerialize(true, $sxe->addChild('high'));
}
if (null !== $this->meaning) {
$this->meaning->xmlSerialize(true, $sxe->addChild('meaning'));
}
if (null !== $this->age) {
$this->age->xmlSerialize(true, $sxe->addChild('age'));
}
if (null !== $this->text) {
$this->text->xmlSerialize(true, $sxe->addChild('text'));
}
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('<GroupCharacteristic xmlns="http://hl7.org/fhir"></GroupCharacteristic>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->code) {
$this->code->xmlSerialize(true, $sxe->addChild('code'));
}
if (null !== $this->valueCodeableConcept) {
$this->valueCodeableConcept->xmlSerialize(true, $sxe->addChild('valueCodeableConcept'));
}
if (null !== $this->valueBoolean) {
$this->valueBoolean->xmlSerialize(true, $sxe->addChild('valueBoolean'));
}
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->exclude) {
$this->exclude->xmlSerialize(true, $sxe->addChild('exclude'));
}
if (null !== $this->period) {
$this->period->xmlSerialize(true, $sxe->addChild('period'));
}
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('<DiagnosticOrderItem xmlns="http://hl7.org/fhir"></DiagnosticOrderItem>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->code) {
$this->code->xmlSerialize(true, $sxe->addChild('code'));
}
if (0 < count($this->specimen)) {
foreach ($this->specimen as $specimen) {
$specimen->xmlSerialize(true, $sxe->addChild('specimen'));
}
}
if (null !== $this->bodySite) {
$this->bodySite->xmlSerialize(true, $sxe->addChild('bodySite'));
}
if (null !== $this->status) {
$this->status->xmlSerialize(true, $sxe->addChild('status'));
}
if (0 < count($this->event)) {
foreach ($this->event as $event) {
$event->xmlSerialize(true, $sxe->addChild('event'));
}
}
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('<OrganizationContact xmlns="http://hl7.org/fhir"></OrganizationContact>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->purpose) {
$this->purpose->xmlSerialize(true, $sxe->addChild('purpose'));
}
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->address) {
$this->address->xmlSerialize(true, $sxe->addChild('address'));
}
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('<Identifier xmlns="http://hl7.org/fhir"></Identifier>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->use) {
$this->use->xmlSerialize(true, $sxe->addChild('use'));
}
if (null !== $this->type) {
$this->type->xmlSerialize(true, $sxe->addChild('type'));
}
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->period) {
$this->period->xmlSerialize(true, $sxe->addChild('period'));
}
if (null !== $this->assigner) {
$this->assigner->xmlSerialize(true, $sxe->addChild('assigner'));
}
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('<PractitionerQualification xmlns="http://hl7.org/fhir"></PractitionerQualification>');
}
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->period) {
$this->period->xmlSerialize(true, $sxe->addChild('period'));
}
if (null !== $this->issuer) {
$this->issuer->xmlSerialize(true, $sxe->addChild('issuer'));
}
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('<Communication xmlns="http://hl7.org/fhir"></Communication>');
}
parent::xmlSerialize(true, $sxe);
if (0 < count($this->identifier)) {
foreach ($this->identifier as $identifier) {
$identifier->xmlSerialize(true, $sxe->addChild('identifier'));
}
}
if (null !== $this->category) {
$this->category->xmlSerialize(true, $sxe->addChild('category'));
}
if (null !== $this->sender) {
$this->sender->xmlSerialize(true, $sxe->addChild('sender'));
}
if (0 < count($this->recipient)) {
foreach ($this->recipient as $recipient) {
$recipient->xmlSerialize(true, $sxe->addChild('recipient'));
}
}
if (0 < count($this->payload)) {
foreach ($this->payload as $payload) {
$payload->xmlSerialize(true, $sxe->addChild('payload'));
}
}
if (0 < count($this->medium)) {
foreach ($this->medium as $medium) {
$medium->xmlSerialize(true, $sxe->addChild('medium'));
}
}
if (null !== $this->status) {
$this->status->xmlSerialize(true, $sxe->addChild('status'));
}
if (null !== $this->encounter) {
$this->encounter->xmlSerialize(true, $sxe->addChild('encounter'));
}
if (null !== $this->sent) {
$this->sent->xmlSerialize(true, $sxe->addChild('sent'));
}
if (null !== $this->received) {
$this->received->xmlSerialize(true, $sxe->addChild('received'));
}
if (0 < count($this->reason)) {
foreach ($this->reason as $reason) {
$reason->xmlSerialize(true, $sxe->addChild('reason'));
}
}
if (null !== $this->subject) {
$this->subject->xmlSerialize(true, $sxe->addChild('subject'));
}
if (null !== $this->requestDetail) {
$this->requestDetail->xmlSerialize(true, $sxe->addChild('requestDetail'));
}
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('<FamilyMemberHistoryCondition xmlns="http://hl7.org/fhir"></FamilyMemberHistoryCondition>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->code) {
$this->code->xmlSerialize(true, $sxe->addChild('code'));
}
if (null !== $this->outcome) {
$this->outcome->xmlSerialize(true, $sxe->addChild('outcome'));
}
if (null !== $this->onsetQuantity) {
$this->onsetQuantity->xmlSerialize(true, $sxe->addChild('onsetQuantity'));
}
if (null !== $this->onsetRange) {
$this->onsetRange->xmlSerialize(true, $sxe->addChild('onsetRange'));
}
if (null !== $this->onsetPeriod) {
$this->onsetPeriod->xmlSerialize(true, $sxe->addChild('onsetPeriod'));
}
if (null !== $this->onsetString) {
$this->onsetString->xmlSerialize(true, $sxe->addChild('onsetString'));
}
if (null !== $this->note) {
$this->note->xmlSerialize(true, $sxe->addChild('note'));
}
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('<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();
}
示例11: xmlSerialize
/**
* @param boolean $returnSXE
* @param \SimpleXMLElement $sxe
* @return string|\SimpleXMLElement
*/
public function xmlSerialize($returnSXE = false, $sxe = null)
{
if (null === $sxe) {
$sxe = new \SimpleXMLElement('<NutritionOrderSupplement xmlns="http://hl7.org/fhir"></NutritionOrderSupplement>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->type) {
$this->type->xmlSerialize(true, $sxe->addChild('type'));
}
if (null !== $this->productName) {
$this->productName->xmlSerialize(true, $sxe->addChild('productName'));
}
if (0 < count($this->schedule)) {
foreach ($this->schedule as $schedule) {
$schedule->xmlSerialize(true, $sxe->addChild('schedule'));
}
}
if (null !== $this->quantity) {
$this->quantity->xmlSerialize(true, $sxe->addChild('quantity'));
}
if (null !== $this->instruction) {
$this->instruction->xmlSerialize(true, $sxe->addChild('instruction'));
}
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('<OperationOutcomeIssue xmlns="http://hl7.org/fhir"></OperationOutcomeIssue>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->severity) {
$this->severity->xmlSerialize(true, $sxe->addChild('severity'));
}
if (null !== $this->code) {
$this->code->xmlSerialize(true, $sxe->addChild('code'));
}
if (null !== $this->details) {
$this->details->xmlSerialize(true, $sxe->addChild('details'));
}
if (null !== $this->diagnostics) {
$this->diagnostics->xmlSerialize(true, $sxe->addChild('diagnostics'));
}
if (0 < count($this->location)) {
foreach ($this->location as $location) {
$location->xmlSerialize(true, $sxe->addChild('location'));
}
}
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('<Supply xmlns="http://hl7.org/fhir"></Supply>');
}
parent::xmlSerialize(true, $sxe);
if (null !== $this->kind) {
$this->kind->xmlSerialize(true, $sxe->addChild('kind'));
}
if (null !== $this->identifier) {
$this->identifier->xmlSerialize(true, $sxe->addChild('identifier'));
}
if (null !== $this->status) {
$this->status->xmlSerialize(true, $sxe->addChild('status'));
}
if (null !== $this->orderedItem) {
$this->orderedItem->xmlSerialize(true, $sxe->addChild('orderedItem'));
}
if (null !== $this->patient) {
$this->patient->xmlSerialize(true, $sxe->addChild('patient'));
}
if (0 < count($this->dispense)) {
foreach ($this->dispense as $dispense) {
$dispense->xmlSerialize(true, $sxe->addChild('dispense'));
}
}
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('<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();
}
示例15: 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();
}