How to use value class

Best Atoum code snippet using value

FHIRElementDefinitionExample.php

Source:FHIRElementDefinitionExample.php Github

copy

Full Screen

...7 */8use HL7\FHIR\STU3\FHIRElement;9/**10 * Captures constraints on each element within the resource, profile, or extension.11 * If the element is present, it must have a value for at least one of the defined elements, an @id referenced from the Narrative, or extensions12 */13class FHIRElementDefinitionExample extends FHIRElement implements \JsonSerializable14{15 /**16 * Describes the purpose of this example amoung the set of examples.17 * @var \HL7\FHIR\STU3\FHIRElement\FHIRString18 */19 public $label = null;20 /**21 * @var \HL7\FHIR\STU3\FHIRElement\FHIRBase64Binary22 */23 public $valueBase64Binary = null;24 /**25 * @var \HL7\FHIR\STU3\FHIRElement\FHIRBoolean26 */27 public $valueBoolean = null;28 /**29 * @var \HL7\FHIR\STU3\FHIRElement\FHIRCode30 */31 public $valueCode = null;32 /**33 * @var \HL7\FHIR\STU3\FHIRElement\FHIRDate34 */35 public $valueDate = null;36 /**37 * @var \HL7\FHIR\STU3\FHIRElement\FHIRDateTime38 */39 public $valueDateTime = null;40 /**41 * @var \HL7\FHIR\STU3\FHIRElement\FHIRDecimal42 */43 public $valueDecimal = null;44 /**45 * @var \HL7\FHIR\STU3\FHIRElement\FHIRId46 */47 public $valueId = null;48 /**49 * @var \HL7\FHIR\STU3\FHIRElement\FHIRInstant50 */51 public $valueInstant = null;52 /**53 * @var \HL7\FHIR\STU3\FHIRElement\FHIRInteger54 */55 public $valueInteger = null;56 /**57 * @var \HL7\FHIR\STU3\FHIRElement\FHIRMarkdown58 */59 public $valueMarkdown = null;60 /**61 * @var \HL7\FHIR\STU3\FHIRElement\FHIROid62 */63 public $valueOid = null;64 /**65 * @var \HL7\FHIR\STU3\FHIRElement\FHIRPositiveInt66 */67 public $valuePositiveInt = null;68 /**69 * @var \HL7\FHIR\STU3\FHIRElement\FHIRString70 */71 public $valueString = null;72 /**73 * @var \HL7\FHIR\STU3\FHIRElement\FHIRTime74 */75 public $valueTime = null;76 /**77 * @var \HL7\FHIR\STU3\FHIRElement\FHIRUnsignedInt78 */79 public $valueUnsignedInt = null;80 /**81 * @var \HL7\FHIR\STU3\FHIRElement\FHIRUri82 */83 public $valueUri = null;84 /**85 * @var \HL7\FHIR\STU3\FHIRElement\FHIRAddress86 */87 public $valueAddress = null;88 /**89 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRAge90 */91 public $valueAge = null;92 /**93 * @var \HL7\FHIR\STU3\FHIRElement\FHIRAnnotation94 */95 public $valueAnnotation = null;96 /**97 * @var \HL7\FHIR\STU3\FHIRElement\FHIRAttachment98 */99 public $valueAttachment = null;100 /**101 * @var \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept102 */103 public $valueCodeableConcept = null;104 /**105 * @var \HL7\FHIR\STU3\FHIRElement\FHIRCoding106 */107 public $valueCoding = null;108 /**109 * @var \HL7\FHIR\STU3\FHIRElement\FHIRContactPoint110 */111 public $valueContactPoint = null;112 /**113 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRCount114 */115 public $valueCount = null;116 /**117 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDistance118 */119 public $valueDistance = null;120 /**121 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDuration122 */123 public $valueDuration = null;124 /**125 * @var \HL7\FHIR\STU3\FHIRElement\FHIRHumanName126 */127 public $valueHumanName = null;128 /**129 * @var \HL7\FHIR\STU3\FHIRElement\FHIRIdentifier130 */131 public $valueIdentifier = null;132 /**133 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRMoney134 */135 public $valueMoney = null;136 /**137 * @var \HL7\FHIR\STU3\FHIRElement\FHIRPeriod138 */139 public $valuePeriod = null;140 /**141 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity142 */143 public $valueQuantity = null;144 /**145 * @var \HL7\FHIR\STU3\FHIRElement\FHIRRange146 */147 public $valueRange = null;148 /**149 * @var \HL7\FHIR\STU3\FHIRElement\FHIRRatio150 */151 public $valueRatio = null;152 /**153 * @var \HL7\FHIR\STU3\FHIRElement\FHIRReference154 */155 public $valueReference = null;156 /**157 * @var \HL7\FHIR\STU3\FHIRElement\FHIRSampledData158 */159 public $valueSampledData = null;160 /**161 * @var \HL7\FHIR\STU3\FHIRElement\FHIRSignature162 */163 public $valueSignature = null;164 /**165 * @var \HL7\FHIR\STU3\FHIRElement\FHIRTiming166 */167 public $valueTiming = null;168 /**169 * @var \HL7\FHIR\STU3\FHIRElement\FHIRMeta170 */171 public $valueMeta = null;172 /**173 * @var string174 */175 private $_fhirElementName = 'ElementDefinition.Example';176 /**177 * Describes the purpose of this example amoung the set of examples.178 * @return \HL7\FHIR\STU3\FHIRElement\FHIRString179 */180 public function getLabel()181 {182 return $this->label;183 }184 /**185 * Describes the purpose of this example amoung the set of examples.186 * @param \HL7\FHIR\STU3\FHIRElement\FHIRString $label187 * @return $this188 */189 public function setLabel($label)190 {191 $this->label = $label;192 return $this;193 }194 /**195 * @return \HL7\FHIR\STU3\FHIRElement\FHIRBase64Binary196 */197 public function getValueBase64Binary()198 {199 return $this->valueBase64Binary;200 }201 /**202 * @param \HL7\FHIR\STU3\FHIRElement\FHIRBase64Binary $valueBase64Binary203 * @return $this204 */205 public function setValueBase64Binary($valueBase64Binary)206 {207 $this->valueBase64Binary = $valueBase64Binary;208 return $this;209 }210 /**211 * @return \HL7\FHIR\STU3\FHIRElement\FHIRBoolean212 */213 public function getValueBoolean()214 {215 return $this->valueBoolean;216 }217 /**218 * @param \HL7\FHIR\STU3\FHIRElement\FHIRBoolean $valueBoolean219 * @return $this220 */221 public function setValueBoolean($valueBoolean)222 {223 $this->valueBoolean = $valueBoolean;224 return $this;225 }226 /**227 * @return \HL7\FHIR\STU3\FHIRElement\FHIRCode228 */229 public function getValueCode()230 {231 return $this->valueCode;232 }233 /**234 * @param \HL7\FHIR\STU3\FHIRElement\FHIRCode $valueCode235 * @return $this236 */237 public function setValueCode($valueCode)238 {239 $this->valueCode = $valueCode;240 return $this;241 }242 /**243 * @return \HL7\FHIR\STU3\FHIRElement\FHIRDate244 */245 public function getValueDate()246 {247 return $this->valueDate;248 }249 /**250 * @param \HL7\FHIR\STU3\FHIRElement\FHIRDate $valueDate251 * @return $this252 */253 public function setValueDate($valueDate)254 {255 $this->valueDate = $valueDate;256 return $this;257 }258 /**259 * @return \HL7\FHIR\STU3\FHIRElement\FHIRDateTime260 */261 public function getValueDateTime()262 {263 return $this->valueDateTime;264 }265 /**266 * @param \HL7\FHIR\STU3\FHIRElement\FHIRDateTime $valueDateTime267 * @return $this268 */269 public function setValueDateTime($valueDateTime)270 {271 $this->valueDateTime = $valueDateTime;272 return $this;273 }274 /**275 * @return \HL7\FHIR\STU3\FHIRElement\FHIRDecimal276 */277 public function getValueDecimal()278 {279 return $this->valueDecimal;280 }281 /**282 * @param \HL7\FHIR\STU3\FHIRElement\FHIRDecimal $valueDecimal283 * @return $this284 */285 public function setValueDecimal($valueDecimal)286 {287 $this->valueDecimal = $valueDecimal;288 return $this;289 }290 /**291 * @return \HL7\FHIR\STU3\FHIRElement\FHIRId292 */293 public function getValueId()294 {295 return $this->valueId;296 }297 /**298 * @param \HL7\FHIR\STU3\FHIRElement\FHIRId $valueId299 * @return $this300 */301 public function setValueId($valueId)302 {303 $this->valueId = $valueId;304 return $this;305 }306 /**307 * @return \HL7\FHIR\STU3\FHIRElement\FHIRInstant308 */309 public function getValueInstant()310 {311 return $this->valueInstant;312 }313 /**314 * @param \HL7\FHIR\STU3\FHIRElement\FHIRInstant $valueInstant315 * @return $this316 */317 public function setValueInstant($valueInstant)318 {319 $this->valueInstant = $valueInstant;320 return $this;321 }322 /**323 * @return \HL7\FHIR\STU3\FHIRElement\FHIRInteger324 */325 public function getValueInteger()326 {327 return $this->valueInteger;328 }329 /**330 * @param \HL7\FHIR\STU3\FHIRElement\FHIRInteger $valueInteger331 * @return $this332 */333 public function setValueInteger($valueInteger)334 {335 $this->valueInteger = $valueInteger;336 return $this;337 }338 /**339 * @return \HL7\FHIR\STU3\FHIRElement\FHIRMarkdown340 */341 public function getValueMarkdown()342 {343 return $this->valueMarkdown;344 }345 /**346 * @param \HL7\FHIR\STU3\FHIRElement\FHIRMarkdown $valueMarkdown347 * @return $this348 */349 public function setValueMarkdown($valueMarkdown)350 {351 $this->valueMarkdown = $valueMarkdown;352 return $this;353 }354 /**355 * @return \HL7\FHIR\STU3\FHIRElement\FHIROid356 */357 public function getValueOid()358 {359 return $this->valueOid;360 }361 /**362 * @param \HL7\FHIR\STU3\FHIRElement\FHIROid $valueOid363 * @return $this364 */365 public function setValueOid($valueOid)366 {367 $this->valueOid = $valueOid;368 return $this;369 }370 /**371 * @return \HL7\FHIR\STU3\FHIRElement\FHIRPositiveInt372 */373 public function getValuePositiveInt()374 {375 return $this->valuePositiveInt;376 }377 /**378 * @param \HL7\FHIR\STU3\FHIRElement\FHIRPositiveInt $valuePositiveInt379 * @return $this380 */381 public function setValuePositiveInt($valuePositiveInt)382 {383 $this->valuePositiveInt = $valuePositiveInt;384 return $this;385 }386 /**387 * @return \HL7\FHIR\STU3\FHIRElement\FHIRString388 */389 public function getValueString()390 {391 return $this->valueString;392 }393 /**394 * @param \HL7\FHIR\STU3\FHIRElement\FHIRString $valueString395 * @return $this396 */397 public function setValueString($valueString)398 {399 $this->valueString = $valueString;400 return $this;401 }402 /**403 * @return \HL7\FHIR\STU3\FHIRElement\FHIRTime404 */405 public function getValueTime()406 {407 return $this->valueTime;408 }409 /**410 * @param \HL7\FHIR\STU3\FHIRElement\FHIRTime $valueTime411 * @return $this412 */413 public function setValueTime($valueTime)414 {415 $this->valueTime = $valueTime;416 return $this;417 }418 /**419 * @return \HL7\FHIR\STU3\FHIRElement\FHIRUnsignedInt420 */421 public function getValueUnsignedInt()422 {423 return $this->valueUnsignedInt;424 }425 /**426 * @param \HL7\FHIR\STU3\FHIRElement\FHIRUnsignedInt $valueUnsignedInt427 * @return $this428 */429 public function setValueUnsignedInt($valueUnsignedInt)430 {431 $this->valueUnsignedInt = $valueUnsignedInt;432 return $this;433 }434 /**435 * @return \HL7\FHIR\STU3\FHIRElement\FHIRUri436 */437 public function getValueUri()438 {439 return $this->valueUri;440 }441 /**442 * @param \HL7\FHIR\STU3\FHIRElement\FHIRUri $valueUri443 * @return $this444 */445 public function setValueUri($valueUri)446 {447 $this->valueUri = $valueUri;448 return $this;449 }450 /**451 * @return \HL7\FHIR\STU3\FHIRElement\FHIRAddress452 */453 public function getValueAddress()454 {455 return $this->valueAddress;456 }457 /**458 * @param \HL7\FHIR\STU3\FHIRElement\FHIRAddress $valueAddress459 * @return $this460 */461 public function setValueAddress($valueAddress)462 {463 $this->valueAddress = $valueAddress;464 return $this;465 }466 /**467 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRAge468 */469 public function getValueAge()470 {471 return $this->valueAge;472 }473 /**474 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRAge $valueAge475 * @return $this476 */477 public function setValueAge($valueAge)478 {479 $this->valueAge = $valueAge;480 return $this;481 }482 /**483 * @return \HL7\FHIR\STU3\FHIRElement\FHIRAnnotation484 */485 public function getValueAnnotation()486 {487 return $this->valueAnnotation;488 }489 /**490 * @param \HL7\FHIR\STU3\FHIRElement\FHIRAnnotation $valueAnnotation491 * @return $this492 */493 public function setValueAnnotation($valueAnnotation)494 {495 $this->valueAnnotation = $valueAnnotation;496 return $this;497 }498 /**499 * @return \HL7\FHIR\STU3\FHIRElement\FHIRAttachment500 */501 public function getValueAttachment()502 {503 return $this->valueAttachment;504 }505 /**506 * @param \HL7\FHIR\STU3\FHIRElement\FHIRAttachment $valueAttachment507 * @return $this508 */509 public function setValueAttachment($valueAttachment)510 {511 $this->valueAttachment = $valueAttachment;512 return $this;513 }514 /**515 * @return \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept516 */517 public function getValueCodeableConcept()518 {519 return $this->valueCodeableConcept;520 }521 /**522 * @param \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept $valueCodeableConcept523 * @return $this524 */525 public function setValueCodeableConcept($valueCodeableConcept)526 {527 $this->valueCodeableConcept = $valueCodeableConcept;528 return $this;529 }530 /**531 * @return \HL7\FHIR\STU3\FHIRElement\FHIRCoding532 */533 public function getValueCoding()534 {535 return $this->valueCoding;536 }537 /**538 * @param \HL7\FHIR\STU3\FHIRElement\FHIRCoding $valueCoding539 * @return $this540 */541 public function setValueCoding($valueCoding)542 {543 $this->valueCoding = $valueCoding;544 return $this;545 }546 /**547 * @return \HL7\FHIR\STU3\FHIRElement\FHIRContactPoint548 */549 public function getValueContactPoint()550 {551 return $this->valueContactPoint;552 }553 /**554 * @param \HL7\FHIR\STU3\FHIRElement\FHIRContactPoint $valueContactPoint555 * @return $this556 */557 public function setValueContactPoint($valueContactPoint)558 {559 $this->valueContactPoint = $valueContactPoint;560 return $this;561 }562 /**563 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRCount564 */565 public function getValueCount()566 {567 return $this->valueCount;568 }569 /**570 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRCount $valueCount571 * @return $this572 */573 public function setValueCount($valueCount)574 {575 $this->valueCount = $valueCount;576 return $this;577 }578 /**579 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDistance580 */581 public function getValueDistance()582 {583 return $this->valueDistance;584 }585 /**586 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDistance $valueDistance587 * @return $this588 */589 public function setValueDistance($valueDistance)590 {591 $this->valueDistance = $valueDistance;592 return $this;593 }594 /**595 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDuration596 */597 public function getValueDuration()598 {599 return $this->valueDuration;600 }601 /**602 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDuration $valueDuration603 * @return $this604 */605 public function setValueDuration($valueDuration)606 {607 $this->valueDuration = $valueDuration;608 return $this;609 }610 /**611 * @return \HL7\FHIR\STU3\FHIRElement\FHIRHumanName612 */613 public function getValueHumanName()614 {615 return $this->valueHumanName;616 }617 /**618 * @param \HL7\FHIR\STU3\FHIRElement\FHIRHumanName $valueHumanName619 * @return $this620 */621 public function setValueHumanName($valueHumanName)622 {623 $this->valueHumanName = $valueHumanName;624 return $this;625 }626 /**627 * @return \HL7\FHIR\STU3\FHIRElement\FHIRIdentifier628 */629 public function getValueIdentifier()630 {631 return $this->valueIdentifier;632 }633 /**634 * @param \HL7\FHIR\STU3\FHIRElement\FHIRIdentifier $valueIdentifier635 * @return $this636 */637 public function setValueIdentifier($valueIdentifier)638 {639 $this->valueIdentifier = $valueIdentifier;640 return $this;641 }642 /**643 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRMoney644 */645 public function getValueMoney()646 {647 return $this->valueMoney;648 }649 /**650 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRMoney $valueMoney651 * @return $this652 */653 public function setValueMoney($valueMoney)654 {655 $this->valueMoney = $valueMoney;656 return $this;657 }658 /**659 * @return \HL7\FHIR\STU3\FHIRElement\FHIRPeriod660 */661 public function getValuePeriod()662 {663 return $this->valuePeriod;664 }665 /**666 * @param \HL7\FHIR\STU3\FHIRElement\FHIRPeriod $valuePeriod667 * @return $this668 */669 public function setValuePeriod($valuePeriod)670 {671 $this->valuePeriod = $valuePeriod;672 return $this;673 }674 /**675 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity676 */677 public function getValueQuantity()678 {679 return $this->valueQuantity;680 }681 /**682 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity $valueQuantity683 * @return $this684 */685 public function setValueQuantity($valueQuantity)686 {687 $this->valueQuantity = $valueQuantity;688 return $this;689 }690 /**691 * @return \HL7\FHIR\STU3\FHIRElement\FHIRRange692 */693 public function getValueRange()694 {695 return $this->valueRange;696 }697 /**698 * @param \HL7\FHIR\STU3\FHIRElement\FHIRRange $valueRange699 * @return $this700 */701 public function setValueRange($valueRange)702 {703 $this->valueRange = $valueRange;704 return $this;705 }706 /**707 * @return \HL7\FHIR\STU3\FHIRElement\FHIRRatio708 */709 public function getValueRatio()710 {711 return $this->valueRatio;712 }713 /**714 * @param \HL7\FHIR\STU3\FHIRElement\FHIRRatio $valueRatio715 * @return $this716 */717 public function setValueRatio($valueRatio)718 {719 $this->valueRatio = $valueRatio;720 return $this;721 }722 /**723 * @return \HL7\FHIR\STU3\FHIRElement\FHIRReference724 */725 public function getValueReference()726 {727 return $this->valueReference;728 }729 /**730 * @param \HL7\FHIR\STU3\FHIRElement\FHIRReference $valueReference731 * @return $this732 */733 public function setValueReference($valueReference)734 {735 $this->valueReference = $valueReference;736 return $this;737 }738 /**739 * @return \HL7\FHIR\STU3\FHIRElement\FHIRSampledData740 */741 public function getValueSampledData()742 {743 return $this->valueSampledData;744 }745 /**746 * @param \HL7\FHIR\STU3\FHIRElement\FHIRSampledData $valueSampledData747 * @return $this748 */749 public function setValueSampledData($valueSampledData)750 {751 $this->valueSampledData = $valueSampledData;752 return $this;753 }754 /**755 * @return \HL7\FHIR\STU3\FHIRElement\FHIRSignature756 */757 public function getValueSignature()758 {759 return $this->valueSignature;760 }761 /**762 * @param \HL7\FHIR\STU3\FHIRElement\FHIRSignature $valueSignature763 * @return $this764 */765 public function setValueSignature($valueSignature)766 {767 $this->valueSignature = $valueSignature;768 return $this;769 }770 /**771 * @return \HL7\FHIR\STU3\FHIRElement\FHIRTiming772 */773 public function getValueTiming()774 {775 return $this->valueTiming;776 }777 /**778 * @param \HL7\FHIR\STU3\FHIRElement\FHIRTiming $valueTiming779 * @return $this780 */781 public function setValueTiming($valueTiming)782 {783 $this->valueTiming = $valueTiming;784 return $this;785 }786 /**787 * @return \HL7\FHIR\STU3\FHIRElement\FHIRMeta788 */789 public function getValueMeta()790 {791 return $this->valueMeta;792 }793 /**794 * @param \HL7\FHIR\STU3\FHIRElement\FHIRMeta $valueMeta795 * @return $this796 */797 public function setValueMeta($valueMeta)798 {799 $this->valueMeta = $valueMeta;800 return $this;801 }802 /**803 * @return string804 */805 public function get_fhirElementName()806 {807 return $this->_fhirElementName;808 }809 /**810 * @param mixed $data811 */812 public function __construct($data = [])813 {814 if (is_array($data)) {815 if (isset($data['label'])) {816 $this->setLabel($data['label']);817 }818 if (isset($data['valueBase64Binary'])) {819 $this->setValueBase64Binary($data['valueBase64Binary']);820 }821 if (isset($data['valueBoolean'])) {822 $this->setValueBoolean($data['valueBoolean']);823 }824 if (isset($data['valueCode'])) {825 $this->setValueCode($data['valueCode']);826 }827 if (isset($data['valueDate'])) {828 $this->setValueDate($data['valueDate']);829 }830 if (isset($data['valueDateTime'])) {831 $this->setValueDateTime($data['valueDateTime']);832 }833 if (isset($data['valueDecimal'])) {834 $this->setValueDecimal($data['valueDecimal']);835 }836 if (isset($data['valueId'])) {837 $this->setValueId($data['valueId']);838 }839 if (isset($data['valueInstant'])) {840 $this->setValueInstant($data['valueInstant']);841 }842 if (isset($data['valueInteger'])) {843 $this->setValueInteger($data['valueInteger']);844 }845 if (isset($data['valueMarkdown'])) {846 $this->setValueMarkdown($data['valueMarkdown']);847 }848 if (isset($data['valueOid'])) {849 $this->setValueOid($data['valueOid']);850 }851 if (isset($data['valuePositiveInt'])) {852 $this->setValuePositiveInt($data['valuePositiveInt']);853 }854 if (isset($data['valueString'])) {855 $this->setValueString($data['valueString']);856 }857 if (isset($data['valueTime'])) {858 $this->setValueTime($data['valueTime']);859 }860 if (isset($data['valueUnsignedInt'])) {861 $this->setValueUnsignedInt($data['valueUnsignedInt']);862 }863 if (isset($data['valueUri'])) {864 $this->setValueUri($data['valueUri']);865 }866 if (isset($data['valueAddress'])) {867 $this->setValueAddress($data['valueAddress']);868 }869 if (isset($data['valueAge'])) {870 $this->setValueAge($data['valueAge']);871 }872 if (isset($data['valueAnnotation'])) {873 $this->setValueAnnotation($data['valueAnnotation']);874 }875 if (isset($data['valueAttachment'])) {876 $this->setValueAttachment($data['valueAttachment']);877 }878 if (isset($data['valueCodeableConcept'])) {879 $this->setValueCodeableConcept($data['valueCodeableConcept']);880 }881 if (isset($data['valueCoding'])) {882 $this->setValueCoding($data['valueCoding']);883 }884 if (isset($data['valueContactPoint'])) {885 $this->setValueContactPoint($data['valueContactPoint']);886 }887 if (isset($data['valueCount'])) {888 $this->setValueCount($data['valueCount']);889 }890 if (isset($data['valueDistance'])) {891 $this->setValueDistance($data['valueDistance']);892 }893 if (isset($data['valueDuration'])) {894 $this->setValueDuration($data['valueDuration']);895 }896 if (isset($data['valueHumanName'])) {897 $this->setValueHumanName($data['valueHumanName']);898 }899 if (isset($data['valueIdentifier'])) {900 $this->setValueIdentifier($data['valueIdentifier']);901 }902 if (isset($data['valueMoney'])) {903 $this->setValueMoney($data['valueMoney']);904 }905 if (isset($data['valuePeriod'])) {906 $this->setValuePeriod($data['valuePeriod']);907 }908 if (isset($data['valueQuantity'])) {909 $this->setValueQuantity($data['valueQuantity']);910 }911 if (isset($data['valueRange'])) {912 $this->setValueRange($data['valueRange']);913 }914 if (isset($data['valueRatio'])) {915 $this->setValueRatio($data['valueRatio']);916 }917 if (isset($data['valueReference'])) {918 $this->setValueReference($data['valueReference']);919 }920 if (isset($data['valueSampledData'])) {921 $this->setValueSampledData($data['valueSampledData']);922 }923 if (isset($data['valueSignature'])) {924 $this->setValueSignature($data['valueSignature']);925 }926 if (isset($data['valueTiming'])) {927 $this->setValueTiming($data['valueTiming']);928 }929 if (isset($data['valueMeta'])) {930 $this->setValueMeta($data['valueMeta']);931 }932 } else if (null !== $data) {933 throw new \InvalidArgumentException('$data expected to be array of values, saw "'.gettype($data).'"');934 }935 parent::__construct($data);936 }937 /**938 * @return string939 */940 public function __toString()941 {942 return $this->get_fhirElementName();943 }944 /**945 * @return array946 */947 public function jsonSerialize()948 {949 $json = parent::jsonSerialize();950 if (isset($this->label)) {951 $json['label'] = $this->label;952 }953 if (isset($this->valueBase64Binary)) {954 $json['valueBase64Binary'] = $this->valueBase64Binary;955 }956 if (isset($this->valueBoolean)) {957 $json['valueBoolean'] = $this->valueBoolean;958 }959 if (isset($this->valueCode)) {960 $json['valueCode'] = $this->valueCode;961 }962 if (isset($this->valueDate)) {963 $json['valueDate'] = $this->valueDate;964 }965 if (isset($this->valueDateTime)) {966 $json['valueDateTime'] = $this->valueDateTime;967 }968 if (isset($this->valueDecimal)) {969 $json['valueDecimal'] = $this->valueDecimal;970 }971 if (isset($this->valueId)) {972 $json['valueId'] = $this->valueId;973 }974 if (isset($this->valueInstant)) {975 $json['valueInstant'] = $this->valueInstant;976 }977 if (isset($this->valueInteger)) {978 $json['valueInteger'] = $this->valueInteger;979 }980 if (isset($this->valueMarkdown)) {981 $json['valueMarkdown'] = $this->valueMarkdown;982 }983 if (isset($this->valueOid)) {984 $json['valueOid'] = $this->valueOid;985 }986 if (isset($this->valuePositiveInt)) {987 $json['valuePositiveInt'] = $this->valuePositiveInt;988 }989 if (isset($this->valueString)) {990 $json['valueString'] = $this->valueString;991 }992 if (isset($this->valueTime)) {993 $json['valueTime'] = $this->valueTime;994 }995 if (isset($this->valueUnsignedInt)) {996 $json['valueUnsignedInt'] = $this->valueUnsignedInt;997 }998 if (isset($this->valueUri)) {999 $json['valueUri'] = $this->valueUri;1000 }1001 if (isset($this->valueAddress)) {1002 $json['valueAddress'] = $this->valueAddress;1003 }1004 if (isset($this->valueAge)) {1005 $json['valueAge'] = $this->valueAge;1006 }1007 if (isset($this->valueAnnotation)) {1008 $json['valueAnnotation'] = $this->valueAnnotation;1009 }1010 if (isset($this->valueAttachment)) {1011 $json['valueAttachment'] = $this->valueAttachment;1012 }1013 if (isset($this->valueCodeableConcept)) {1014 $json['valueCodeableConcept'] = $this->valueCodeableConcept;1015 }1016 if (isset($this->valueCoding)) {1017 $json['valueCoding'] = $this->valueCoding;1018 }1019 if (isset($this->valueContactPoint)) {1020 $json['valueContactPoint'] = $this->valueContactPoint;1021 }1022 if (isset($this->valueCount)) {1023 $json['valueCount'] = $this->valueCount;1024 }1025 if (isset($this->valueDistance)) {1026 $json['valueDistance'] = $this->valueDistance;1027 }1028 if (isset($this->valueDuration)) {1029 $json['valueDuration'] = $this->valueDuration;1030 }1031 if (isset($this->valueHumanName)) {1032 $json['valueHumanName'] = $this->valueHumanName;1033 }1034 if (isset($this->valueIdentifier)) {1035 $json['valueIdentifier'] = $this->valueIdentifier;1036 }1037 if (isset($this->valueMoney)) {1038 $json['valueMoney'] = $this->valueMoney;1039 }1040 if (isset($this->valuePeriod)) {1041 $json['valuePeriod'] = $this->valuePeriod;1042 }1043 if (isset($this->valueQuantity)) {1044 $json['valueQuantity'] = $this->valueQuantity;1045 }1046 if (isset($this->valueRange)) {1047 $json['valueRange'] = $this->valueRange;1048 }1049 if (isset($this->valueRatio)) {1050 $json['valueRatio'] = $this->valueRatio;1051 }1052 if (isset($this->valueReference)) {1053 $json['valueReference'] = $this->valueReference;1054 }1055 if (isset($this->valueSampledData)) {1056 $json['valueSampledData'] = $this->valueSampledData;1057 }1058 if (isset($this->valueSignature)) {1059 $json['valueSignature'] = $this->valueSignature;1060 }1061 if (isset($this->valueTiming)) {1062 $json['valueTiming'] = $this->valueTiming;1063 }1064 if (isset($this->valueMeta)) {1065 $json['valueMeta'] = $this->valueMeta;1066 }1067 return $json;1068 }1069 /**1070 * @param boolean $returnSXE1071 * @param \SimpleXMLElement $sxe1072 * @return string|\SimpleXMLElement1073 */1074 public function xmlSerialize($returnSXE = false, $sxe = null)1075 {1076 if (null === $sxe) {1077 $sxe = new \SimpleXMLElement('<ElementDefinitionExample xmlns="http://hl7.org/fhir"></ElementDefinitionExample>');1078 }1079 parent::xmlSerialize(true, $sxe);1080 if (isset($this->label)) {1081 $this->label->xmlSerialize(true, $sxe->addChild('label'));1082 }1083 if (isset($this->valueBase64Binary)) {1084 $this->valueBase64Binary->xmlSerialize(true, $sxe->addChild('valueBase64Binary'));1085 }1086 if (isset($this->valueBoolean)) {1087 $this->valueBoolean->xmlSerialize(true, $sxe->addChild('valueBoolean'));1088 }1089 if (isset($this->valueCode)) {1090 $this->valueCode->xmlSerialize(true, $sxe->addChild('valueCode'));1091 }1092 if (isset($this->valueDate)) {1093 $this->valueDate->xmlSerialize(true, $sxe->addChild('valueDate'));1094 }1095 if (isset($this->valueDateTime)) {1096 $this->valueDateTime->xmlSerialize(true, $sxe->addChild('valueDateTime'));1097 }1098 if (isset($this->valueDecimal)) {1099 $this->valueDecimal->xmlSerialize(true, $sxe->addChild('valueDecimal'));1100 }1101 if (isset($this->valueId)) {1102 $this->valueId->xmlSerialize(true, $sxe->addChild('valueId'));1103 }1104 if (isset($this->valueInstant)) {1105 $this->valueInstant->xmlSerialize(true, $sxe->addChild('valueInstant'));1106 }1107 if (isset($this->valueInteger)) {1108 $this->valueInteger->xmlSerialize(true, $sxe->addChild('valueInteger'));1109 }1110 if (isset($this->valueMarkdown)) {1111 $this->valueMarkdown->xmlSerialize(true, $sxe->addChild('valueMarkdown'));1112 }1113 if (isset($this->valueOid)) {1114 $this->valueOid->xmlSerialize(true, $sxe->addChild('valueOid'));1115 }1116 if (isset($this->valuePositiveInt)) {1117 $this->valuePositiveInt->xmlSerialize(true, $sxe->addChild('valuePositiveInt'));1118 }1119 if (isset($this->valueString)) {1120 $this->valueString->xmlSerialize(true, $sxe->addChild('valueString'));1121 }1122 if (isset($this->valueTime)) {1123 $this->valueTime->xmlSerialize(true, $sxe->addChild('valueTime'));1124 }1125 if (isset($this->valueUnsignedInt)) {1126 $this->valueUnsignedInt->xmlSerialize(true, $sxe->addChild('valueUnsignedInt'));1127 }1128 if (isset($this->valueUri)) {1129 $this->valueUri->xmlSerialize(true, $sxe->addChild('valueUri'));1130 }1131 if (isset($this->valueAddress)) {1132 $this->valueAddress->xmlSerialize(true, $sxe->addChild('valueAddress'));1133 }1134 if (isset($this->valueAge)) {1135 $this->valueAge->xmlSerialize(true, $sxe->addChild('valueAge'));1136 }1137 if (isset($this->valueAnnotation)) {1138 $this->valueAnnotation->xmlSerialize(true, $sxe->addChild('valueAnnotation'));1139 }1140 if (isset($this->valueAttachment)) {1141 $this->valueAttachment->xmlSerialize(true, $sxe->addChild('valueAttachment'));1142 }1143 if (isset($this->valueCodeableConcept)) {1144 $this->valueCodeableConcept->xmlSerialize(true, $sxe->addChild('valueCodeableConcept'));1145 }1146 if (isset($this->valueCoding)) {1147 $this->valueCoding->xmlSerialize(true, $sxe->addChild('valueCoding'));1148 }1149 if (isset($this->valueContactPoint)) {1150 $this->valueContactPoint->xmlSerialize(true, $sxe->addChild('valueContactPoint'));1151 }1152 if (isset($this->valueCount)) {1153 $this->valueCount->xmlSerialize(true, $sxe->addChild('valueCount'));1154 }1155 if (isset($this->valueDistance)) {1156 $this->valueDistance->xmlSerialize(true, $sxe->addChild('valueDistance'));1157 }1158 if (isset($this->valueDuration)) {1159 $this->valueDuration->xmlSerialize(true, $sxe->addChild('valueDuration'));1160 }1161 if (isset($this->valueHumanName)) {1162 $this->valueHumanName->xmlSerialize(true, $sxe->addChild('valueHumanName'));1163 }1164 if (isset($this->valueIdentifier)) {1165 $this->valueIdentifier->xmlSerialize(true, $sxe->addChild('valueIdentifier'));1166 }1167 if (isset($this->valueMoney)) {1168 $this->valueMoney->xmlSerialize(true, $sxe->addChild('valueMoney'));1169 }1170 if (isset($this->valuePeriod)) {1171 $this->valuePeriod->xmlSerialize(true, $sxe->addChild('valuePeriod'));1172 }1173 if (isset($this->valueQuantity)) {1174 $this->valueQuantity->xmlSerialize(true, $sxe->addChild('valueQuantity'));1175 }1176 if (isset($this->valueRange)) {1177 $this->valueRange->xmlSerialize(true, $sxe->addChild('valueRange'));1178 }1179 if (isset($this->valueRatio)) {1180 $this->valueRatio->xmlSerialize(true, $sxe->addChild('valueRatio'));1181 }1182 if (isset($this->valueReference)) {1183 $this->valueReference->xmlSerialize(true, $sxe->addChild('valueReference'));1184 }1185 if (isset($this->valueSampledData)) {1186 $this->valueSampledData->xmlSerialize(true, $sxe->addChild('valueSampledData'));1187 }1188 if (isset($this->valueSignature)) {1189 $this->valueSignature->xmlSerialize(true, $sxe->addChild('valueSignature'));1190 }1191 if (isset($this->valueTiming)) {1192 $this->valueTiming->xmlSerialize(true, $sxe->addChild('valueTiming'));1193 }1194 if (isset($this->valueMeta)) {1195 $this->valueMeta->xmlSerialize(true, $sxe->addChild('valueMeta'));1196 }1197 if ($returnSXE) {1198 return $sxe;1199 }1200 return $sxe->saveXML();1201 }1202}...

