3 namespace OpenEMR\FHIR\R4\FHIRElement
;
6 * This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
7 * class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
9 * Class creation date: June 14th, 2019
13 * Copyright 2016-2017 Daniel Carbone (daniel.p.carbone@gmail.com)
15 * Licensed under the Apache License, Version 2.0 (the "License");
16 * you may not use this file except in compliance with the License.
17 * You may obtain a copy of the License at
19 * http://www.apache.org/licenses/LICENSE-2.0
21 * Unless required by applicable law or agreed to in writing, software
22 * distributed under the License is distributed on an "AS IS" BASIS,
23 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24 * See the License for the specific language governing permissions and
25 * limitations under the License.
28 * FHIR Copyright Notice:
30 * Copyright (c) 2011+, HL7, Inc.
31 * All rights reserved.
33 * Redistribution and use in source and binary forms, with or without modification,
34 * are permitted provided that the following conditions are met:
36 * * Redistributions of source code must retain the above copyright notice, this
37 * list of conditions and the following disclaimer.
38 * * Redistributions in binary form must reproduce the above copyright notice,
39 * this list of conditions and the following disclaimer in the documentation
40 * and/or other materials provided with the distribution.
41 * * Neither the name of HL7 nor the names of its contributors may be used to
42 * endorse or promote products derived from this software without specific
43 * prior written permission.
45 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
46 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
47 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
48 * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
49 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
50 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
51 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
52 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
53 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
54 * POSSIBILITY OF SUCH DAMAGE.
57 * Generated on Thu, Dec 27, 2018 22:37+1100 for FHIR v4.0.0
59 * Note: the schemas & schematrons do not contain all of the rules about what makes resources
60 * valid. Implementers will still need to be familiar with the content of the specification and with
61 * any profiles that apply to the resources in order to make a conformant implementation.
65 use OpenEMR\FHIR\R4\FHIRElement
;
68 * Optional Extension Element - found in all resources.
69 * 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 extensions
71 class FHIRExtension
extends FHIRElement
implements \JsonSerializable
74 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRBase64Binary
76 public $valueBase64Binary = null;
79 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRBoolean
81 public $valueBoolean = null;
84 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRCanonical
86 public $valueCanonical = null;
89 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRCode
91 public $valueCode = null;
94 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRDate
96 public $valueDate = null;
99 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRDateTime
101 public $valueDateTime = null;
104 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRDecimal
106 public $valueDecimal = null;
109 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRId
111 public $valueId = null;
114 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRInstant
116 public $valueInstant = null;
119 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRInteger
121 public $valueInteger = null;
124 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRMarkdown
126 public $valueMarkdown = null;
129 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIROid
131 public $valueOid = null;
134 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRPositiveInt
136 public $valuePositiveInt = null;
139 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRString
141 public $valueString = null;
144 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRTime
146 public $valueTime = null;
149 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRUnsignedInt
151 public $valueUnsignedInt = null;
154 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRUri
156 public $valueUri = null;
159 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRUrl
161 public $valueUrl = null;
164 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRUuid
166 public $valueUuid = null;
169 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRAddress
171 public $valueAddress = null;
174 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity\FHIRAge
176 public $valueAge = null;
179 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRAnnotation
181 public $valueAnnotation = null;
184 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRAttachment
186 public $valueAttachment = null;
189 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRCodeableConcept
191 public $valueCodeableConcept = null;
194 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRCoding
196 public $valueCoding = null;
199 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRContactPoint
201 public $valueContactPoint = null;
204 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity\FHIRCount
206 public $valueCount = null;
209 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity\FHIRDistance
211 public $valueDistance = null;
214 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity\FHIRDuration
216 public $valueDuration = null;
219 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRHumanName
221 public $valueHumanName = null;
224 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRIdentifier
226 public $valueIdentifier = null;
229 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRMoney
231 public $valueMoney = null;
234 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRPeriod
236 public $valuePeriod = null;
239 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity
241 public $valueQuantity = null;
244 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRRange
246 public $valueRange = null;
249 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRRatio
251 public $valueRatio = null;
254 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRReference
256 public $valueReference = null;
259 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRSampledData
261 public $valueSampledData = null;
264 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRSignature
266 public $valueSignature = null;
269 * @var \OpenEMR\FHIR\R4\FHIRResource\FHIRTiming
271 public $valueTiming = null;
274 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRContactDetail
276 public $valueContactDetail = null;
279 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRContributor
281 public $valueContributor = null;
284 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRDataRequirement
286 public $valueDataRequirement = null;
289 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRExpression
291 public $valueExpression = null;
294 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRParameterDefinition
296 public $valueParameterDefinition = null;
299 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRRelatedArtifact
301 public $valueRelatedArtifact = null;
304 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRTriggerDefinition
306 public $valueTriggerDefinition = null;
309 * @var \OpenEMR\FHIR\R4\FHIRElement\FHIRUsageContext
311 public $valueUsageContext = null;
314 * @var \OpenEMR\FHIR\R4\FHIRResource\FHIRDosage
316 public $valueDosage = null;
326 private $_fhirElementName = 'Extension';
329 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRBase64Binary
331 public function getValueBase64Binary()
333 return $this->valueBase64Binary
;
337 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRBase64Binary $valueBase64Binary
340 public function setValueBase64Binary($valueBase64Binary)
342 $this->valueBase64Binary
= $valueBase64Binary;
347 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRBoolean
349 public function getValueBoolean()
351 return $this->valueBoolean
;
355 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRBoolean $valueBoolean
358 public function setValueBoolean($valueBoolean)
360 $this->valueBoolean
= $valueBoolean;
365 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRCanonical
367 public function getValueCanonical()
369 return $this->valueCanonical
;
373 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRCanonical $valueCanonical
376 public function setValueCanonical($valueCanonical)
378 $this->valueCanonical
= $valueCanonical;
383 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRCode
385 public function getValueCode()
387 return $this->valueCode
;
391 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRCode $valueCode
394 public function setValueCode($valueCode)
396 $this->valueCode
= $valueCode;
401 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRDate
403 public function getValueDate()
405 return $this->valueDate
;
409 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRDate $valueDate
412 public function setValueDate($valueDate)
414 $this->valueDate
= $valueDate;
419 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRDateTime
421 public function getValueDateTime()
423 return $this->valueDateTime
;
427 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRDateTime $valueDateTime
430 public function setValueDateTime($valueDateTime)
432 $this->valueDateTime
= $valueDateTime;
437 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRDecimal
439 public function getValueDecimal()
441 return $this->valueDecimal
;
445 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRDecimal $valueDecimal
448 public function setValueDecimal($valueDecimal)
450 $this->valueDecimal
= $valueDecimal;
455 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRId
457 public function getValueId()
459 return $this->valueId
;
463 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRId $valueId
466 public function setValueId($valueId)
468 $this->valueId
= $valueId;
473 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRInstant
475 public function getValueInstant()
477 return $this->valueInstant
;
481 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRInstant $valueInstant
484 public function setValueInstant($valueInstant)
486 $this->valueInstant
= $valueInstant;
491 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRInteger
493 public function getValueInteger()
495 return $this->valueInteger
;
499 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRInteger $valueInteger
502 public function setValueInteger($valueInteger)
504 $this->valueInteger
= $valueInteger;
509 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRMarkdown
511 public function getValueMarkdown()
513 return $this->valueMarkdown
;
517 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRMarkdown $valueMarkdown
520 public function setValueMarkdown($valueMarkdown)
522 $this->valueMarkdown
= $valueMarkdown;
527 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIROid
529 public function getValueOid()
531 return $this->valueOid
;
535 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIROid $valueOid
538 public function setValueOid($valueOid)
540 $this->valueOid
= $valueOid;
545 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRPositiveInt
547 public function getValuePositiveInt()
549 return $this->valuePositiveInt
;
553 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRPositiveInt $valuePositiveInt
556 public function setValuePositiveInt($valuePositiveInt)
558 $this->valuePositiveInt
= $valuePositiveInt;
563 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRString
565 public function getValueString()
567 return $this->valueString
;
571 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRString $valueString
574 public function setValueString($valueString)
576 $this->valueString
= $valueString;
581 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRTime
583 public function getValueTime()
585 return $this->valueTime
;
589 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRTime $valueTime
592 public function setValueTime($valueTime)
594 $this->valueTime
= $valueTime;
599 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRUnsignedInt
601 public function getValueUnsignedInt()
603 return $this->valueUnsignedInt
;
607 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRUnsignedInt $valueUnsignedInt
610 public function setValueUnsignedInt($valueUnsignedInt)
612 $this->valueUnsignedInt
= $valueUnsignedInt;
617 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRUri
619 public function getValueUri()
621 return $this->valueUri
;
625 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRUri $valueUri
628 public function setValueUri($valueUri)
630 $this->valueUri
= $valueUri;
635 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRUrl
637 public function getValueUrl()
639 return $this->valueUrl
;
643 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRUrl $valueUrl
646 public function setValueUrl($valueUrl)
648 $this->valueUrl
= $valueUrl;
653 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRUuid
655 public function getValueUuid()
657 return $this->valueUuid
;
661 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRUuid $valueUuid
664 public function setValueUuid($valueUuid)
666 $this->valueUuid
= $valueUuid;
671 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRAddress
673 public function getValueAddress()
675 return $this->valueAddress
;
679 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRAddress $valueAddress
682 public function setValueAddress($valueAddress)
684 $this->valueAddress
= $valueAddress;
689 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity\FHIRAge
691 public function getValueAge()
693 return $this->valueAge
;
697 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity\FHIRAge $valueAge
700 public function setValueAge($valueAge)
702 $this->valueAge
= $valueAge;
707 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRAnnotation
709 public function getValueAnnotation()
711 return $this->valueAnnotation
;
715 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRAnnotation $valueAnnotation
718 public function setValueAnnotation($valueAnnotation)
720 $this->valueAnnotation
= $valueAnnotation;
725 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRAttachment
727 public function getValueAttachment()
729 return $this->valueAttachment
;
733 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRAttachment $valueAttachment
736 public function setValueAttachment($valueAttachment)
738 $this->valueAttachment
= $valueAttachment;
743 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRCodeableConcept
745 public function getValueCodeableConcept()
747 return $this->valueCodeableConcept
;
751 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRCodeableConcept $valueCodeableConcept
754 public function setValueCodeableConcept($valueCodeableConcept)
756 $this->valueCodeableConcept
= $valueCodeableConcept;
761 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRCoding
763 public function getValueCoding()
765 return $this->valueCoding
;
769 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRCoding $valueCoding
772 public function setValueCoding($valueCoding)
774 $this->valueCoding
= $valueCoding;
779 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRContactPoint
781 public function getValueContactPoint()
783 return $this->valueContactPoint
;
787 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRContactPoint $valueContactPoint
790 public function setValueContactPoint($valueContactPoint)
792 $this->valueContactPoint
= $valueContactPoint;
797 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity\FHIRCount
799 public function getValueCount()
801 return $this->valueCount
;
805 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity\FHIRCount $valueCount
808 public function setValueCount($valueCount)
810 $this->valueCount
= $valueCount;
815 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity\FHIRDistance
817 public function getValueDistance()
819 return $this->valueDistance
;
823 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity\FHIRDistance $valueDistance
826 public function setValueDistance($valueDistance)
828 $this->valueDistance
= $valueDistance;
833 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity\FHIRDuration
835 public function getValueDuration()
837 return $this->valueDuration
;
841 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity\FHIRDuration $valueDuration
844 public function setValueDuration($valueDuration)
846 $this->valueDuration
= $valueDuration;
851 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRHumanName
853 public function getValueHumanName()
855 return $this->valueHumanName
;
859 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRHumanName $valueHumanName
862 public function setValueHumanName($valueHumanName)
864 $this->valueHumanName
= $valueHumanName;
869 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRIdentifier
871 public function getValueIdentifier()
873 return $this->valueIdentifier
;
877 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRIdentifier $valueIdentifier
880 public function setValueIdentifier($valueIdentifier)
882 $this->valueIdentifier
= $valueIdentifier;
887 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRMoney
889 public function getValueMoney()
891 return $this->valueMoney
;
895 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRMoney $valueMoney
898 public function setValueMoney($valueMoney)
900 $this->valueMoney
= $valueMoney;
905 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRPeriod
907 public function getValuePeriod()
909 return $this->valuePeriod
;
913 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRPeriod $valuePeriod
916 public function setValuePeriod($valuePeriod)
918 $this->valuePeriod
= $valuePeriod;
923 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity
925 public function getValueQuantity()
927 return $this->valueQuantity
;
931 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRQuantity $valueQuantity
934 public function setValueQuantity($valueQuantity)
936 $this->valueQuantity
= $valueQuantity;
941 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRRange
943 public function getValueRange()
945 return $this->valueRange
;
949 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRRange $valueRange
952 public function setValueRange($valueRange)
954 $this->valueRange
= $valueRange;
959 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRRatio
961 public function getValueRatio()
963 return $this->valueRatio
;
967 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRRatio $valueRatio
970 public function setValueRatio($valueRatio)
972 $this->valueRatio
= $valueRatio;
977 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRReference
979 public function getValueReference()
981 return $this->valueReference
;
985 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRReference $valueReference
988 public function setValueReference($valueReference)
990 $this->valueReference
= $valueReference;
995 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRSampledData
997 public function getValueSampledData()
999 return $this->valueSampledData
;
1003 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRSampledData $valueSampledData
1006 public function setValueSampledData($valueSampledData)
1008 $this->valueSampledData
= $valueSampledData;
1013 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRSignature
1015 public function getValueSignature()
1017 return $this->valueSignature
;
1021 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRSignature $valueSignature
1024 public function setValueSignature($valueSignature)
1026 $this->valueSignature
= $valueSignature;
1031 * @return \OpenEMR\FHIR\R4\FHIRResource\FHIRTiming
1033 public function getValueTiming()
1035 return $this->valueTiming
;
1039 * @param \OpenEMR\FHIR\R4\FHIRResource\FHIRTiming $valueTiming
1042 public function setValueTiming($valueTiming)
1044 $this->valueTiming
= $valueTiming;
1049 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRContactDetail
1051 public function getValueContactDetail()
1053 return $this->valueContactDetail
;
1057 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRContactDetail $valueContactDetail
1060 public function setValueContactDetail($valueContactDetail)
1062 $this->valueContactDetail
= $valueContactDetail;
1067 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRContributor
1069 public function getValueContributor()
1071 return $this->valueContributor
;
1075 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRContributor $valueContributor
1078 public function setValueContributor($valueContributor)
1080 $this->valueContributor
= $valueContributor;
1085 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRDataRequirement
1087 public function getValueDataRequirement()
1089 return $this->valueDataRequirement
;
1093 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRDataRequirement $valueDataRequirement
1096 public function setValueDataRequirement($valueDataRequirement)
1098 $this->valueDataRequirement
= $valueDataRequirement;
1103 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRExpression
1105 public function getValueExpression()
1107 return $this->valueExpression
;
1111 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRExpression $valueExpression
1114 public function setValueExpression($valueExpression)
1116 $this->valueExpression
= $valueExpression;
1121 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRParameterDefinition
1123 public function getValueParameterDefinition()
1125 return $this->valueParameterDefinition
;
1129 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRParameterDefinition $valueParameterDefinition
1132 public function setValueParameterDefinition($valueParameterDefinition)
1134 $this->valueParameterDefinition
= $valueParameterDefinition;
1139 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRRelatedArtifact
1141 public function getValueRelatedArtifact()
1143 return $this->valueRelatedArtifact
;
1147 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRRelatedArtifact $valueRelatedArtifact
1150 public function setValueRelatedArtifact($valueRelatedArtifact)
1152 $this->valueRelatedArtifact
= $valueRelatedArtifact;
1157 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRTriggerDefinition
1159 public function getValueTriggerDefinition()
1161 return $this->valueTriggerDefinition
;
1165 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRTriggerDefinition $valueTriggerDefinition
1168 public function setValueTriggerDefinition($valueTriggerDefinition)
1170 $this->valueTriggerDefinition
= $valueTriggerDefinition;
1175 * @return \OpenEMR\FHIR\R4\FHIRElement\FHIRUsageContext
1177 public function getValueUsageContext()
1179 return $this->valueUsageContext
;
1183 * @param \OpenEMR\FHIR\R4\FHIRElement\FHIRUsageContext $valueUsageContext
1186 public function setValueUsageContext($valueUsageContext)
1188 $this->valueUsageContext
= $valueUsageContext;
1193 * @return \OpenEMR\FHIR\R4\FHIRResource\FHIRDosage
1195 public function getValueDosage()
1197 return $this->valueDosage
;
1201 * @param \OpenEMR\FHIR\R4\FHIRResource\FHIRDosage $valueDosage
1204 public function setValueDosage($valueDosage)
1206 $this->valueDosage
= $valueDosage;
1213 public function getUrl()
1219 * @param string $url
1222 public function setUrl($url)
1231 public function get_fhirElementName()
1233 return $this->_fhirElementName
;
1237 * @param mixed $data
1239 public function __construct($data = [])
1241 if (is_array($data)) {
1242 if (isset($data['valueBase64Binary'])) {
1243 $this->setValueBase64Binary($data['valueBase64Binary']);
1245 if (isset($data['valueBoolean'])) {
1246 $this->setValueBoolean($data['valueBoolean']);
1248 if (isset($data['valueCanonical'])) {
1249 $this->setValueCanonical($data['valueCanonical']);
1251 if (isset($data['valueCode'])) {
1252 $this->setValueCode($data['valueCode']);
1254 if (isset($data['valueDate'])) {
1255 $this->setValueDate($data['valueDate']);
1257 if (isset($data['valueDateTime'])) {
1258 $this->setValueDateTime($data['valueDateTime']);
1260 if (isset($data['valueDecimal'])) {
1261 $this->setValueDecimal($data['valueDecimal']);
1263 if (isset($data['valueId'])) {
1264 $this->setValueId($data['valueId']);
1266 if (isset($data['valueInstant'])) {
1267 $this->setValueInstant($data['valueInstant']);
1269 if (isset($data['valueInteger'])) {
1270 $this->setValueInteger($data['valueInteger']);
1272 if (isset($data['valueMarkdown'])) {
1273 $this->setValueMarkdown($data['valueMarkdown']);
1275 if (isset($data['valueOid'])) {
1276 $this->setValueOid($data['valueOid']);
1278 if (isset($data['valuePositiveInt'])) {
1279 $this->setValuePositiveInt($data['valuePositiveInt']);
1281 if (isset($data['valueString'])) {
1282 $this->setValueString($data['valueString']);
1284 if (isset($data['valueTime'])) {
1285 $this->setValueTime($data['valueTime']);
1287 if (isset($data['valueUnsignedInt'])) {
1288 $this->setValueUnsignedInt($data['valueUnsignedInt']);
1290 if (isset($data['valueUri'])) {
1291 $this->setValueUri($data['valueUri']);
1293 if (isset($data['valueUrl'])) {
1294 $this->setValueUrl($data['valueUrl']);
1296 if (isset($data['valueUuid'])) {
1297 $this->setValueUuid($data['valueUuid']);
1299 if (isset($data['valueAddress'])) {
1300 $this->setValueAddress($data['valueAddress']);
1302 if (isset($data['valueAge'])) {
1303 $this->setValueAge($data['valueAge']);
1305 if (isset($data['valueAnnotation'])) {
1306 $this->setValueAnnotation($data['valueAnnotation']);
1308 if (isset($data['valueAttachment'])) {
1309 $this->setValueAttachment($data['valueAttachment']);
1311 if (isset($data['valueCodeableConcept'])) {
1312 $this->setValueCodeableConcept($data['valueCodeableConcept']);
1314 if (isset($data['valueCoding'])) {
1315 $this->setValueCoding($data['valueCoding']);
1317 if (isset($data['valueContactPoint'])) {
1318 $this->setValueContactPoint($data['valueContactPoint']);
1320 if (isset($data['valueCount'])) {
1321 $this->setValueCount($data['valueCount']);
1323 if (isset($data['valueDistance'])) {
1324 $this->setValueDistance($data['valueDistance']);
1326 if (isset($data['valueDuration'])) {
1327 $this->setValueDuration($data['valueDuration']);
1329 if (isset($data['valueHumanName'])) {
1330 $this->setValueHumanName($data['valueHumanName']);
1332 if (isset($data['valueIdentifier'])) {
1333 $this->setValueIdentifier($data['valueIdentifier']);
1335 if (isset($data['valueMoney'])) {
1336 $this->setValueMoney($data['valueMoney']);
1338 if (isset($data['valuePeriod'])) {
1339 $this->setValuePeriod($data['valuePeriod']);
1341 if (isset($data['valueQuantity'])) {
1342 $this->setValueQuantity($data['valueQuantity']);
1344 if (isset($data['valueRange'])) {
1345 $this->setValueRange($data['valueRange']);
1347 if (isset($data['valueRatio'])) {
1348 $this->setValueRatio($data['valueRatio']);
1350 if (isset($data['valueReference'])) {
1351 $this->setValueReference($data['valueReference']);
1353 if (isset($data['valueSampledData'])) {
1354 $this->setValueSampledData($data['valueSampledData']);
1356 if (isset($data['valueSignature'])) {
1357 $this->setValueSignature($data['valueSignature']);
1359 if (isset($data['valueTiming'])) {
1360 $this->setValueTiming($data['valueTiming']);
1362 if (isset($data['valueContactDetail'])) {
1363 $this->setValueContactDetail($data['valueContactDetail']);
1365 if (isset($data['valueContributor'])) {
1366 $this->setValueContributor($data['valueContributor']);
1368 if (isset($data['valueDataRequirement'])) {
1369 $this->setValueDataRequirement($data['valueDataRequirement']);
1371 if (isset($data['valueExpression'])) {
1372 $this->setValueExpression($data['valueExpression']);
1374 if (isset($data['valueParameterDefinition'])) {
1375 $this->setValueParameterDefinition($data['valueParameterDefinition']);
1377 if (isset($data['valueRelatedArtifact'])) {
1378 $this->setValueRelatedArtifact($data['valueRelatedArtifact']);
1380 if (isset($data['valueTriggerDefinition'])) {
1381 $this->setValueTriggerDefinition($data['valueTriggerDefinition']);
1383 if (isset($data['valueUsageContext'])) {
1384 $this->setValueUsageContext($data['valueUsageContext']);
1386 if (isset($data['valueDosage'])) {
1387 $this->setValueDosage($data['valueDosage']);
1389 if (isset($data['url'])) {
1390 $this->setUrl($data['url']);
1392 } elseif (null !== $data) {
1393 throw new \
InvalidArgumentException('$data expected to be array of values, saw "' . gettype($data) . '"');
1395 parent
::__construct($data);
1401 public function __toString()
1403 return $this->get_fhirElementName();
1409 public function jsonSerialize(): mixed
1411 $json = parent
::jsonSerialize();
1412 if (isset($this->valueBase64Binary
)) {
1413 $json['valueBase64Binary'] = $this->valueBase64Binary
;
1415 if (isset($this->valueBoolean
)) {
1416 $json['valueBoolean'] = $this->valueBoolean
;
1418 if (isset($this->valueCanonical
)) {
1419 $json['valueCanonical'] = $this->valueCanonical
;
1421 if (isset($this->valueCode
)) {
1422 $json['valueCode'] = $this->valueCode
;
1424 if (isset($this->valueDate
)) {
1425 $json['valueDate'] = $this->valueDate
;
1427 if (isset($this->valueDateTime
)) {
1428 $json['valueDateTime'] = $this->valueDateTime
;
1430 if (isset($this->valueDecimal
)) {
1431 $json['valueDecimal'] = $this->valueDecimal
;
1433 if (isset($this->valueId
)) {
1434 $json['valueId'] = $this->valueId
;
1436 if (isset($this->valueInstant
)) {
1437 $json['valueInstant'] = $this->valueInstant
;
1439 if (isset($this->valueInteger
)) {
1440 $json['valueInteger'] = $this->valueInteger
;
1442 if (isset($this->valueMarkdown
)) {
1443 $json['valueMarkdown'] = $this->valueMarkdown
;
1445 if (isset($this->valueOid
)) {
1446 $json['valueOid'] = $this->valueOid
;
1448 if (isset($this->valuePositiveInt
)) {
1449 $json['valuePositiveInt'] = $this->valuePositiveInt
;
1451 if (isset($this->valueString
)) {
1452 $json['valueString'] = $this->valueString
;
1454 if (isset($this->valueTime
)) {
1455 $json['valueTime'] = $this->valueTime
;
1457 if (isset($this->valueUnsignedInt
)) {
1458 $json['valueUnsignedInt'] = $this->valueUnsignedInt
;
1460 if (isset($this->valueUri
)) {
1461 $json['valueUri'] = $this->valueUri
;
1463 if (isset($this->valueUrl
)) {
1464 $json['valueUrl'] = $this->valueUrl
;
1466 if (isset($this->valueUuid
)) {
1467 $json['valueUuid'] = $this->valueUuid
;
1469 if (isset($this->valueAddress
)) {
1470 $json['valueAddress'] = $this->valueAddress
;
1472 if (isset($this->valueAge
)) {
1473 $json['valueAge'] = $this->valueAge
;
1475 if (isset($this->valueAnnotation
)) {
1476 $json['valueAnnotation'] = $this->valueAnnotation
;
1478 if (isset($this->valueAttachment
)) {
1479 $json['valueAttachment'] = $this->valueAttachment
;
1481 if (isset($this->valueCodeableConcept
)) {
1482 $json['valueCodeableConcept'] = $this->valueCodeableConcept
;
1484 if (isset($this->valueCoding
)) {
1485 $json['valueCoding'] = $this->valueCoding
;
1487 if (isset($this->valueContactPoint
)) {
1488 $json['valueContactPoint'] = $this->valueContactPoint
;
1490 if (isset($this->valueCount
)) {
1491 $json['valueCount'] = $this->valueCount
;
1493 if (isset($this->valueDistance
)) {
1494 $json['valueDistance'] = $this->valueDistance
;
1496 if (isset($this->valueDuration
)) {
1497 $json['valueDuration'] = $this->valueDuration
;
1499 if (isset($this->valueHumanName
)) {
1500 $json['valueHumanName'] = $this->valueHumanName
;
1502 if (isset($this->valueIdentifier
)) {
1503 $json['valueIdentifier'] = $this->valueIdentifier
;
1505 if (isset($this->valueMoney
)) {
1506 $json['valueMoney'] = $this->valueMoney
;
1508 if (isset($this->valuePeriod
)) {
1509 $json['valuePeriod'] = $this->valuePeriod
;
1511 if (isset($this->valueQuantity
)) {
1512 $json['valueQuantity'] = $this->valueQuantity
;
1514 if (isset($this->valueRange
)) {
1515 $json['valueRange'] = $this->valueRange
;
1517 if (isset($this->valueRatio
)) {
1518 $json['valueRatio'] = $this->valueRatio
;
1520 if (isset($this->valueReference
)) {
1521 $json['valueReference'] = $this->valueReference
;
1523 if (isset($this->valueSampledData
)) {
1524 $json['valueSampledData'] = $this->valueSampledData
;
1526 if (isset($this->valueSignature
)) {
1527 $json['valueSignature'] = $this->valueSignature
;
1529 if (isset($this->valueTiming
)) {
1530 $json['valueTiming'] = $this->valueTiming
;
1532 if (isset($this->valueContactDetail
)) {
1533 $json['valueContactDetail'] = $this->valueContactDetail
;
1535 if (isset($this->valueContributor
)) {
1536 $json['valueContributor'] = $this->valueContributor
;
1538 if (isset($this->valueDataRequirement
)) {
1539 $json['valueDataRequirement'] = $this->valueDataRequirement
;
1541 if (isset($this->valueExpression
)) {
1542 $json['valueExpression'] = $this->valueExpression
;
1544 if (isset($this->valueParameterDefinition
)) {
1545 $json['valueParameterDefinition'] = $this->valueParameterDefinition
;
1547 if (isset($this->valueRelatedArtifact
)) {
1548 $json['valueRelatedArtifact'] = $this->valueRelatedArtifact
;
1550 if (isset($this->valueTriggerDefinition
)) {
1551 $json['valueTriggerDefinition'] = $this->valueTriggerDefinition
;
1553 if (isset($this->valueUsageContext
)) {
1554 $json['valueUsageContext'] = $this->valueUsageContext
;
1556 if (isset($this->valueDosage
)) {
1557 $json['valueDosage'] = $this->valueDosage
;
1559 if (isset($this->url
)) {
1560 $json['url'] = $this->url
;
1566 * @param boolean $returnSXE
1567 * @param \SimpleXMLElement $sxe
1568 * @return string|\SimpleXMLElement
1570 public function xmlSerialize($returnSXE = false, $sxe = null)
1572 if (null === $sxe) {
1573 $sxe = new \
SimpleXMLElement('<Extension xmlns="http://hl7.org/fhir"></Extension>');
1575 parent
::xmlSerialize(true, $sxe);
1576 if (isset($this->valueBase64Binary
)) {
1577 $this->valueBase64Binary
->xmlSerialize(true, $sxe->addChild('valueBase64Binary'));
1579 if (isset($this->valueBoolean
)) {
1580 $this->valueBoolean
->xmlSerialize(true, $sxe->addChild('valueBoolean'));
1582 if (isset($this->valueCanonical
)) {
1583 $this->valueCanonical
->xmlSerialize(true, $sxe->addChild('valueCanonical'));
1585 if (isset($this->valueCode
)) {
1586 $this->valueCode
->xmlSerialize(true, $sxe->addChild('valueCode'));
1588 if (isset($this->valueDate
)) {
1589 $this->valueDate
->xmlSerialize(true, $sxe->addChild('valueDate'));
1591 if (isset($this->valueDateTime
)) {
1592 $this->valueDateTime
->xmlSerialize(true, $sxe->addChild('valueDateTime'));
1594 if (isset($this->valueDecimal
)) {
1595 $this->valueDecimal
->xmlSerialize(true, $sxe->addChild('valueDecimal'));
1597 if (isset($this->valueId
)) {
1598 $this->valueId
->xmlSerialize(true, $sxe->addChild('valueId'));
1600 if (isset($this->valueInstant
)) {
1601 $this->valueInstant
->xmlSerialize(true, $sxe->addChild('valueInstant'));
1603 if (isset($this->valueInteger
)) {
1604 $this->valueInteger
->xmlSerialize(true, $sxe->addChild('valueInteger'));
1606 if (isset($this->valueMarkdown
)) {
1607 $this->valueMarkdown
->xmlSerialize(true, $sxe->addChild('valueMarkdown'));
1609 if (isset($this->valueOid
)) {
1610 $this->valueOid
->xmlSerialize(true, $sxe->addChild('valueOid'));
1612 if (isset($this->valuePositiveInt
)) {
1613 $this->valuePositiveInt
->xmlSerialize(true, $sxe->addChild('valuePositiveInt'));
1615 if (isset($this->valueString
)) {
1616 $this->valueString
->xmlSerialize(true, $sxe->addChild('valueString'));
1618 if (isset($this->valueTime
)) {
1619 $this->valueTime
->xmlSerialize(true, $sxe->addChild('valueTime'));
1621 if (isset($this->valueUnsignedInt
)) {
1622 $this->valueUnsignedInt
->xmlSerialize(true, $sxe->addChild('valueUnsignedInt'));
1624 if (isset($this->valueUri
)) {
1625 $this->valueUri
->xmlSerialize(true, $sxe->addChild('valueUri'));
1627 if (isset($this->valueUrl
)) {
1628 $this->valueUrl
->xmlSerialize(true, $sxe->addChild('valueUrl'));
1630 if (isset($this->valueUuid
)) {
1631 $this->valueUuid
->xmlSerialize(true, $sxe->addChild('valueUuid'));
1633 if (isset($this->valueAddress
)) {
1634 $this->valueAddress
->xmlSerialize(true, $sxe->addChild('valueAddress'));
1636 if (isset($this->valueAge
)) {
1637 $this->valueAge
->xmlSerialize(true, $sxe->addChild('valueAge'));
1639 if (isset($this->valueAnnotation
)) {
1640 $this->valueAnnotation
->xmlSerialize(true, $sxe->addChild('valueAnnotation'));
1642 if (isset($this->valueAttachment
)) {
1643 $this->valueAttachment
->xmlSerialize(true, $sxe->addChild('valueAttachment'));
1645 if (isset($this->valueCodeableConcept
)) {
1646 $this->valueCodeableConcept
->xmlSerialize(true, $sxe->addChild('valueCodeableConcept'));
1648 if (isset($this->valueCoding
)) {
1649 $this->valueCoding
->xmlSerialize(true, $sxe->addChild('valueCoding'));
1651 if (isset($this->valueContactPoint
)) {
1652 $this->valueContactPoint
->xmlSerialize(true, $sxe->addChild('valueContactPoint'));
1654 if (isset($this->valueCount
)) {
1655 $this->valueCount
->xmlSerialize(true, $sxe->addChild('valueCount'));
1657 if (isset($this->valueDistance
)) {
1658 $this->valueDistance
->xmlSerialize(true, $sxe->addChild('valueDistance'));
1660 if (isset($this->valueDuration
)) {
1661 $this->valueDuration
->xmlSerialize(true, $sxe->addChild('valueDuration'));
1663 if (isset($this->valueHumanName
)) {
1664 $this->valueHumanName
->xmlSerialize(true, $sxe->addChild('valueHumanName'));
1666 if (isset($this->valueIdentifier
)) {
1667 $this->valueIdentifier
->xmlSerialize(true, $sxe->addChild('valueIdentifier'));
1669 if (isset($this->valueMoney
)) {
1670 $this->valueMoney
->xmlSerialize(true, $sxe->addChild('valueMoney'));
1672 if (isset($this->valuePeriod
)) {
1673 $this->valuePeriod
->xmlSerialize(true, $sxe->addChild('valuePeriod'));
1675 if (isset($this->valueQuantity
)) {
1676 $this->valueQuantity
->xmlSerialize(true, $sxe->addChild('valueQuantity'));
1678 if (isset($this->valueRange
)) {
1679 $this->valueRange
->xmlSerialize(true, $sxe->addChild('valueRange'));
1681 if (isset($this->valueRatio
)) {
1682 $this->valueRatio
->xmlSerialize(true, $sxe->addChild('valueRatio'));
1684 if (isset($this->valueReference
)) {
1685 $this->valueReference
->xmlSerialize(true, $sxe->addChild('valueReference'));
1687 if (isset($this->valueSampledData
)) {
1688 $this->valueSampledData
->xmlSerialize(true, $sxe->addChild('valueSampledData'));
1690 if (isset($this->valueSignature
)) {
1691 $this->valueSignature
->xmlSerialize(true, $sxe->addChild('valueSignature'));
1693 if (isset($this->valueTiming
)) {
1694 $this->valueTiming
->xmlSerialize(true, $sxe->addChild('valueTiming'));
1696 if (isset($this->valueContactDetail
)) {
1697 $this->valueContactDetail
->xmlSerialize(true, $sxe->addChild('valueContactDetail'));
1699 if (isset($this->valueContributor
)) {
1700 $this->valueContributor
->xmlSerialize(true, $sxe->addChild('valueContributor'));
1702 if (isset($this->valueDataRequirement
)) {
1703 $this->valueDataRequirement
->xmlSerialize(true, $sxe->addChild('valueDataRequirement'));
1705 if (isset($this->valueExpression
)) {
1706 $this->valueExpression
->xmlSerialize(true, $sxe->addChild('valueExpression'));
1708 if (isset($this->valueParameterDefinition
)) {
1709 $this->valueParameterDefinition
->xmlSerialize(true, $sxe->addChild('valueParameterDefinition'));
1711 if (isset($this->valueRelatedArtifact
)) {
1712 $this->valueRelatedArtifact
->xmlSerialize(true, $sxe->addChild('valueRelatedArtifact'));
1714 if (isset($this->valueTriggerDefinition
)) {
1715 $this->valueTriggerDefinition
->xmlSerialize(true, $sxe->addChild('valueTriggerDefinition'));
1717 if (isset($this->valueUsageContext
)) {
1718 $this->valueUsageContext
->xmlSerialize(true, $sxe->addChild('valueUsageContext'));
1720 if (isset($this->valueDosage
)) {
1721 $this->valueDosage
->xmlSerialize(true, $sxe->addChild('valueDosage'));
1723 if (isset($this->url
)) {
1724 $urlElement = $sxe->addChild('url');
1725 $urlElement->addAttribute('value', (string)$this->url
);
1730 return $sxe->saveXML();