1 <?php
namespace HL7\FHIR\STU3\FHIRResource\FHIRStructureMap
;
4 * This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
5 * class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
7 * Class creation date: February 10th, 2018
10 use HL7\FHIR\STU3\FHIRElement\FHIRBackboneElement
;
13 * A Map of relationships between 2 structures that can be used to transform data.
15 class FHIRStructureMapSource
extends FHIRBackboneElement
implements \JsonSerializable
18 * Type or variable this rule applies to.
19 * @var \HL7\FHIR\STU3\FHIRElement\FHIRId
21 public $context = null;
24 * Specified minimum cardinality for the element. This is optional; if present, it acts an implicit check on the input content.
25 * @var \HL7\FHIR\STU3\FHIRElement\FHIRInteger
30 * Specified maximum cardinality for the element - a number or a "*". This is optional; if present, it acts an implicit check on the input content (* just serves as documentation; it's the default value).
31 * @var \HL7\FHIR\STU3\FHIRElement\FHIRString
36 * Specified type for the element. This works as a condition on the mapping - use for polymorphic elements.
37 * @var \HL7\FHIR\STU3\FHIRElement\FHIRString
42 * @var \HL7\FHIR\STU3\FHIRElement\FHIRBase64Binary
44 public $defaultValueBase64Binary = null;
47 * @var \HL7\FHIR\STU3\FHIRElement\FHIRBoolean
49 public $defaultValueBoolean = null;
52 * @var \HL7\FHIR\STU3\FHIRElement\FHIRCode
54 public $defaultValueCode = null;
57 * @var \HL7\FHIR\STU3\FHIRElement\FHIRDate
59 public $defaultValueDate = null;
62 * @var \HL7\FHIR\STU3\FHIRElement\FHIRDateTime
64 public $defaultValueDateTime = null;
67 * @var \HL7\FHIR\STU3\FHIRElement\FHIRDecimal
69 public $defaultValueDecimal = null;
72 * @var \HL7\FHIR\STU3\FHIRElement\FHIRId
74 public $defaultValueId = null;
77 * @var \HL7\FHIR\STU3\FHIRElement\FHIRInstant
79 public $defaultValueInstant = null;
82 * @var \HL7\FHIR\STU3\FHIRElement\FHIRInteger
84 public $defaultValueInteger = null;
87 * @var \HL7\FHIR\STU3\FHIRElement\FHIRMarkdown
89 public $defaultValueMarkdown = null;
92 * @var \HL7\FHIR\STU3\FHIRElement\FHIROid
94 public $defaultValueOid = null;
97 * @var \HL7\FHIR\STU3\FHIRElement\FHIRPositiveInt
99 public $defaultValuePositiveInt = null;
102 * @var \HL7\FHIR\STU3\FHIRElement\FHIRString
104 public $defaultValueString = null;
107 * @var \HL7\FHIR\STU3\FHIRElement\FHIRTime
109 public $defaultValueTime = null;
112 * @var \HL7\FHIR\STU3\FHIRElement\FHIRUnsignedInt
114 public $defaultValueUnsignedInt = null;
117 * @var \HL7\FHIR\STU3\FHIRElement\FHIRUri
119 public $defaultValueUri = null;
122 * @var \HL7\FHIR\STU3\FHIRElement\FHIRAddress
124 public $defaultValueAddress = null;
127 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRAge
129 public $defaultValueAge = null;
132 * @var \HL7\FHIR\STU3\FHIRElement\FHIRAnnotation
134 public $defaultValueAnnotation = null;
137 * @var \HL7\FHIR\STU3\FHIRElement\FHIRAttachment
139 public $defaultValueAttachment = null;
142 * @var \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept
144 public $defaultValueCodeableConcept = null;
147 * @var \HL7\FHIR\STU3\FHIRElement\FHIRCoding
149 public $defaultValueCoding = null;
152 * @var \HL7\FHIR\STU3\FHIRElement\FHIRContactPoint
154 public $defaultValueContactPoint = null;
157 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRCount
159 public $defaultValueCount = null;
162 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDistance
164 public $defaultValueDistance = null;
167 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDuration
169 public $defaultValueDuration = null;
172 * @var \HL7\FHIR\STU3\FHIRElement\FHIRHumanName
174 public $defaultValueHumanName = null;
177 * @var \HL7\FHIR\STU3\FHIRElement\FHIRIdentifier
179 public $defaultValueIdentifier = null;
182 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRMoney
184 public $defaultValueMoney = null;
187 * @var \HL7\FHIR\STU3\FHIRElement\FHIRPeriod
189 public $defaultValuePeriod = null;
192 * @var \HL7\FHIR\STU3\FHIRElement\FHIRQuantity
194 public $defaultValueQuantity = null;
197 * @var \HL7\FHIR\STU3\FHIRElement\FHIRRange
199 public $defaultValueRange = null;
202 * @var \HL7\FHIR\STU3\FHIRElement\FHIRRatio
204 public $defaultValueRatio = null;
207 * @var \HL7\FHIR\STU3\FHIRElement\FHIRReference
209 public $defaultValueReference = null;
212 * @var \HL7\FHIR\STU3\FHIRElement\FHIRSampledData
214 public $defaultValueSampledData = null;
217 * @var \HL7\FHIR\STU3\FHIRElement\FHIRSignature
219 public $defaultValueSignature = null;
222 * @var \HL7\FHIR\STU3\FHIRElement\FHIRTiming
224 public $defaultValueTiming = null;
227 * @var \HL7\FHIR\STU3\FHIRElement\FHIRMeta
229 public $defaultValueMeta = null;
232 * Optional field for this source.
233 * @var \HL7\FHIR\STU3\FHIRElement\FHIRString
235 public $element = null;
238 * How to handle the list mode for this element.
239 * @var \HL7\FHIR\STU3\FHIRElement\FHIRStructureMapSourceListMode
241 public $listMode = null;
244 * Named context for field, if a field is specified.
245 * @var \HL7\FHIR\STU3\FHIRElement\FHIRId
247 public $variable = null;
250 * FHIRPath expression - must be true or the rule does not apply.
251 * @var \HL7\FHIR\STU3\FHIRElement\FHIRString
253 public $condition = null;
256 * FHIRPath expression - must be true or the mapping engine throws an error instead of completing.
257 * @var \HL7\FHIR\STU3\FHIRElement\FHIRString
259 public $check = null;
264 private $_fhirElementName = 'StructureMap.Source';
267 * Type or variable this rule applies to.
268 * @return \HL7\FHIR\STU3\FHIRElement\FHIRId
270 public function getContext()
272 return $this->context
;
276 * Type or variable this rule applies to.
277 * @param \HL7\FHIR\STU3\FHIRElement\FHIRId $context
280 public function setContext($context)
282 $this->context
= $context;
287 * Specified minimum cardinality for the element. This is optional; if present, it acts an implicit check on the input content.
288 * @return \HL7\FHIR\STU3\FHIRElement\FHIRInteger
290 public function getMin()
296 * Specified minimum cardinality for the element. This is optional; if present, it acts an implicit check on the input content.
297 * @param \HL7\FHIR\STU3\FHIRElement\FHIRInteger $min
300 public function setMin($min)
307 * Specified maximum cardinality for the element - a number or a "*". This is optional; if present, it acts an implicit check on the input content (* just serves as documentation; it's the default value).
308 * @return \HL7\FHIR\STU3\FHIRElement\FHIRString
310 public function getMax()
316 * Specified maximum cardinality for the element - a number or a "*". This is optional; if present, it acts an implicit check on the input content (* just serves as documentation; it's the default value).
317 * @param \HL7\FHIR\STU3\FHIRElement\FHIRString $max
320 public function setMax($max)
327 * Specified type for the element. This works as a condition on the mapping - use for polymorphic elements.
328 * @return \HL7\FHIR\STU3\FHIRElement\FHIRString
330 public function getType()
336 * Specified type for the element. This works as a condition on the mapping - use for polymorphic elements.
337 * @param \HL7\FHIR\STU3\FHIRElement\FHIRString $type
340 public function setType($type)
347 * @return \HL7\FHIR\STU3\FHIRElement\FHIRBase64Binary
349 public function getDefaultValueBase64Binary()
351 return $this->defaultValueBase64Binary
;
355 * @param \HL7\FHIR\STU3\FHIRElement\FHIRBase64Binary $defaultValueBase64Binary
358 public function setDefaultValueBase64Binary($defaultValueBase64Binary)
360 $this->defaultValueBase64Binary
= $defaultValueBase64Binary;
365 * @return \HL7\FHIR\STU3\FHIRElement\FHIRBoolean
367 public function getDefaultValueBoolean()
369 return $this->defaultValueBoolean
;
373 * @param \HL7\FHIR\STU3\FHIRElement\FHIRBoolean $defaultValueBoolean
376 public function setDefaultValueBoolean($defaultValueBoolean)
378 $this->defaultValueBoolean
= $defaultValueBoolean;
383 * @return \HL7\FHIR\STU3\FHIRElement\FHIRCode
385 public function getDefaultValueCode()
387 return $this->defaultValueCode
;
391 * @param \HL7\FHIR\STU3\FHIRElement\FHIRCode $defaultValueCode
394 public function setDefaultValueCode($defaultValueCode)
396 $this->defaultValueCode
= $defaultValueCode;
401 * @return \HL7\FHIR\STU3\FHIRElement\FHIRDate
403 public function getDefaultValueDate()
405 return $this->defaultValueDate
;
409 * @param \HL7\FHIR\STU3\FHIRElement\FHIRDate $defaultValueDate
412 public function setDefaultValueDate($defaultValueDate)
414 $this->defaultValueDate
= $defaultValueDate;
419 * @return \HL7\FHIR\STU3\FHIRElement\FHIRDateTime
421 public function getDefaultValueDateTime()
423 return $this->defaultValueDateTime
;
427 * @param \HL7\FHIR\STU3\FHIRElement\FHIRDateTime $defaultValueDateTime
430 public function setDefaultValueDateTime($defaultValueDateTime)
432 $this->defaultValueDateTime
= $defaultValueDateTime;
437 * @return \HL7\FHIR\STU3\FHIRElement\FHIRDecimal
439 public function getDefaultValueDecimal()
441 return $this->defaultValueDecimal
;
445 * @param \HL7\FHIR\STU3\FHIRElement\FHIRDecimal $defaultValueDecimal
448 public function setDefaultValueDecimal($defaultValueDecimal)
450 $this->defaultValueDecimal
= $defaultValueDecimal;
455 * @return \HL7\FHIR\STU3\FHIRElement\FHIRId
457 public function getDefaultValueId()
459 return $this->defaultValueId
;
463 * @param \HL7\FHIR\STU3\FHIRElement\FHIRId $defaultValueId
466 public function setDefaultValueId($defaultValueId)
468 $this->defaultValueId
= $defaultValueId;
473 * @return \HL7\FHIR\STU3\FHIRElement\FHIRInstant
475 public function getDefaultValueInstant()
477 return $this->defaultValueInstant
;
481 * @param \HL7\FHIR\STU3\FHIRElement\FHIRInstant $defaultValueInstant
484 public function setDefaultValueInstant($defaultValueInstant)
486 $this->defaultValueInstant
= $defaultValueInstant;
491 * @return \HL7\FHIR\STU3\FHIRElement\FHIRInteger
493 public function getDefaultValueInteger()
495 return $this->defaultValueInteger
;
499 * @param \HL7\FHIR\STU3\FHIRElement\FHIRInteger $defaultValueInteger
502 public function setDefaultValueInteger($defaultValueInteger)
504 $this->defaultValueInteger
= $defaultValueInteger;
509 * @return \HL7\FHIR\STU3\FHIRElement\FHIRMarkdown
511 public function getDefaultValueMarkdown()
513 return $this->defaultValueMarkdown
;
517 * @param \HL7\FHIR\STU3\FHIRElement\FHIRMarkdown $defaultValueMarkdown
520 public function setDefaultValueMarkdown($defaultValueMarkdown)
522 $this->defaultValueMarkdown
= $defaultValueMarkdown;
527 * @return \HL7\FHIR\STU3\FHIRElement\FHIROid
529 public function getDefaultValueOid()
531 return $this->defaultValueOid
;
535 * @param \HL7\FHIR\STU3\FHIRElement\FHIROid $defaultValueOid
538 public function setDefaultValueOid($defaultValueOid)
540 $this->defaultValueOid
= $defaultValueOid;
545 * @return \HL7\FHIR\STU3\FHIRElement\FHIRPositiveInt
547 public function getDefaultValuePositiveInt()
549 return $this->defaultValuePositiveInt
;
553 * @param \HL7\FHIR\STU3\FHIRElement\FHIRPositiveInt $defaultValuePositiveInt
556 public function setDefaultValuePositiveInt($defaultValuePositiveInt)
558 $this->defaultValuePositiveInt
= $defaultValuePositiveInt;
563 * @return \HL7\FHIR\STU3\FHIRElement\FHIRString
565 public function getDefaultValueString()
567 return $this->defaultValueString
;
571 * @param \HL7\FHIR\STU3\FHIRElement\FHIRString $defaultValueString
574 public function setDefaultValueString($defaultValueString)
576 $this->defaultValueString
= $defaultValueString;
581 * @return \HL7\FHIR\STU3\FHIRElement\FHIRTime
583 public function getDefaultValueTime()
585 return $this->defaultValueTime
;
589 * @param \HL7\FHIR\STU3\FHIRElement\FHIRTime $defaultValueTime
592 public function setDefaultValueTime($defaultValueTime)
594 $this->defaultValueTime
= $defaultValueTime;
599 * @return \HL7\FHIR\STU3\FHIRElement\FHIRUnsignedInt
601 public function getDefaultValueUnsignedInt()
603 return $this->defaultValueUnsignedInt
;
607 * @param \HL7\FHIR\STU3\FHIRElement\FHIRUnsignedInt $defaultValueUnsignedInt
610 public function setDefaultValueUnsignedInt($defaultValueUnsignedInt)
612 $this->defaultValueUnsignedInt
= $defaultValueUnsignedInt;
617 * @return \HL7\FHIR\STU3\FHIRElement\FHIRUri
619 public function getDefaultValueUri()
621 return $this->defaultValueUri
;
625 * @param \HL7\FHIR\STU3\FHIRElement\FHIRUri $defaultValueUri
628 public function setDefaultValueUri($defaultValueUri)
630 $this->defaultValueUri
= $defaultValueUri;
635 * @return \HL7\FHIR\STU3\FHIRElement\FHIRAddress
637 public function getDefaultValueAddress()
639 return $this->defaultValueAddress
;
643 * @param \HL7\FHIR\STU3\FHIRElement\FHIRAddress $defaultValueAddress
646 public function setDefaultValueAddress($defaultValueAddress)
648 $this->defaultValueAddress
= $defaultValueAddress;
653 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRAge
655 public function getDefaultValueAge()
657 return $this->defaultValueAge
;
661 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRAge $defaultValueAge
664 public function setDefaultValueAge($defaultValueAge)
666 $this->defaultValueAge
= $defaultValueAge;
671 * @return \HL7\FHIR\STU3\FHIRElement\FHIRAnnotation
673 public function getDefaultValueAnnotation()
675 return $this->defaultValueAnnotation
;
679 * @param \HL7\FHIR\STU3\FHIRElement\FHIRAnnotation $defaultValueAnnotation
682 public function setDefaultValueAnnotation($defaultValueAnnotation)
684 $this->defaultValueAnnotation
= $defaultValueAnnotation;
689 * @return \HL7\FHIR\STU3\FHIRElement\FHIRAttachment
691 public function getDefaultValueAttachment()
693 return $this->defaultValueAttachment
;
697 * @param \HL7\FHIR\STU3\FHIRElement\FHIRAttachment $defaultValueAttachment
700 public function setDefaultValueAttachment($defaultValueAttachment)
702 $this->defaultValueAttachment
= $defaultValueAttachment;
707 * @return \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept
709 public function getDefaultValueCodeableConcept()
711 return $this->defaultValueCodeableConcept
;
715 * @param \HL7\FHIR\STU3\FHIRElement\FHIRCodeableConcept $defaultValueCodeableConcept
718 public function setDefaultValueCodeableConcept($defaultValueCodeableConcept)
720 $this->defaultValueCodeableConcept
= $defaultValueCodeableConcept;
725 * @return \HL7\FHIR\STU3\FHIRElement\FHIRCoding
727 public function getDefaultValueCoding()
729 return $this->defaultValueCoding
;
733 * @param \HL7\FHIR\STU3\FHIRElement\FHIRCoding $defaultValueCoding
736 public function setDefaultValueCoding($defaultValueCoding)
738 $this->defaultValueCoding
= $defaultValueCoding;
743 * @return \HL7\FHIR\STU3\FHIRElement\FHIRContactPoint
745 public function getDefaultValueContactPoint()
747 return $this->defaultValueContactPoint
;
751 * @param \HL7\FHIR\STU3\FHIRElement\FHIRContactPoint $defaultValueContactPoint
754 public function setDefaultValueContactPoint($defaultValueContactPoint)
756 $this->defaultValueContactPoint
= $defaultValueContactPoint;
761 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRCount
763 public function getDefaultValueCount()
765 return $this->defaultValueCount
;
769 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRCount $defaultValueCount
772 public function setDefaultValueCount($defaultValueCount)
774 $this->defaultValueCount
= $defaultValueCount;
779 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDistance
781 public function getDefaultValueDistance()
783 return $this->defaultValueDistance
;
787 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDistance $defaultValueDistance
790 public function setDefaultValueDistance($defaultValueDistance)
792 $this->defaultValueDistance
= $defaultValueDistance;
797 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDuration
799 public function getDefaultValueDuration()
801 return $this->defaultValueDuration
;
805 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRDuration $defaultValueDuration
808 public function setDefaultValueDuration($defaultValueDuration)
810 $this->defaultValueDuration
= $defaultValueDuration;
815 * @return \HL7\FHIR\STU3\FHIRElement\FHIRHumanName
817 public function getDefaultValueHumanName()
819 return $this->defaultValueHumanName
;
823 * @param \HL7\FHIR\STU3\FHIRElement\FHIRHumanName $defaultValueHumanName
826 public function setDefaultValueHumanName($defaultValueHumanName)
828 $this->defaultValueHumanName
= $defaultValueHumanName;
833 * @return \HL7\FHIR\STU3\FHIRElement\FHIRIdentifier
835 public function getDefaultValueIdentifier()
837 return $this->defaultValueIdentifier
;
841 * @param \HL7\FHIR\STU3\FHIRElement\FHIRIdentifier $defaultValueIdentifier
844 public function setDefaultValueIdentifier($defaultValueIdentifier)
846 $this->defaultValueIdentifier
= $defaultValueIdentifier;
851 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRMoney
853 public function getDefaultValueMoney()
855 return $this->defaultValueMoney
;
859 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity\FHIRMoney $defaultValueMoney
862 public function setDefaultValueMoney($defaultValueMoney)
864 $this->defaultValueMoney
= $defaultValueMoney;
869 * @return \HL7\FHIR\STU3\FHIRElement\FHIRPeriod
871 public function getDefaultValuePeriod()
873 return $this->defaultValuePeriod
;
877 * @param \HL7\FHIR\STU3\FHIRElement\FHIRPeriod $defaultValuePeriod
880 public function setDefaultValuePeriod($defaultValuePeriod)
882 $this->defaultValuePeriod
= $defaultValuePeriod;
887 * @return \HL7\FHIR\STU3\FHIRElement\FHIRQuantity
889 public function getDefaultValueQuantity()
891 return $this->defaultValueQuantity
;
895 * @param \HL7\FHIR\STU3\FHIRElement\FHIRQuantity $defaultValueQuantity
898 public function setDefaultValueQuantity($defaultValueQuantity)
900 $this->defaultValueQuantity
= $defaultValueQuantity;
905 * @return \HL7\FHIR\STU3\FHIRElement\FHIRRange
907 public function getDefaultValueRange()
909 return $this->defaultValueRange
;
913 * @param \HL7\FHIR\STU3\FHIRElement\FHIRRange $defaultValueRange
916 public function setDefaultValueRange($defaultValueRange)
918 $this->defaultValueRange
= $defaultValueRange;
923 * @return \HL7\FHIR\STU3\FHIRElement\FHIRRatio
925 public function getDefaultValueRatio()
927 return $this->defaultValueRatio
;
931 * @param \HL7\FHIR\STU3\FHIRElement\FHIRRatio $defaultValueRatio
934 public function setDefaultValueRatio($defaultValueRatio)
936 $this->defaultValueRatio
= $defaultValueRatio;
941 * @return \HL7\FHIR\STU3\FHIRElement\FHIRReference
943 public function getDefaultValueReference()
945 return $this->defaultValueReference
;
949 * @param \HL7\FHIR\STU3\FHIRElement\FHIRReference $defaultValueReference
952 public function setDefaultValueReference($defaultValueReference)
954 $this->defaultValueReference
= $defaultValueReference;
959 * @return \HL7\FHIR\STU3\FHIRElement\FHIRSampledData
961 public function getDefaultValueSampledData()
963 return $this->defaultValueSampledData
;
967 * @param \HL7\FHIR\STU3\FHIRElement\FHIRSampledData $defaultValueSampledData
970 public function setDefaultValueSampledData($defaultValueSampledData)
972 $this->defaultValueSampledData
= $defaultValueSampledData;
977 * @return \HL7\FHIR\STU3\FHIRElement\FHIRSignature
979 public function getDefaultValueSignature()
981 return $this->defaultValueSignature
;
985 * @param \HL7\FHIR\STU3\FHIRElement\FHIRSignature $defaultValueSignature
988 public function setDefaultValueSignature($defaultValueSignature)
990 $this->defaultValueSignature
= $defaultValueSignature;
995 * @return \HL7\FHIR\STU3\FHIRElement\FHIRTiming
997 public function getDefaultValueTiming()
999 return $this->defaultValueTiming
;
1003 * @param \HL7\FHIR\STU3\FHIRElement\FHIRTiming $defaultValueTiming
1006 public function setDefaultValueTiming($defaultValueTiming)
1008 $this->defaultValueTiming
= $defaultValueTiming;
1013 * @return \HL7\FHIR\STU3\FHIRElement\FHIRMeta
1015 public function getDefaultValueMeta()
1017 return $this->defaultValueMeta
;
1021 * @param \HL7\FHIR\STU3\FHIRElement\FHIRMeta $defaultValueMeta
1024 public function setDefaultValueMeta($defaultValueMeta)
1026 $this->defaultValueMeta
= $defaultValueMeta;
1031 * Optional field for this source.
1032 * @return \HL7\FHIR\STU3\FHIRElement\FHIRString
1034 public function getElement()
1036 return $this->element
;
1040 * Optional field for this source.
1041 * @param \HL7\FHIR\STU3\FHIRElement\FHIRString $element
1044 public function setElement($element)
1046 $this->element
= $element;
1051 * How to handle the list mode for this element.
1052 * @return \HL7\FHIR\STU3\FHIRElement\FHIRStructureMapSourceListMode
1054 public function getListMode()
1056 return $this->listMode
;
1060 * How to handle the list mode for this element.
1061 * @param \HL7\FHIR\STU3\FHIRElement\FHIRStructureMapSourceListMode $listMode
1064 public function setListMode($listMode)
1066 $this->listMode
= $listMode;
1071 * Named context for field, if a field is specified.
1072 * @return \HL7\FHIR\STU3\FHIRElement\FHIRId
1074 public function getVariable()
1076 return $this->variable
;
1080 * Named context for field, if a field is specified.
1081 * @param \HL7\FHIR\STU3\FHIRElement\FHIRId $variable
1084 public function setVariable($variable)
1086 $this->variable
= $variable;
1091 * FHIRPath expression - must be true or the rule does not apply.
1092 * @return \HL7\FHIR\STU3\FHIRElement\FHIRString
1094 public function getCondition()
1096 return $this->condition
;
1100 * FHIRPath expression - must be true or the rule does not apply.
1101 * @param \HL7\FHIR\STU3\FHIRElement\FHIRString $condition
1104 public function setCondition($condition)
1106 $this->condition
= $condition;
1111 * FHIRPath expression - must be true or the mapping engine throws an error instead of completing.
1112 * @return \HL7\FHIR\STU3\FHIRElement\FHIRString
1114 public function getCheck()
1116 return $this->check
;
1120 * FHIRPath expression - must be true or the mapping engine throws an error instead of completing.
1121 * @param \HL7\FHIR\STU3\FHIRElement\FHIRString $check
1124 public function setCheck($check)
1126 $this->check
= $check;
1133 public function get_fhirElementName()
1135 return $this->_fhirElementName
;
1139 * @param mixed $data
1141 public function __construct($data = [])
1143 if (is_array($data)) {
1144 if (isset($data['context'])) {
1145 $this->setContext($data['context']);
1147 if (isset($data['min'])) {
1148 $this->setMin($data['min']);
1150 if (isset($data['max'])) {
1151 $this->setMax($data['max']);
1153 if (isset($data['type'])) {
1154 $this->setType($data['type']);
1156 if (isset($data['defaultValueBase64Binary'])) {
1157 $this->setDefaultValueBase64Binary($data['defaultValueBase64Binary']);
1159 if (isset($data['defaultValueBoolean'])) {
1160 $this->setDefaultValueBoolean($data['defaultValueBoolean']);
1162 if (isset($data['defaultValueCode'])) {
1163 $this->setDefaultValueCode($data['defaultValueCode']);
1165 if (isset($data['defaultValueDate'])) {
1166 $this->setDefaultValueDate($data['defaultValueDate']);
1168 if (isset($data['defaultValueDateTime'])) {
1169 $this->setDefaultValueDateTime($data['defaultValueDateTime']);
1171 if (isset($data['defaultValueDecimal'])) {
1172 $this->setDefaultValueDecimal($data['defaultValueDecimal']);
1174 if (isset($data['defaultValueId'])) {
1175 $this->setDefaultValueId($data['defaultValueId']);
1177 if (isset($data['defaultValueInstant'])) {
1178 $this->setDefaultValueInstant($data['defaultValueInstant']);
1180 if (isset($data['defaultValueInteger'])) {
1181 $this->setDefaultValueInteger($data['defaultValueInteger']);
1183 if (isset($data['defaultValueMarkdown'])) {
1184 $this->setDefaultValueMarkdown($data['defaultValueMarkdown']);
1186 if (isset($data['defaultValueOid'])) {
1187 $this->setDefaultValueOid($data['defaultValueOid']);
1189 if (isset($data['defaultValuePositiveInt'])) {
1190 $this->setDefaultValuePositiveInt($data['defaultValuePositiveInt']);
1192 if (isset($data['defaultValueString'])) {
1193 $this->setDefaultValueString($data['defaultValueString']);
1195 if (isset($data['defaultValueTime'])) {
1196 $this->setDefaultValueTime($data['defaultValueTime']);
1198 if (isset($data['defaultValueUnsignedInt'])) {
1199 $this->setDefaultValueUnsignedInt($data['defaultValueUnsignedInt']);
1201 if (isset($data['defaultValueUri'])) {
1202 $this->setDefaultValueUri($data['defaultValueUri']);
1204 if (isset($data['defaultValueAddress'])) {
1205 $this->setDefaultValueAddress($data['defaultValueAddress']);
1207 if (isset($data['defaultValueAge'])) {
1208 $this->setDefaultValueAge($data['defaultValueAge']);
1210 if (isset($data['defaultValueAnnotation'])) {
1211 $this->setDefaultValueAnnotation($data['defaultValueAnnotation']);
1213 if (isset($data['defaultValueAttachment'])) {
1214 $this->setDefaultValueAttachment($data['defaultValueAttachment']);
1216 if (isset($data['defaultValueCodeableConcept'])) {
1217 $this->setDefaultValueCodeableConcept($data['defaultValueCodeableConcept']);
1219 if (isset($data['defaultValueCoding'])) {
1220 $this->setDefaultValueCoding($data['defaultValueCoding']);
1222 if (isset($data['defaultValueContactPoint'])) {
1223 $this->setDefaultValueContactPoint($data['defaultValueContactPoint']);
1225 if (isset($data['defaultValueCount'])) {
1226 $this->setDefaultValueCount($data['defaultValueCount']);
1228 if (isset($data['defaultValueDistance'])) {
1229 $this->setDefaultValueDistance($data['defaultValueDistance']);
1231 if (isset($data['defaultValueDuration'])) {
1232 $this->setDefaultValueDuration($data['defaultValueDuration']);
1234 if (isset($data['defaultValueHumanName'])) {
1235 $this->setDefaultValueHumanName($data['defaultValueHumanName']);
1237 if (isset($data['defaultValueIdentifier'])) {
1238 $this->setDefaultValueIdentifier($data['defaultValueIdentifier']);
1240 if (isset($data['defaultValueMoney'])) {
1241 $this->setDefaultValueMoney($data['defaultValueMoney']);
1243 if (isset($data['defaultValuePeriod'])) {
1244 $this->setDefaultValuePeriod($data['defaultValuePeriod']);
1246 if (isset($data['defaultValueQuantity'])) {
1247 $this->setDefaultValueQuantity($data['defaultValueQuantity']);
1249 if (isset($data['defaultValueRange'])) {
1250 $this->setDefaultValueRange($data['defaultValueRange']);
1252 if (isset($data['defaultValueRatio'])) {
1253 $this->setDefaultValueRatio($data['defaultValueRatio']);
1255 if (isset($data['defaultValueReference'])) {
1256 $this->setDefaultValueReference($data['defaultValueReference']);
1258 if (isset($data['defaultValueSampledData'])) {
1259 $this->setDefaultValueSampledData($data['defaultValueSampledData']);
1261 if (isset($data['defaultValueSignature'])) {
1262 $this->setDefaultValueSignature($data['defaultValueSignature']);
1264 if (isset($data['defaultValueTiming'])) {
1265 $this->setDefaultValueTiming($data['defaultValueTiming']);
1267 if (isset($data['defaultValueMeta'])) {
1268 $this->setDefaultValueMeta($data['defaultValueMeta']);
1270 if (isset($data['element'])) {
1271 $this->setElement($data['element']);
1273 if (isset($data['listMode'])) {
1274 $this->setListMode($data['listMode']);
1276 if (isset($data['variable'])) {
1277 $this->setVariable($data['variable']);
1279 if (isset($data['condition'])) {
1280 $this->setCondition($data['condition']);
1282 if (isset($data['check'])) {
1283 $this->setCheck($data['check']);
1285 } else if (null !== $data) {
1286 throw new \
InvalidArgumentException('$data expected to be array of values, saw "'.gettype($data).'"');
1288 parent
::__construct($data);
1294 public function __toString()
1296 return $this->get_fhirElementName();
1302 public function jsonSerialize()
1304 $json = parent
::jsonSerialize();
1305 if (isset($this->context
)) {
1306 $json['context'] = $this->context
;
1308 if (isset($this->min
)) {
1309 $json['min'] = $this->min
;
1311 if (isset($this->max
)) {
1312 $json['max'] = $this->max
;
1314 if (isset($this->type
)) {
1315 $json['type'] = $this->type
;
1317 if (isset($this->defaultValueBase64Binary
)) {
1318 $json['defaultValueBase64Binary'] = $this->defaultValueBase64Binary
;
1320 if (isset($this->defaultValueBoolean
)) {
1321 $json['defaultValueBoolean'] = $this->defaultValueBoolean
;
1323 if (isset($this->defaultValueCode
)) {
1324 $json['defaultValueCode'] = $this->defaultValueCode
;
1326 if (isset($this->defaultValueDate
)) {
1327 $json['defaultValueDate'] = $this->defaultValueDate
;
1329 if (isset($this->defaultValueDateTime
)) {
1330 $json['defaultValueDateTime'] = $this->defaultValueDateTime
;
1332 if (isset($this->defaultValueDecimal
)) {
1333 $json['defaultValueDecimal'] = $this->defaultValueDecimal
;
1335 if (isset($this->defaultValueId
)) {
1336 $json['defaultValueId'] = $this->defaultValueId
;
1338 if (isset($this->defaultValueInstant
)) {
1339 $json['defaultValueInstant'] = $this->defaultValueInstant
;
1341 if (isset($this->defaultValueInteger
)) {
1342 $json['defaultValueInteger'] = $this->defaultValueInteger
;
1344 if (isset($this->defaultValueMarkdown
)) {
1345 $json['defaultValueMarkdown'] = $this->defaultValueMarkdown
;
1347 if (isset($this->defaultValueOid
)) {
1348 $json['defaultValueOid'] = $this->defaultValueOid
;
1350 if (isset($this->defaultValuePositiveInt
)) {
1351 $json['defaultValuePositiveInt'] = $this->defaultValuePositiveInt
;
1353 if (isset($this->defaultValueString
)) {
1354 $json['defaultValueString'] = $this->defaultValueString
;
1356 if (isset($this->defaultValueTime
)) {
1357 $json['defaultValueTime'] = $this->defaultValueTime
;
1359 if (isset($this->defaultValueUnsignedInt
)) {
1360 $json['defaultValueUnsignedInt'] = $this->defaultValueUnsignedInt
;
1362 if (isset($this->defaultValueUri
)) {
1363 $json['defaultValueUri'] = $this->defaultValueUri
;
1365 if (isset($this->defaultValueAddress
)) {
1366 $json['defaultValueAddress'] = $this->defaultValueAddress
;
1368 if (isset($this->defaultValueAge
)) {
1369 $json['defaultValueAge'] = $this->defaultValueAge
;
1371 if (isset($this->defaultValueAnnotation
)) {
1372 $json['defaultValueAnnotation'] = $this->defaultValueAnnotation
;
1374 if (isset($this->defaultValueAttachment
)) {
1375 $json['defaultValueAttachment'] = $this->defaultValueAttachment
;
1377 if (isset($this->defaultValueCodeableConcept
)) {
1378 $json['defaultValueCodeableConcept'] = $this->defaultValueCodeableConcept
;
1380 if (isset($this->defaultValueCoding
)) {
1381 $json['defaultValueCoding'] = $this->defaultValueCoding
;
1383 if (isset($this->defaultValueContactPoint
)) {
1384 $json['defaultValueContactPoint'] = $this->defaultValueContactPoint
;
1386 if (isset($this->defaultValueCount
)) {
1387 $json['defaultValueCount'] = $this->defaultValueCount
;
1389 if (isset($this->defaultValueDistance
)) {
1390 $json['defaultValueDistance'] = $this->defaultValueDistance
;
1392 if (isset($this->defaultValueDuration
)) {
1393 $json['defaultValueDuration'] = $this->defaultValueDuration
;
1395 if (isset($this->defaultValueHumanName
)) {
1396 $json['defaultValueHumanName'] = $this->defaultValueHumanName
;
1398 if (isset($this->defaultValueIdentifier
)) {
1399 $json['defaultValueIdentifier'] = $this->defaultValueIdentifier
;
1401 if (isset($this->defaultValueMoney
)) {
1402 $json['defaultValueMoney'] = $this->defaultValueMoney
;
1404 if (isset($this->defaultValuePeriod
)) {
1405 $json['defaultValuePeriod'] = $this->defaultValuePeriod
;
1407 if (isset($this->defaultValueQuantity
)) {
1408 $json['defaultValueQuantity'] = $this->defaultValueQuantity
;
1410 if (isset($this->defaultValueRange
)) {
1411 $json['defaultValueRange'] = $this->defaultValueRange
;
1413 if (isset($this->defaultValueRatio
)) {
1414 $json['defaultValueRatio'] = $this->defaultValueRatio
;
1416 if (isset($this->defaultValueReference
)) {
1417 $json['defaultValueReference'] = $this->defaultValueReference
;
1419 if (isset($this->defaultValueSampledData
)) {
1420 $json['defaultValueSampledData'] = $this->defaultValueSampledData
;
1422 if (isset($this->defaultValueSignature
)) {
1423 $json['defaultValueSignature'] = $this->defaultValueSignature
;
1425 if (isset($this->defaultValueTiming
)) {
1426 $json['defaultValueTiming'] = $this->defaultValueTiming
;
1428 if (isset($this->defaultValueMeta
)) {
1429 $json['defaultValueMeta'] = $this->defaultValueMeta
;
1431 if (isset($this->element
)) {
1432 $json['element'] = $this->element
;
1434 if (isset($this->listMode
)) {
1435 $json['listMode'] = $this->listMode
;
1437 if (isset($this->variable
)) {
1438 $json['variable'] = $this->variable
;
1440 if (isset($this->condition
)) {
1441 $json['condition'] = $this->condition
;
1443 if (isset($this->check
)) {
1444 $json['check'] = $this->check
;
1450 * @param boolean $returnSXE
1451 * @param \SimpleXMLElement $sxe
1452 * @return string|\SimpleXMLElement
1454 public function xmlSerialize($returnSXE = false, $sxe = null)
1456 if (null === $sxe) {
1457 $sxe = new \
SimpleXMLElement('<StructureMapSource xmlns="http://hl7.org/fhir"></StructureMapSource>');
1459 parent
::xmlSerialize(true, $sxe);
1460 if (isset($this->context
)) {
1461 $this->context
->xmlSerialize(true, $sxe->addChild('context'));
1463 if (isset($this->min
)) {
1464 $this->min
->xmlSerialize(true, $sxe->addChild('min'));
1466 if (isset($this->max
)) {
1467 $this->max
->xmlSerialize(true, $sxe->addChild('max'));
1469 if (isset($this->type
)) {
1470 $this->type
->xmlSerialize(true, $sxe->addChild('type'));
1472 if (isset($this->defaultValueBase64Binary
)) {
1473 $this->defaultValueBase64Binary
->xmlSerialize(true, $sxe->addChild('defaultValueBase64Binary'));
1475 if (isset($this->defaultValueBoolean
)) {
1476 $this->defaultValueBoolean
->xmlSerialize(true, $sxe->addChild('defaultValueBoolean'));
1478 if (isset($this->defaultValueCode
)) {
1479 $this->defaultValueCode
->xmlSerialize(true, $sxe->addChild('defaultValueCode'));
1481 if (isset($this->defaultValueDate
)) {
1482 $this->defaultValueDate
->xmlSerialize(true, $sxe->addChild('defaultValueDate'));
1484 if (isset($this->defaultValueDateTime
)) {
1485 $this->defaultValueDateTime
->xmlSerialize(true, $sxe->addChild('defaultValueDateTime'));
1487 if (isset($this->defaultValueDecimal
)) {
1488 $this->defaultValueDecimal
->xmlSerialize(true, $sxe->addChild('defaultValueDecimal'));
1490 if (isset($this->defaultValueId
)) {
1491 $this->defaultValueId
->xmlSerialize(true, $sxe->addChild('defaultValueId'));
1493 if (isset($this->defaultValueInstant
)) {
1494 $this->defaultValueInstant
->xmlSerialize(true, $sxe->addChild('defaultValueInstant'));
1496 if (isset($this->defaultValueInteger
)) {
1497 $this->defaultValueInteger
->xmlSerialize(true, $sxe->addChild('defaultValueInteger'));
1499 if (isset($this->defaultValueMarkdown
)) {
1500 $this->defaultValueMarkdown
->xmlSerialize(true, $sxe->addChild('defaultValueMarkdown'));
1502 if (isset($this->defaultValueOid
)) {
1503 $this->defaultValueOid
->xmlSerialize(true, $sxe->addChild('defaultValueOid'));
1505 if (isset($this->defaultValuePositiveInt
)) {
1506 $this->defaultValuePositiveInt
->xmlSerialize(true, $sxe->addChild('defaultValuePositiveInt'));
1508 if (isset($this->defaultValueString
)) {
1509 $this->defaultValueString
->xmlSerialize(true, $sxe->addChild('defaultValueString'));
1511 if (isset($this->defaultValueTime
)) {
1512 $this->defaultValueTime
->xmlSerialize(true, $sxe->addChild('defaultValueTime'));
1514 if (isset($this->defaultValueUnsignedInt
)) {
1515 $this->defaultValueUnsignedInt
->xmlSerialize(true, $sxe->addChild('defaultValueUnsignedInt'));
1517 if (isset($this->defaultValueUri
)) {
1518 $this->defaultValueUri
->xmlSerialize(true, $sxe->addChild('defaultValueUri'));
1520 if (isset($this->defaultValueAddress
)) {
1521 $this->defaultValueAddress
->xmlSerialize(true, $sxe->addChild('defaultValueAddress'));
1523 if (isset($this->defaultValueAge
)) {
1524 $this->defaultValueAge
->xmlSerialize(true, $sxe->addChild('defaultValueAge'));
1526 if (isset($this->defaultValueAnnotation
)) {
1527 $this->defaultValueAnnotation
->xmlSerialize(true, $sxe->addChild('defaultValueAnnotation'));
1529 if (isset($this->defaultValueAttachment
)) {
1530 $this->defaultValueAttachment
->xmlSerialize(true, $sxe->addChild('defaultValueAttachment'));
1532 if (isset($this->defaultValueCodeableConcept
)) {
1533 $this->defaultValueCodeableConcept
->xmlSerialize(true, $sxe->addChild('defaultValueCodeableConcept'));
1535 if (isset($this->defaultValueCoding
)) {
1536 $this->defaultValueCoding
->xmlSerialize(true, $sxe->addChild('defaultValueCoding'));
1538 if (isset($this->defaultValueContactPoint
)) {
1539 $this->defaultValueContactPoint
->xmlSerialize(true, $sxe->addChild('defaultValueContactPoint'));
1541 if (isset($this->defaultValueCount
)) {
1542 $this->defaultValueCount
->xmlSerialize(true, $sxe->addChild('defaultValueCount'));
1544 if (isset($this->defaultValueDistance
)) {
1545 $this->defaultValueDistance
->xmlSerialize(true, $sxe->addChild('defaultValueDistance'));
1547 if (isset($this->defaultValueDuration
)) {
1548 $this->defaultValueDuration
->xmlSerialize(true, $sxe->addChild('defaultValueDuration'));
1550 if (isset($this->defaultValueHumanName
)) {
1551 $this->defaultValueHumanName
->xmlSerialize(true, $sxe->addChild('defaultValueHumanName'));
1553 if (isset($this->defaultValueIdentifier
)) {
1554 $this->defaultValueIdentifier
->xmlSerialize(true, $sxe->addChild('defaultValueIdentifier'));
1556 if (isset($this->defaultValueMoney
)) {
1557 $this->defaultValueMoney
->xmlSerialize(true, $sxe->addChild('defaultValueMoney'));
1559 if (isset($this->defaultValuePeriod
)) {
1560 $this->defaultValuePeriod
->xmlSerialize(true, $sxe->addChild('defaultValuePeriod'));
1562 if (isset($this->defaultValueQuantity
)) {
1563 $this->defaultValueQuantity
->xmlSerialize(true, $sxe->addChild('defaultValueQuantity'));
1565 if (isset($this->defaultValueRange
)) {
1566 $this->defaultValueRange
->xmlSerialize(true, $sxe->addChild('defaultValueRange'));
1568 if (isset($this->defaultValueRatio
)) {
1569 $this->defaultValueRatio
->xmlSerialize(true, $sxe->addChild('defaultValueRatio'));
1571 if (isset($this->defaultValueReference
)) {
1572 $this->defaultValueReference
->xmlSerialize(true, $sxe->addChild('defaultValueReference'));
1574 if (isset($this->defaultValueSampledData
)) {
1575 $this->defaultValueSampledData
->xmlSerialize(true, $sxe->addChild('defaultValueSampledData'));
1577 if (isset($this->defaultValueSignature
)) {
1578 $this->defaultValueSignature
->xmlSerialize(true, $sxe->addChild('defaultValueSignature'));
1580 if (isset($this->defaultValueTiming
)) {
1581 $this->defaultValueTiming
->xmlSerialize(true, $sxe->addChild('defaultValueTiming'));
1583 if (isset($this->defaultValueMeta
)) {
1584 $this->defaultValueMeta
->xmlSerialize(true, $sxe->addChild('defaultValueMeta'));
1586 if (isset($this->element
)) {
1587 $this->element
->xmlSerialize(true, $sxe->addChild('element'));
1589 if (isset($this->listMode
)) {
1590 $this->listMode
->xmlSerialize(true, $sxe->addChild('listMode'));
1592 if (isset($this->variable
)) {
1593 $this->variable
->xmlSerialize(true, $sxe->addChild('variable'));
1595 if (isset($this->condition
)) {
1596 $this->condition
->xmlSerialize(true, $sxe->addChild('condition'));
1598 if (isset($this->check
)) {
1599 $this->check
->xmlSerialize(true, $sxe->addChild('check'));
1604 return $sxe->saveXML();