Full Screen

Full Screen

FHIRExtension.php

Source:FHIRExtension.php Github

copy

Full Screen

...7 */8use HL7\FHIR\STU3\FHIRElement;9/**10 * Optional Extension Element - found in all resources.11 * If the element is present, it must have a value for at least one of the defined elements, an @id referenced from the Narrative, or extensions12 */13class FHIRExtension extends FHIRElement implements \JsonSerializable14{15 /**16 * @var \HL7\FHIR\STU3\FHIRElement\FHIRBase64Binary17 */18 public $valueBase64Binary = null;19 /**20 * @var \HL7\FHIR\STU3\FHIRElement\FHIRBoolean21 */22 public $valueBoolean = null;23 /**24 * @var \HL7\FHIR\STU3\FHIRElement\FHIRCode25 */26 public $valueCode = null;27 /**28 * @var \HL7\FHIR\STU3\FHIRElement\FHIRDate29 */30 public $valueDate = null;31 /**32 * @var \HL7\FHIR\STU3\FHIRElement\FHIRDateTime33 */34 public $valueDateTime = null;35 /**36 * @var \HL7\FHIR\STU3\FHIRElement\FHIRDecimal37 */38 public $valueDecimal = null;39 /**40 * @var \HL7\FHIR\STU3\FHIRElement\FHIRId41 */42 public $valueId = null;43 /**44 * @var \HL7\FHIR\STU3\FHIRElement\FHIRInstant45 */46 public $valueInstant = null;47 /**48 * @var \HL7\FHIR\STU3\FHIRElement\FHIRInteger49 */50 public $valueInteger = null;51 /**52 * @var \HL7\FHIR\STU3\FHIRElement\FHIRMarkdown53 */54 public $valueMarkdown = null;55 /**56 * @var \HL7\FHIR\STU3\FHIRElement\FHIROid57 */58 public $valueOid = null;59 /**60 * @var \HL7\FHIR\STU3\FHIRElement\FHIRPositiveInt61 */62 public $valuePositiveInt = null;63 /**64 * @var \HL7\FHIR\STU3\FHIRElement\FHIRString65 */66 public $valueString = null;67 /**68 * @var \HL7\FHIR\STU3\FHIRElement\FHIRTime69 */70 public $valueTime = null;71 /**72 * @var \HL7\FHIR\STU3\FHIRElement\FHIRUnsignedInt73 */74 public $valueUnsignedInt = null;75 /**76 * @var \HL7\FHIR\STU3\FHIRElement\FHIRUri77 */78 public $valueUri = null;79 /**80 * @var \HL7\FHIR\STU3\FHIRElement\FHIRAddress81 */82 public $valueAddress = null;83 /**84 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRAge85 */86 public $valueAge = null;87 /**88 * @var \HL7\FHIR\STU3\FHIRElement\FHIRAnnotation89 */90 public $valueAnnotation = null;91 /**92 * @var \HL7\FHIR\STU3\FHIRElement\FHIRAttachment93 */94 public $valueAttachment = null;95 /**96 * @var \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept97 */98 public $valueCodeableConcept = null;99 /**100 * @var \HL7\FHIR\STU3\FHIRElement\FHIRCoding101 */102 public $valueCoding = null;103 /**104 * @var \HL7\FHIR\STU3\FHIRElement\FHIRContactPoint105 */106 public $valueContactPoint = null;107 /**108 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRCount109 */110 public $valueCount = null;111 /**112 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDistance113 */114 public $valueDistance = null;115 /**116 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDuration117 */118 public $valueDuration = null;119 /**120 * @var \HL7\FHIR\STU3\FHIRElement\FHIRHumanName121 */122 public $valueHumanName = null;123 /**124 * @var \HL7\FHIR\STU3\FHIRElement\FHIRIdentifier125 */126 public $valueIdentifier = null;127 /**128 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRMoney129 */130 public $valueMoney = null;131 /**132 * @var \HL7\FHIR\STU3\FHIRElement\FHIRPeriod133 */134 public $valuePeriod = null;135 /**136 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity137 */138 public $valueQuantity = null;139 /**140 * @var \HL7\FHIR\STU3\FHIRElement\FHIRRange141 */142 public $valueRange = null;143 /**144 * @var \HL7\FHIR\STU3\FHIRElement\FHIRRatio145 */146 public $valueRatio = null;147 /**148 * @var \HL7\FHIR\STU3\FHIRElement\FHIRReference149 */150 public $valueReference = null;151 /**152 * @var \HL7\FHIR\STU3\FHIRElement\FHIRSampledData153 */154 public $valueSampledData = null;155 /**156 * @var \HL7\FHIR\STU3\FHIRElement\FHIRSignature157 */158 public $valueSignature = null;159 /**160 * @var \HL7\FHIR\STU3\FHIRElement\FHIRTiming161 */162 public $valueTiming = null;163 /**164 * @var \HL7\FHIR\STU3\FHIRElement\FHIRMeta165 */166 public $valueMeta = null;167 /**168 * @var string169 */170 public $url = null;171 /**172 * @var string173 */174 private $_fhirElementName = 'Extension';175 /**176 * @return \HL7\FHIR\STU3\FHIRElement\FHIRBase64Binary177 */178 public function getValueBase64Binary()179 {180 return $this->valueBase64Binary;181 }182 /**183 * @param \HL7\FHIR\STU3\FHIRElement\FHIRBase64Binary $valueBase64Binary184 * @return $this185 */186 public function setValueBase64Binary($valueBase64Binary)187 {188 $this->valueBase64Binary = $valueBase64Binary;189 return $this;190 }191 /**192 * @return \HL7\FHIR\STU3\FHIRElement\FHIRBoolean193 */194 public function getValueBoolean()195 {196 return $this->valueBoolean;197 }198 /**199 * @param \HL7\FHIR\STU3\FHIRElement\FHIRBoolean $valueBoolean200 * @return $this201 */202 public function setValueBoolean($valueBoolean)203 {204 $this->valueBoolean = $valueBoolean;205 return $this;206 }207 /**208 * @return \HL7\FHIR\STU3\FHIRElement\FHIRCode209 */210 public function getValueCode()211 {212 return $this->valueCode;213 }214 /**215 * @param \HL7\FHIR\STU3\FHIRElement\FHIRCode $valueCode216 * @return $this217 */218 public function setValueCode($valueCode)219 {220 $this->valueCode = $valueCode;221 return $this;222 }223 /**224 * @return \HL7\FHIR\STU3\FHIRElement\FHIRDate225 */226 public function getValueDate()227 {228 return $this->valueDate;229 }230 /**231 * @param \HL7\FHIR\STU3\FHIRElement\FHIRDate $valueDate232 * @return $this233 */234 public function setValueDate($valueDate)235 {236 $this->valueDate = $valueDate;237 return $this;238 }239 /**240 * @return \HL7\FHIR\STU3\FHIRElement\FHIRDateTime241 */242 public function getValueDateTime()243 {244 return $this->valueDateTime;245 }246 /**247 * @param \HL7\FHIR\STU3\FHIRElement\FHIRDateTime $valueDateTime248 * @return $this249 */250 public function setValueDateTime($valueDateTime)251 {252 $this->valueDateTime = $valueDateTime;253 return $this;254 }255 /**256 * @return \HL7\FHIR\STU3\FHIRElement\FHIRDecimal257 */258 public function getValueDecimal()259 {260 return $this->valueDecimal;261 }262 /**263 * @param \HL7\FHIR\STU3\FHIRElement\FHIRDecimal $valueDecimal264 * @return $this265 */266 public function setValueDecimal($valueDecimal)267 {268 $this->valueDecimal = $valueDecimal;269 return $this;270 }271 /**272 * @return \HL7\FHIR\STU3\FHIRElement\FHIRId273 */274 public function getValueId()275 {276 return $this->valueId;277 }278 /**279 * @param \HL7\FHIR\STU3\FHIRElement\FHIRId $valueId280 * @return $this281 */282 public function setValueId($valueId)283 {284 $this->valueId = $valueId;285 return $this;286 }287 /**288 * @return \HL7\FHIR\STU3\FHIRElement\FHIRInstant289 */290 public function getValueInstant()291 {292 return $this->valueInstant;293 }294 /**295 * @param \HL7\FHIR\STU3\FHIRElement\FHIRInstant $valueInstant296 * @return $this297 */298 public function setValueInstant($valueInstant)299 {300 $this->valueInstant = $valueInstant;301 return $this;302 }303 /**304 * @return \HL7\FHIR\STU3\FHIRElement\FHIRInteger305 */306 public function getValueInteger()307 {308 return $this->valueInteger;309 }310 /**311 * @param \HL7\FHIR\STU3\FHIRElement\FHIRInteger $valueInteger312 * @return $this313 */314 public function setValueInteger($valueInteger)315 {316 $this->valueInteger = $valueInteger;317 return $this;318 }319 /**320 * @return \HL7\FHIR\STU3\FHIRElement\FHIRMarkdown321 */322 public function getValueMarkdown()323 {324 return $this->valueMarkdown;325 }326 /**327 * @param \HL7\FHIR\STU3\FHIRElement\FHIRMarkdown $valueMarkdown328 * @return $this329 */330 public function setValueMarkdown($valueMarkdown)331 {332 $this->valueMarkdown = $valueMarkdown;333 return $this;334 }335 /**336 * @return \HL7\FHIR\STU3\FHIRElement\FHIROid337 */338 public function getValueOid()339 {340 return $this->valueOid;341 }342 /**343 * @param \HL7\FHIR\STU3\FHIRElement\FHIROid $valueOid344 * @return $this345 */346 public function setValueOid($valueOid)347 {348 $this->valueOid = $valueOid;349 return $this;350 }351 /**352 * @return \HL7\FHIR\STU3\FHIRElement\FHIRPositiveInt353 */354 public function getValuePositiveInt()355 {356 return $this->valuePositiveInt;357 }358 /**359 * @param \HL7\FHIR\STU3\FHIRElement\FHIRPositiveInt $valuePositiveInt360 * @return $this361 */362 public function setValuePositiveInt($valuePositiveInt)363 {364 $this->valuePositiveInt = $valuePositiveInt;365 return $this;366 }367 /**368 * @return \HL7\FHIR\STU3\FHIRElement\FHIRString369 */370 public function getValueString()371 {372 return $this->valueString;373 }374 /**375 * @param \HL7\FHIR\STU3\FHIRElement\FHIRString $valueString376 * @return $this377 */378 public function setValueString($valueString)379 {380 $this->valueString = $valueString;381 return $this;382 }383 /**384 * @return \HL7\FHIR\STU3\FHIRElement\FHIRTime385 */386 public function getValueTime()387 {388 return $this->valueTime;389 }390 /**391 * @param \HL7\FHIR\STU3\FHIRElement\FHIRTime $valueTime392 * @return $this393 */394 public function setValueTime($valueTime)395 {396 $this->valueTime = $valueTime;397 return $this;398 }399 /**400 * @return \HL7\FHIR\STU3\FHIRElement\FHIRUnsignedInt401 */402 public function getValueUnsignedInt()403 {404 return $this->valueUnsignedInt;405 }406 /**407 * @param \HL7\FHIR\STU3\FHIRElement\FHIRUnsignedInt $valueUnsignedInt408 * @return $this409 */410 public function setValueUnsignedInt($valueUnsignedInt)411 {412 $this->valueUnsignedInt = $valueUnsignedInt;413 return $this;414 }415 /**416 * @return \HL7\FHIR\STU3\FHIRElement\FHIRUri417 */418 public function getValueUri()419 {420 return $this->valueUri;421 }422 /**423 * @param \HL7\FHIR\STU3\FHIRElement\FHIRUri $valueUri424 * @return $this425 */426 public function setValueUri($valueUri)427 {428 $this->valueUri = $valueUri;429 return $this;430 }431 /**432 * @return \HL7\FHIR\STU3\FHIRElement\FHIRAddress433 */434 public function getValueAddress()435 {436 return $this->valueAddress;437 }438 /**439 * @param \HL7\FHIR\STU3\FHIRElement\FHIRAddress $valueAddress440 * @return $this441 */442 public function setValueAddress($valueAddress)443 {444 $this->valueAddress = $valueAddress;445 return $this;446 }447 /**448 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRAge449 */450 public function getValueAge()451 {452 return $this->valueAge;453 }454 /**455 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRAge $valueAge456 * @return $this457 */458 public function setValueAge($valueAge)459 {460 $this->valueAge = $valueAge;461 return $this;462 }463 /**464 * @return \HL7\FHIR\STU3\FHIRElement\FHIRAnnotation465 */466 public function getValueAnnotation()467 {468 return $this->valueAnnotation;469 }470 /**471 * @param \HL7\FHIR\STU3\FHIRElement\FHIRAnnotation $valueAnnotation472 * @return $this473 */474 public function setValueAnnotation($valueAnnotation)475 {476 $this->valueAnnotation = $valueAnnotation;477 return $this;478 }479 /**480 * @return \HL7\FHIR\STU3\FHIRElement\FHIRAttachment481 */482 public function getValueAttachment()483 {484 return $this->valueAttachment;485 }486 /**487 * @param \HL7\FHIR\STU3\FHIRElement\FHIRAttachment $valueAttachment488 * @return $this489 */490 public function setValueAttachment($valueAttachment)491 {492 $this->valueAttachment = $valueAttachment;493 return $this;494 }495 /**496 * @return \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept497 */498 public function getValueCodeableConcept()499 {500 return $this->valueCodeableConcept;501 }502 /**503 * @param \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept $valueCodeableConcept504 * @return $this505 */506 public function setValueCodeableConcept($valueCodeableConcept)507 {508 $this->valueCodeableConcept = $valueCodeableConcept;509 return $this;510 }511 /**512 * @return \HL7\FHIR\STU3\FHIRElement\FHIRCoding513 */514 public function getValueCoding()515 {516 return $this->valueCoding;517 }518 /**519 * @param \HL7\FHIR\STU3\FHIRElement\FHIRCoding $valueCoding520 * @return $this521 */522 public function setValueCoding($valueCoding)523 {524 $this->valueCoding = $valueCoding;525 return $this;526 }527 /**528 * @return \HL7\FHIR\STU3\FHIRElement\FHIRContactPoint529 */530 public function getValueContactPoint()531 {532 return $this->valueContactPoint;533 }534 /**535 * @param \HL7\FHIR\STU3\FHIRElement\FHIRContactPoint $valueContactPoint536 * @return $this537 */538 public function setValueContactPoint($valueContactPoint)539 {540 $this->valueContactPoint = $valueContactPoint;541 return $this;542 }543 /**544 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRCount545 */546 public function getValueCount()547 {548 return $this->valueCount;549 }550 /**551 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRCount $valueCount552 * @return $this553 */554 public function setValueCount($valueCount)555 {556 $this->valueCount = $valueCount;557 return $this;558 }559 /**560 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDistance561 */562 public function getValueDistance()563 {564 return $this->valueDistance;565 }566 /**567 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDistance $valueDistance568 * @return $this569 */570 public function setValueDistance($valueDistance)571 {572 $this->valueDistance = $valueDistance;573 return $this;574 }575 /**576 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDuration577 */578 public function getValueDuration()579 {580 return $this->valueDuration;581 }582 /**583 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDuration $valueDuration584 * @return $this585 */586 public function setValueDuration($valueDuration)587 {588 $this->valueDuration = $valueDuration;589 return $this;590 }591 /**592 * @return \HL7\FHIR\STU3\FHIRElement\FHIRHumanName593 */594 public function getValueHumanName()595 {596 return $this->valueHumanName;597 }598 /**599 * @param \HL7\FHIR\STU3\FHIRElement\FHIRHumanName $valueHumanName600 * @return $this601 */602 public function setValueHumanName($valueHumanName)603 {604 $this->valueHumanName = $valueHumanName;605 return $this;606 }607 /**608 * @return \HL7\FHIR\STU3\FHIRElement\FHIRIdentifier609 */610 public function getValueIdentifier()611 {612 return $this->valueIdentifier;613 }614 /**615 * @param \HL7\FHIR\STU3\FHIRElement\FHIRIdentifier $valueIdentifier616 * @return $this617 */618 public function setValueIdentifier($valueIdentifier)619 {620 $this->valueIdentifier = $valueIdentifier;621 return $this;622 }623 /**624 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRMoney625 */626 public function getValueMoney()627 {628 return $this->valueMoney;629 }630 /**631 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRMoney $valueMoney632 * @return $this633 */634 public function setValueMoney($valueMoney)635 {636 $this->valueMoney = $valueMoney;637 return $this;638 }639 /**640 * @return \HL7\FHIR\STU3\FHIRElement\FHIRPeriod641 */642 public function getValuePeriod()643 {644 return $this->valuePeriod;645 }646 /**647 * @param \HL7\FHIR\STU3\FHIRElement\FHIRPeriod $valuePeriod648 * @return $this649 */650 public function setValuePeriod($valuePeriod)651 {652 $this->valuePeriod = $valuePeriod;653 return $this;654 }655 /**656 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity657 */658 public function getValueQuantity()659 {660 return $this->valueQuantity;661 }662 /**663 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity $valueQuantity664 * @return $this665 */666 public function setValueQuantity($valueQuantity)667 {668 $this->valueQuantity = $valueQuantity;669 return $this;670 }671 /**672 * @return \HL7\FHIR\STU3\FHIRElement\FHIRRange673 */674 public function getValueRange()675 {676 return $this->valueRange;677 }678 /**679 * @param \HL7\FHIR\STU3\FHIRElement\FHIRRange $valueRange680 * @return $this681 */682 public function setValueRange($valueRange)683 {684 $this->valueRange = $valueRange;685 return $this;686 }687 /**688 * @return \HL7\FHIR\STU3\FHIRElement\FHIRRatio689 */690 public function getValueRatio()691 {692 return $this->valueRatio;693 }694 /**695 * @param \HL7\FHIR\STU3\FHIRElement\FHIRRatio $valueRatio696 * @return $this697 */698 public function setValueRatio($valueRatio)699 {700 $this->valueRatio = $valueRatio;701 return $this;702 }703 /**704 * @return \HL7\FHIR\STU3\FHIRElement\FHIRReference705 */706 public function getValueReference()707 {708 return $this->valueReference;709 }710 /**711 * @param \HL7\FHIR\STU3\FHIRElement\FHIRReference $valueReference712 * @return $this713 */714 public function setValueReference($valueReference)715 {716 $this->valueReference = $valueReference;717 return $this;718 }719 /**720 * @return \HL7\FHIR\STU3\FHIRElement\FHIRSampledData721 */722 public function getValueSampledData()723 {724 return $this->valueSampledData;725 }726 /**727 * @param \HL7\FHIR\STU3\FHIRElement\FHIRSampledData $valueSampledData728 * @return $this729 */730 public function setValueSampledData($valueSampledData)731 {732 $this->valueSampledData = $valueSampledData;733 return $this;734 }735 /**736 * @return \HL7\FHIR\STU3\FHIRElement\FHIRSignature737 */738 public function getValueSignature()739 {740 return $this->valueSignature;741 }742 /**743 * @param \HL7\FHIR\STU3\FHIRElement\FHIRSignature $valueSignature744 * @return $this745 */746 public function setValueSignature($valueSignature)747 {748 $this->valueSignature = $valueSignature;749 return $this;750 }751 /**752 * @return \HL7\FHIR\STU3\FHIRElement\FHIRTiming753 */754 public function getValueTiming()755 {756 return $this->valueTiming;757 }758 /**759 * @param \HL7\FHIR\STU3\FHIRElement\FHIRTiming $valueTiming760 * @return $this761 */762 public function setValueTiming($valueTiming)763 {764 $this->valueTiming = $valueTiming;765 return $this;766 }767 /**768 * @return \HL7\FHIR\STU3\FHIRElement\FHIRMeta769 */770 public function getValueMeta()771 {772 return $this->valueMeta;773 }774 /**775 * @param \HL7\FHIR\STU3\FHIRElement\FHIRMeta $valueMeta776 * @return $this777 */778 public function setValueMeta($valueMeta)779 {780 $this->valueMeta = $valueMeta;781 return $this;782 }783 /**784 * @return string785 */786 public function getUrl()787 {788 return $this->url;789 }790 /**791 * @param string $url792 * @return $this793 */794 public function setUrl($url)795 {796 $this->url = $url;797 return $this;798 }799 /**800 * @return string801 */802 public function get_fhirElementName()803 {804 return $this->_fhirElementName;805 }806 /**807 * @param mixed $data808 */809 public function __construct($data = [])810 {811 if (is_array($data)) {812 if (isset($data['valueBase64Binary'])) {813 $this->setValueBase64Binary($data['valueBase64Binary']);814 }815 if (isset($data['valueBoolean'])) {816 $this->setValueBoolean($data['valueBoolean']);817 }818 if (isset($data['valueCode'])) {819 $this->setValueCode($data['valueCode']);820 }821 if (isset($data['valueDate'])) {822 $this->setValueDate($data['valueDate']);823 }824 if (isset($data['valueDateTime'])) {825 $this->setValueDateTime($data['valueDateTime']);826 }827 if (isset($data['valueDecimal'])) {828 $this->setValueDecimal($data['valueDecimal']);829 }830 if (isset($data['valueId'])) {831 $this->setValueId($data['valueId']);832 }833 if (isset($data['valueInstant'])) {834 $this->setValueInstant($data['valueInstant']);835 }836 if (isset($data['valueInteger'])) {837 $this->setValueInteger($data['valueInteger']);838 }839 if (isset($data['valueMarkdown'])) {840 $this->setValueMarkdown($data['valueMarkdown']);841 }842 if (isset($data['valueOid'])) {843 $this->setValueOid($data['valueOid']);844 }845 if (isset($data['valuePositiveInt'])) {846 $this->setValuePositiveInt($data['valuePositiveInt']);847 }848 if (isset($data['valueString'])) {849 $this->setValueString($data['valueString']);850 }851 if (isset($data['valueTime'])) {852 $this->setValueTime($data['valueTime']);853 }854 if (isset($data['valueUnsignedInt'])) {855 $this->setValueUnsignedInt($data['valueUnsignedInt']);856 }857 if (isset($data['valueUri'])) {858 $this->setValueUri($data['valueUri']);859 }860 if (isset($data['valueAddress'])) {861 $this->setValueAddress($data['valueAddress']);862 }863 if (isset($data['valueAge'])) {864 $this->setValueAge($data['valueAge']);865 }866 if (isset($data['valueAnnotation'])) {867 $this->setValueAnnotation($data['valueAnnotation']);868 }869 if (isset($data['valueAttachment'])) {870 $this->setValueAttachment($data['valueAttachment']);871 }872 if (isset($data['valueCodeableConcept'])) {873 $this->setValueCodeableConcept($data['valueCodeableConcept']);874 }875 if (isset($data['valueCoding'])) {876 $this->setValueCoding($data['valueCoding']);877 }878 if (isset($data['valueContactPoint'])) {879 $this->setValueContactPoint($data['valueContactPoint']);880 }881 if (isset($data['valueCount'])) {882 $this->setValueCount($data['valueCount']);883 }884 if (isset($data['valueDistance'])) {885 $this->setValueDistance($data['valueDistance']);886 }887 if (isset($data['valueDuration'])) {888 $this->setValueDuration($data['valueDuration']);889 }890 if (isset($data['valueHumanName'])) {891 $this->setValueHumanName($data['valueHumanName']);892 }893 if (isset($data['valueIdentifier'])) {894 $this->setValueIdentifier($data['valueIdentifier']);895 }896 if (isset($data['valueMoney'])) {897 $this->setValueMoney($data['valueMoney']);898 }899 if (isset($data['valuePeriod'])) {900 $this->setValuePeriod($data['valuePeriod']);901 }902 if (isset($data['valueQuantity'])) {903 $this->setValueQuantity($data['valueQuantity']);904 }905 if (isset($data['valueRange'])) {906 $this->setValueRange($data['valueRange']);907 }908 if (isset($data['valueRatio'])) {909 $this->setValueRatio($data['valueRatio']);910 }911 if (isset($data['valueReference'])) {912 $this->setValueReference($data['valueReference']);913 }914 if (isset($data['valueSampledData'])) {915 $this->setValueSampledData($data['valueSampledData']);916 }917 if (isset($data['valueSignature'])) {918 $this->setValueSignature($data['valueSignature']);919 }920 if (isset($data['valueTiming'])) {921 $this->setValueTiming($data['valueTiming']);922 }923 if (isset($data['valueMeta'])) {924 $this->setValueMeta($data['valueMeta']);925 }926 if (isset($data['url'])) {927 $this->setUrl($data['url']);928 }929 } else if (null !== $data) {930 throw new \InvalidArgumentException('$data expected to be array of values, saw "'.gettype($data).'"');931 }932 parent::__construct($data);933 }934 /**935 * @return string936 */937 public function __toString()938 {939 return $this->get_fhirElementName();940 }941 /**942 * @return array943 */944 public function jsonSerialize()945 {946 $json = parent::jsonSerialize();947 if (isset($this->valueBase64Binary)) {948 $json['valueBase64Binary'] = $this->valueBase64Binary;949 }950 if (isset($this->valueBoolean)) {951 $json['valueBoolean'] = $this->valueBoolean;952 }953 if (isset($this->valueCode)) {954 $json['valueCode'] = $this->valueCode;955 }956 if (isset($this->valueDate)) {957 $json['valueDate'] = $this->valueDate;958 }959 if (isset($this->valueDateTime)) {960 $json['valueDateTime'] = $this->valueDateTime;961 }962 if (isset($this->valueDecimal)) {963 $json['valueDecimal'] = $this->valueDecimal;964 }965 if (isset($this->valueId)) {966 $json['valueId'] = $this->valueId;967 }968 if (isset($this->valueInstant)) {969 $json['valueInstant'] = $this->valueInstant;970 }971 if (isset($this->valueInteger)) {972 $json['valueInteger'] = $this->valueInteger;973 }974 if (isset($this->valueMarkdown)) {975 $json['valueMarkdown'] = $this->valueMarkdown;976 }977 if (isset($this->valueOid)) {978 $json['valueOid'] = $this->valueOid;979 }980 if (isset($this->valuePositiveInt)) {981 $json['valuePositiveInt'] = $this->valuePositiveInt;982 }983 if (isset($this->valueString)) {984 $json['valueString'] = $this->valueString;985 }986 if (isset($this->valueTime)) {987 $json['valueTime'] = $this->valueTime;988 }989 if (isset($this->valueUnsignedInt)) {990 $json['valueUnsignedInt'] = $this->valueUnsignedInt;991 }992 if (isset($this->valueUri)) {993 $json['valueUri'] = $this->valueUri;994 }995 if (isset($this->valueAddress)) {996 $json['valueAddress'] = $this->valueAddress;997 }998 if (isset($this->valueAge)) {999 $json['valueAge'] = $this->valueAge;1000 }1001 if (isset($this->valueAnnotation)) {1002 $json['valueAnnotation'] = $this->valueAnnotation;1003 }1004 if (isset($this->valueAttachment)) {1005 $json['valueAttachment'] = $this->valueAttachment;1006 }1007 if (isset($this->valueCodeableConcept)) {1008 $json['valueCodeableConcept'] = $this->valueCodeableConcept;1009 }1010 if (isset($this->valueCoding)) {1011 $json['valueCoding'] = $this->valueCoding;1012 }1013 if (isset($this->valueContactPoint)) {1014 $json['valueContactPoint'] = $this->valueContactPoint;1015 }1016 if (isset($this->valueCount)) {1017 $json['valueCount'] = $this->valueCount;1018 }1019 if (isset($this->valueDistance)) {1020 $json['valueDistance'] = $this->valueDistance;1021 }1022 if (isset($this->valueDuration)) {1023 $json['valueDuration'] = $this->valueDuration;1024 }1025 if (isset($this->valueHumanName)) {1026 $json['valueHumanName'] = $this->valueHumanName;1027 }1028 if (isset($this->valueIdentifier)) {1029 $json['valueIdentifier'] = $this->valueIdentifier;1030 }1031 if (isset($this->valueMoney)) {1032 $json['valueMoney'] = $this->valueMoney;1033 }1034 if (isset($this->valuePeriod)) {1035 $json['valuePeriod'] = $this->valuePeriod;1036 }1037 if (isset($this->valueQuantity)) {1038 $json['valueQuantity'] = $this->valueQuantity;1039 }1040 if (isset($this->valueRange)) {1041 $json['valueRange'] = $this->valueRange;1042 }1043 if (isset($this->valueRatio)) {1044 $json['valueRatio'] = $this->valueRatio;1045 }1046 if (isset($this->valueReference)) {1047 $json['valueReference'] = $this->valueReference;1048 }1049 if (isset($this->valueSampledData)) {1050 $json['valueSampledData'] = $this->valueSampledData;1051 }1052 if (isset($this->valueSignature)) {1053 $json['valueSignature'] = $this->valueSignature;1054 }1055 if (isset($this->valueTiming)) {1056 $json['valueTiming'] = $this->valueTiming;1057 }1058 if (isset($this->valueMeta)) {1059 $json['valueMeta'] = $this->valueMeta;1060 }1061 if (isset($this->url)) {1062 $json['url'] = $this->url;1063 }1064 return $json;1065 }1066 /**1067 * @param boolean $returnSXE1068 * @param \SimpleXMLElement $sxe1069 * @return string|\SimpleXMLElement1070 */1071 public function xmlSerialize($returnSXE = false, $sxe = null)1072 {1073 if (null === $sxe) {1074 $sxe = new \SimpleXMLElement('<Extension xmlns="http://hl7.org/fhir"></Extension>');1075 }1076 parent::xmlSerialize(true, $sxe);1077 if (isset($this->valueBase64Binary)) {1078 $this->valueBase64Binary->xmlSerialize(true, $sxe->addChild('valueBase64Binary'));1079 }1080 if (isset($this->valueBoolean)) {1081 $this->valueBoolean->xmlSerialize(true, $sxe->addChild('valueBoolean'));1082 }1083 if (isset($this->valueCode)) {1084 $this->valueCode->xmlSerialize(true, $sxe->addChild('valueCode'));1085 }1086 if (isset($this->valueDate)) {1087 $this->valueDate->xmlSerialize(true, $sxe->addChild('valueDate'));1088 }1089 if (isset($this->valueDateTime)) {1090 $this->valueDateTime->xmlSerialize(true, $sxe->addChild('valueDateTime'));1091 }1092 if (isset($this->valueDecimal)) {1093 $this->valueDecimal->xmlSerialize(true, $sxe->addChild('valueDecimal'));1094 }1095 if (isset($this->valueId)) {1096 $this->valueId->xmlSerialize(true, $sxe->addChild('valueId'));1097 }1098 if (isset($this->valueInstant)) {1099 $this->valueInstant->xmlSerialize(true, $sxe->addChild('valueInstant'));1100 }1101 if (isset($this->valueInteger)) {1102 $this->valueInteger->xmlSerialize(true, $sxe->addChild('valueInteger'));1103 }1104 if (isset($this->valueMarkdown)) {1105 $this->valueMarkdown->xmlSerialize(true, $sxe->addChild('valueMarkdown'));1106 }1107 if (isset($this->valueOid)) {1108 $this->valueOid->xmlSerialize(true, $sxe->addChild('valueOid'));1109 }1110 if (isset($this->valuePositiveInt)) {1111 $this->valuePositiveInt->xmlSerialize(true, $sxe->addChild('valuePositiveInt'));1112 }1113 if (isset($this->valueString)) {1114 $this->valueString->xmlSerialize(true, $sxe->addChild('valueString'));1115 }1116 if (isset($this->valueTime)) {1117 $this->valueTime->xmlSerialize(true, $sxe->addChild('valueTime'));1118 }1119 if (isset($this->valueUnsignedInt)) {1120 $this->valueUnsignedInt->xmlSerialize(true, $sxe->addChild('valueUnsignedInt'));1121 }1122 if (isset($this->valueUri)) {1123 $this->valueUri->xmlSerialize(true, $sxe->addChild('valueUri'));1124 }1125 if (isset($this->valueAddress)) {1126 $this->valueAddress->xmlSerialize(true, $sxe->addChild('valueAddress'));1127 }1128 if (isset($this->valueAge)) {1129 $this->valueAge->xmlSerialize(true, $sxe->addChild('valueAge'));1130 }1131 if (isset($this->valueAnnotation)) {1132 $this->valueAnnotation->xmlSerialize(true, $sxe->addChild('valueAnnotation'));1133 }1134 if (isset($this->valueAttachment)) {1135 $this->valueAttachment->xmlSerialize(true, $sxe->addChild('valueAttachment'));1136 }1137 if (isset($this->valueCodeableConcept)) {1138 $this->valueCodeableConcept->xmlSerialize(true, $sxe->addChild('valueCodeableConcept'));1139 }1140 if (isset($this->valueCoding)) {1141 $this->valueCoding->xmlSerialize(true, $sxe->addChild('valueCoding'));1142 }1143 if (isset($this->valueContactPoint)) {1144 $this->valueContactPoint->xmlSerialize(true, $sxe->addChild('valueContactPoint'));1145 }1146 if (isset($this->valueCount)) {1147 $this->valueCount->xmlSerialize(true, $sxe->addChild('valueCount'));1148 }1149 if (isset($this->valueDistance)) {1150 $this->valueDistance->xmlSerialize(true, $sxe->addChild('valueDistance'));1151 }1152 if (isset($this->valueDuration)) {1153 $this->valueDuration->xmlSerialize(true, $sxe->addChild('valueDuration'));1154 }1155 if (isset($this->valueHumanName)) {1156 $this->valueHumanName->xmlSerialize(true, $sxe->addChild('valueHumanName'));1157 }1158 if (isset($this->valueIdentifier)) {1159 $this->valueIdentifier->xmlSerialize(true, $sxe->addChild('valueIdentifier'));1160 }1161 if (isset($this->valueMoney)) {1162 $this->valueMoney->xmlSerialize(true, $sxe->addChild('valueMoney'));1163 }1164 if (isset($this->valuePeriod)) {1165 $this->valuePeriod->xmlSerialize(true, $sxe->addChild('valuePeriod'));1166 }1167 if (isset($this->valueQuantity)) {1168 $this->valueQuantity->xmlSerialize(true, $sxe->addChild('valueQuantity'));1169 }1170 if (isset($this->valueRange)) {1171 $this->valueRange->xmlSerialize(true, $sxe->addChild('valueRange'));1172 }1173 if (isset($this->valueRatio)) {1174 $this->valueRatio->xmlSerialize(true, $sxe->addChild('valueRatio'));1175 }1176 if (isset($this->valueReference)) {1177 $this->valueReference->xmlSerialize(true, $sxe->addChild('valueReference'));1178 }1179 if (isset($this->valueSampledData)) {1180 $this->valueSampledData->xmlSerialize(true, $sxe->addChild('valueSampledData'));1181 }1182 if (isset($this->valueSignature)) {1183 $this->valueSignature->xmlSerialize(true, $sxe->addChild('valueSignature'));1184 }1185 if (isset($this->valueTiming)) {1186 $this->valueTiming->xmlSerialize(true, $sxe->addChild('valueTiming'));1187 }1188 if (isset($this->valueMeta)) {1189 $this->valueMeta->xmlSerialize(true, $sxe->addChild('valueMeta'));1190 }1191 if (isset($this->url)) {1192 $urlElement = $sxe->addChild('url');1193 $urlElement->addAttribute('value', (string)$this->url);1194 }1195 if ($returnSXE) {1196 return $sxe;1197 }1198 return $sxe->saveXML();1199 }1200}...

Full Screen

Full Screen

base_convert_basic.phpt

Source:base_convert_basic.phpt Github

copy

Full Screen

...3--FILE--4<?php5$frombase = array(2,8,10,16,36);6$tobase = array(2,8,10,16,36);7$values = array(10,8 27,9 39,10 039,11 0x5F, 12 "10",13 "27",14 "39",15 "5F", 16 "3XYZ"17 ); 18for ($f= 0; $f < count($frombase); $f++) {19 echo "\n...from base is ", $frombase[$f], "\n";20 for ($t= 0; $t < count($tobase); $t++) {21 echo "......to base is ", $tobase[$t], "\n"; 22 for ($i =0; $i < count($values); $i++){ 23 $res = base_convert($values[$i],$frombase[$f],$tobase[$t]);24 echo ".........value= ", $values[$i], " res = ", $res, "\n";25 } 26 } 27}28?>29--EXPECTF--30...from base is 231......to base is 232.........value= 10 res = 1033.........value= 27 res = 034.........value= 39 res = 035.........value= 3 res = 036.........value= 95 res = 037.........value= 10 res = 1038.........value= 27 res = 039.........value= 39 res = 040.........value= 5F res = 041.........value= 3XYZ res = 042......to base is 843.........value= 10 res = 244.........value= 27 res = 045.........value= 39 res = 046.........value= 3 res = 047.........value= 95 res = 048.........value= 10 res = 249.........value= 27 res = 050.........value= 39 res = 051.........value= 5F res = 052.........value= 3XYZ res = 053......to base is 1054.........value= 10 res = 255.........value= 27 res = 056.........value= 39 res = 057.........value= 3 res = 058.........value= 95 res = 059.........value= 10 res = 260.........value= 27 res = 061.........value= 39 res = 062.........value= 5F res = 063.........value= 3XYZ res = 064......to base is 1665.........value= 10 res = 266.........value= 27 res = 067.........value= 39 res = 068.........value= 3 res = 069.........value= 95 res = 070.........value= 10 res = 271.........value= 27 res = 072.........value= 39 res = 073.........value= 5F res = 074.........value= 3XYZ res = 075......to base is 3676.........value= 10 res = 277.........value= 27 res = 078.........value= 39 res = 079.........value= 3 res = 080.........value= 95 res = 081.........value= 10 res = 282.........value= 27 res = 083.........value= 39 res = 084.........value= 5F res = 085.........value= 3XYZ res = 086...from base is 887......to base is 288.........value= 10 res = 100089.........value= 27 res = 1011190.........value= 39 res = 1191.........value= 3 res = 1192.........value= 95 res = 10193.........value= 10 res = 100094.........value= 27 res = 1011195.........value= 39 res = 1196.........value= 5F res = 10197.........value= 3XYZ res = 1198......to base is 899.........value= 10 res = 10100.........value= 27 res = 27101.........value= 39 res = 3102.........value= 3 res = 3103.........value= 95 res = 5104.........value= 10 res = 10105.........value= 27 res = 27106.........value= 39 res = 3107.........value= 5F res = 5108.........value= 3XYZ res = 3109......to base is 10110.........value= 10 res = 8111.........value= 27 res = 23112.........value= 39 res = 3113.........value= 3 res = 3114.........value= 95 res = 5115.........value= 10 res = 8116.........value= 27 res = 23117.........value= 39 res = 3118.........value= 5F res = 5119.........value= 3XYZ res = 3120......to base is 16121.........value= 10 res = 8122.........value= 27 res = 17123.........value= 39 res = 3124.........value= 3 res = 3125.........value= 95 res = 5126.........value= 10 res = 8127.........value= 27 res = 17128.........value= 39 res = 3129.........value= 5F res = 5130.........value= 3XYZ res = 3131......to base is 36132.........value= 10 res = 8133.........value= 27 res = n134.........value= 39 res = 3135.........value= 3 res = 3136.........value= 95 res = 5137.........value= 10 res = 8138.........value= 27 res = n139.........value= 39 res = 3140.........value= 5F res = 5141.........value= 3XYZ res = 3142...from base is 10143......to base is 2144.........value= 10 res = 1010145.........value= 27 res = 11011146.........value= 39 res = 100111147.........value= 3 res = 11148.........value= 95 res = 1011111149.........value= 10 res = 1010150.........value= 27 res = 11011151.........value= 39 res = 100111152.........value= 5F res = 101153.........value= 3XYZ res = 11154......to base is 8155.........value= 10 res = 12156.........value= 27 res = 33157.........value= 39 res = 47158.........value= 3 res = 3159.........value= 95 res = 137160.........value= 10 res = 12161.........value= 27 res = 33162.........value= 39 res = 47163.........value= 5F res = 5164.........value= 3XYZ res = 3165......to base is 10166.........value= 10 res = 10167.........value= 27 res = 27168.........value= 39 res = 39169.........value= 3 res = 3170.........value= 95 res = 95171.........value= 10 res = 10172.........value= 27 res = 27173.........value= 39 res = 39174.........value= 5F res = 5175.........value= 3XYZ res = 3176......to base is 16177.........value= 10 res = a178.........value= 27 res = 1b179.........value= 39 res = 27180.........value= 3 res = 3181.........value= 95 res = 5f182.........value= 10 res = a183.........value= 27 res = 1b184.........value= 39 res = 27185.........value= 5F res = 5186.........value= 3XYZ res = 3187......to base is 36188.........value= 10 res = a189.........value= 27 res = r190.........value= 39 res = 13191.........value= 3 res = 3192.........value= 95 res = 2n193.........value= 10 res = a194.........value= 27 res = r195.........value= 39 res = 13196.........value= 5F res = 5197.........value= 3XYZ res = 3198...from base is 16199......to base is 2200.........value= 10 res = 10000201.........value= 27 res = 100111202.........value= 39 res = 111001203.........value= 3 res = 11204.........value= 95 res = 10010101205.........value= 10 res = 10000206.........value= 27 res = 100111207.........value= 39 res = 111001208.........value= 5F res = 1011111209.........value= 3XYZ res = 11210......to base is 8211.........value= 10 res = 20212.........value= 27 res = 47213.........value= 39 res = 71214.........value= 3 res = 3215.........value= 95 res = 225216.........value= 10 res = 20217.........value= 27 res = 47218.........value= 39 res = 71219.........value= 5F res = 137220.........value= 3XYZ res = 3221......to base is 10222.........value= 10 res = 16223.........value= 27 res = 39224.........value= 39 res = 57225.........value= 3 res = 3226.........value= 95 res = 149227.........value= 10 res = 16228.........value= 27 res = 39229.........value= 39 res = 57230.........value= 5F res = 95231.........value= 3XYZ res = 3232......to base is 16233.........value= 10 res = 10234.........value= 27 res = 27235.........value= 39 res = 39236.........value= 3 res = 3237.........value= 95 res = 95238.........value= 10 res = 10239.........value= 27 res = 27240.........value= 39 res = 39241.........value= 5F res = 5f242.........value= 3XYZ res = 3243......to base is 36244.........value= 10 res = g245.........value= 27 res = 13246.........value= 39 res = 1l247.........value= 3 res = 3248.........value= 95 res = 45249.........value= 10 res = g250.........value= 27 res = 13251.........value= 39 res = 1l252.........value= 5F res = 2n253.........value= 3XYZ res = 3254...from base is 36255......to base is 2256.........value= 10 res = 100100257.........value= 27 res = 1001111258.........value= 39 res = 1110101259.........value= 3 res = 11260.........value= 95 res = 101001001261.........value= 10 res = 100100262.........value= 27 res = 1001111263.........value= 39 res = 1110101264.........value= 5F res = 11000011265.........value= 3XYZ res = 101100111010111011266......to base is 8267.........value= 10 res = 44268.........value= 27 res = 117269.........value= 39 res = 165270.........value= 3 res = 3271.........value= 95 res = 511272.........value= 10 res = 44273.........value= 27 res = 117274.........value= 39 res = 165275.........value= 5F res = 303276.........value= 3XYZ res = 547273277......to base is 10278.........value= 10 res = 36279.........value= 27 res = 79280.........value= 39 res = 117281.........value= 3 res = 3282.........value= 95 res = 329283.........value= 10 res = 36284.........value= 27 res = 79285.........value= 39 res = 117286.........value= 5F res = 195287.........value= 3XYZ res = 183995288......to base is 16289.........value= 10 res = 24290.........value= 27 res = 4f291.........value= 39 res = 75292.........value= 3 res = 3293.........value= 95 res = 149294.........value= 10 res = 24295.........value= 27 res = 4f296.........value= 39 res = 75297.........value= 5F res = c3298.........value= 3XYZ res = 2cebb299......to base is 36300.........value= 10 res = 10301.........value= 27 res = 27302.........value= 39 res = 39303.........value= 3 res = 3304.........value= 95 res = 95305.........value= 10 res = 10306.........value= 27 res = 27307.........value= 39 res = 39308.........value= 5F res = 5f309.........value= 3XYZ res = 3xyz...

Full Screen

Full Screen

value

Using AI Code Generation

copy

Full Screen

1use \mageekguy\atoum\test;2use \mageekguy\atoum\asserter;3use \mageekguy\atoum\tools\variable;4use \mageekguy\atoum\exceptions\logic;5{6 public function test1()7 {8 ->if($value = new \mageekguy\atoum\value)9 ->and($value->setWith(array('a' => 1, 'b' => 2)))10 ->object($value->getKeys())->isInstanceOf('\mageekguy\atoum\value')11 ->array($value->getKeys()->getValue())->isEqualTo(array('a', 'b'))12 ->object($value->getValues())->isInstanceOf('\mageekguy\atoum\value')13 ->array($value->getValues()->getValue())->isEqualTo(array(1, 2))14 ->object($value->getKeys()->getValues())->isInstanceOf('\mageekguy\atoum\value')15 ->array($value->getKeys()->getValues()->getValue())->isEqualTo(array(1, 2))16 ->object($value->getValues()->getKeys())->isInstanceOf('\mageekguy\atoum\value')17 ->array($value->getValues()->getKeys()->getValue())->isEqualTo(array('a', 'b'))18 ;19 }20}21use \mageekguy\atoum\test;22use \mageekguy\atoum\asserter;23use \mageekguy\atoum\tools\variable;24use \mageekguy\atoum\exceptions\logic;25{26 public function test1()27 {28 ->if($value = new \mageekguy\atoum\value)29 ->and($value->setWith(array('a' =>

Full Screen

Full Screen

value

Using AI Code Generation

copy

Full Screen

1use atoum\atoum;2use atoum\atoum\test;3use atoum\atoum\test\assertion;4use atoum\atoum\test\assertion\manager;5use atoum\atoum\test\assertion\manager\php;6use atoum\atoum\test\assertion\manager\php\string;7use atoum\atoum\test\assertion\manager\php\string\contains;8use atoum\atoum\test\assertion\manager\php\string\contains\caseless;9use atoum\atoum\test\assertion\manager\php\string\contains\caseless\generator;10use atoum\atoum\test\assertion\manager\php\string\contains\caseless\generator\exception;11use atoum\atoum\test\assertion\manager\php\string\contains\caseless\generator\exception\invalidArgument;12use atoum\atoum\test\assertion\manager\php\string\contains\caseless\generator\exception\invalidArgument\invalidSubString;13use atoum\atoum\test\assertion\manager\php\string\contains\caseless\generator\exception\invalidArgument\invalidSubString\emptySubString;14use atoum\atoum\test\assertion\manager\php\string\contains\caseless\generator\exception\invalidArgument\invalidSubString\notString;

Full Screen

Full Screen

value

Using AI Code Generation

copy

Full Screen

1use \mageekguy\atoum\test\adapter;2use \mageekguy\atoum\test\adapter\call;3use \mageekguy\atoum\test\adapter;4use \mageekguy\atoum\test\adapter\call;5use \mageekguy\atoum\test\adapter;6use \mageekguy\atoum\test\adapter\call;7use \mageekguy\atoum\test\adapter;8use \mageekguy\atoum\test\adapter\call;9use \mageekguy\atoum\test\adapter;10use \mageekguy\atoum\test\adapter\call;11use \mageekguy\atoum\test\adapter;12use \mageekguy\atoum\test\adapter\call;13use \mageekguy\atoum\test\adapter;14use \mageekguy\atoum\test\adapter\call;15use \mageekguy\atoum\test\adapter;16use \mageekguy\atoum\test\adapter\call;17use \mageekguy\atoum\test\adapter;18use \mageekguy\atoum\test\adapter\call;19use \mageekguy\atoum\test\adapter;20use \mageekguy\atoum\test\adapter\call;21use \mageekguy\atoum\test\adapter;22use \mageekguy\atoum\test\adapter\call;

Full Screen

Full Screen

value

Using AI Code Generation

copy

Full Screen

1namespace Atoum\Value;2{3 public function __construct($value)4 {5 $this->value = $value;6 }7 public function getValue()8 {9 return $this->value;10 }11}12namespace Atoum\Value;13{14 public function __construct($value)15 {16 $this->value = $value;17 }18 public function getValue()19 {20 return $this->value;21 }22}23namespace Atoum\Value;24{25 public function __construct($value)26 {27 $this->value = $value;28 }29 public function getValue()30 {31 return $this->value;32 }33}34namespace Atoum\Value;35{36 public function __construct($value)37 {38 $this->value = $value;39 }40 public function getValue()41 {42 return $this->value;43 }44}45namespace Atoum\Value;46{47 public function __construct($value)48 {49 $this->value = $value;50 }51 public function getValue()52 {53 return $this->value;54 }55}56namespace Atoum\Value;57{58 public function __construct($value)59 {60 $this->value = $value;61 }62 public function getValue()63 {64 return $this->value;65 }66}67namespace Atoum\Value;68{69 public function __construct($value)70 {71 $this->value = $value;72 }73 public function getValue()74 {75 return $this->value;76 }77}

Full Screen

Full Screen

value

Using AI Code Generation

copy

Full Screen

1use \mageekguy\atoum\test;2{3 public function testPath()4 {5 ->if($path = new \mageekguy\atoum\path())6 ->and($path->setPath('/var/www/'))7 ->object($path->getPath())->isIdenticalTo('/var/www/')8 ->object($path->getDirectory())->isIdenticalTo('/var/www/')9 ->object($path->getFilename())->isIdenticalTo('')10 ->if($path->setPath('/var/www/index.php'))11 ->object($path->getPath())->isIdenticalTo('/var/www/index.php')12 ->object($path->getDirectory())->isIdenticalTo('/var/www/')13 ->object($path->getFilename())->isIdenticalTo('index.php')14 ->if($path->setPath('/var/www/'))15 ->object($path->getPath())->isIdenticalTo('/var/www/')16 ->object($path->getDirectory())->isIdenticalTo('/var/www/')17 ->object($path->getFilename())->isIdenticalTo('')18 ->if($path->setPath('/var/www/index.php'))19 ->object($path->getPath())->isIdenticalTo('/var/www/index.php')20 ->object($path->getDirectory())->isIdenticalTo('/var/www/')21 ->object($path->getFilename())->isIdenticalTo('index.php')22 ->if($path->setPath('/var/www'))23 ->object($path->getPath())->isIdenticalTo('/var/www/')24 ->object($path->getDirectory())->isIdenticalTo('/var/www/')25 ->object($path->getFilename())->isIdenticalTo('')26 ->if($path->setPath('/var/www/'))27 ->object($path->getPath())->isIdenticalTo('/var/www/')28 ->object($path->getDirectory())->isIdenticalTo('/var/www/')29 ->object($path->getFilename())->isIdenticalTo('')30 ;31 }32}33use \mageekguy\atoum\test;34{35 public function testPath()36 {

Full Screen

Full Screen

value

Using AI Code Generation

copy

Full Screen

1use Atoum\Value;2$myValue = new Value();3$myValue->setValue(5);4use Atoum\Value;5$myValue = new Value();6$myValue->setValue(5);7$myValue->setValue(6);8use Atoum\Value;9$myValue = new Value();10$myValue->setValue(5);11$myValue->setValue(6);12$myValue->setValue(7);13use Atoum\Value;14$myValue = new Value();15$myValue->setValue(5);16$myValue->setValue(6);17$myValue->setValue(7);18$myValue->setValue(8);19use Atoum\Value;20$myValue = new Value();21$myValue->setValue(5);22$myValue->setValue(6);23$myValue->setValue(7);24$myValue->setValue(8);25$myValue->setValue(9);26use Atoum\Value;27$myValue = new Value();28$myValue->setValue(5);29$myValue->setValue(6);30$myValue->setValue(7);31$myValue->setValue(8);32$myValue->setValue(9);33$myValue->setValue(10);34use Atoum\Value;35$myValue = new Value();36$myValue->setValue(5);37$myValue->setValue(6);38$myValue->setValue(7);39$myValue->setValue(8);40$myValue->setValue(9);41$myValue->setValue(10);42$myValue->setValue(11);43use Atoum\Value;44$myValue = new Value();45$myValue->setValue(5);46$myValue->setValue(6);47$myValue->setValue(7);48$myValue->setValue(8);

Full Screen

Full Screen

value

Using AI Code Generation

copy

Full Screen

1use mageekguy\atoum\test;2{3 public function __construct()4 {5 $this->setTestNamespace('tests\units');6 parent::__construct();7 }8}9namespace tests\units;10use mageekguy\atoum;11{12 public function test1()13 {14 $this->assert('test1')15 ->if($value = new \value())16 ->string($value->foo())->isEqualTo('foo')17 ->string($value->bar())->isEqualTo('bar')18 ;19 }20}21{22 public function foo()23 {24 return 'foo';25 }26 public function bar()27 {28 return 'bar';29 }30}31class_alias('value', 'value2');32class_alias('value', 'value2');

Full Screen

Full Screen

value

Using AI Code Generation

copy

Full Screen

1{2 public function test()3 {4 $this->value('test')->isIdenticalTo('test');5 }6}7{8 public function test()9 {10 $this->value('test')->isIdenticalTo('test');11 }12}13{14 public function test()15 {16 $this->value('test')->isIdenticalTo('test');17 }18}19{20 public function test()21 {22 $this->value('test')->isIdenticalTo('test');23 }24}25{26 public function test()27 {28 $this->value('test')->isIdenticalTo('test');29 }30}31{32 public function test()33 {34 $this->value('test')->isIdenticalTo('test');35 }36}37{38 public function test()39 {40 $this->value('test')->isIdenticalTo('test');41 }42}43{44 public function test()45 {46 $this->value('test')->isIdenticalTo('test');47 }48}49{50 public function test()51 {52 $this->value('test')->isIdenticalTo('test

Full Screen

Full Screen

value

Using AI Code Generation

copy

Full Screen

1require_once 'vendor/autoload.php';2use mageekguy\atoum\test;3{4 public function testMyFunction()5 {6 $this->given($this->newTestedInstance())7 ->variable($this->testedInstance->myFunction())->isEqualTo(2);8 }9}10require_once 'vendor/autoload.php';11use mageekguy\atoum\test;12{13 public function testMyFunction()14 {15 $this->given($this->newTestedInstance())16 ->variable($this->testedInstance->myFunction())->isEqualTo(3);17 }18}19require_once 'vendor/autoload.php';20use mageekguy\atoum\test;21{22 public function testMyFunction()23 {24 $this->given($this->newTestedInstance())25 ->variable($this->testedInstance->myFunction())->isEqualTo(4);26 }27}28require_once 'vendor/autoload.php';29use mageekguy\atoum\test;30{31 public function testMyFunction()32 {33 $this->given($this->newTestedInstance())34 ->variable($this->testedInstance->myFunction())->isEqualTo(5);35 }36}37require_once 'vendor/autoload.php';38use mageekguy\atoum\test;39{40 public function testMyFunction()41 {42 $this->given($this->newTestedInstance())43 ->variable($this->testedInstance->myFunction())->isEqualTo(6);44 }45}46require_once 'vendor/autoload.php';47use mageekguy\atoum\test;48{49 public function testMyFunction()50 {51 $this->given($this->newTestedInstance())

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Atoum automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Run Selenium Automation Tests on LambdaTest Cloud Grid

Trigger Selenium automation tests on a cloud-based Grid of 3000+ real browsers and operating systems.

Test now for Free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful