Skip to content

Commit 92535a6

Browse files
committed
v3.1.0 output
1 parent 3f9234f commit 92535a6

File tree

9,036 files changed

+149233
-12632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

9,036 files changed

+149233
-12632
lines changed

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRBase64BinaryPrimitive.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -79,7 +79,7 @@ class FHIRBase64BinaryPrimitive implements PHPFHIRPrimitiveTypeInterface
7979
* Validation map for fields in type base64Binary-primitive
8080
* @var array
8181
*/
82-
private const _VALIDATION_RULES = [ ];
82+
private const _VALIDATION_RULES = [];
8383

8484
/** @var array */
8585
private array $_primitiveXmlLocations = [];
@@ -166,9 +166,9 @@ public function _getValidationErrors(): array
166166
{
167167
$errs = [];
168168
$validationRules = $this->_getValidationRules();
169-
if (isset($validationRules[self::FIELD_VALUE]) && null !== ($v = $this->getValue())) {
169+
if (isset($validationRules[self::FIELD_VALUE]) && null !== $this->value) {
170170
foreach($validationRules[self::FIELD_VALUE] as $rule => $constraint) {
171-
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_BASE_64BINARY_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $v);
171+
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_BASE_64BINARY_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $this->getFormattedValue());
172172
if (null !== $err) {
173173
if (!isset($errs[self::FIELD_VALUE])) {
174174
$errs[self::FIELD_VALUE] = [];

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRBinary.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -83,7 +83,11 @@ class FHIRBinary implements PHPFHIRCommentContainerInterface, PHPFHIRContainedTy
8383
* Validation map for fields in type Binary
8484
* @var array
8585
*/
86-
private const _VALIDATION_RULES = [ ];
86+
private const _VALIDATION_RULES = [
87+
self::FIELD_ID => [
88+
PHPFHIRConstants::VALIDATE_PATTERN => '/^[a-z0-9\\-\\.]{1,36}$/',
89+
],
90+
];
8791

8892
/** @var array */
8993
private array $_primitiveXmlLocations = [];

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRBooleanPrimitive.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -79,7 +79,7 @@ class FHIRBooleanPrimitive implements PHPFHIRPrimitiveTypeInterface
7979
* Validation map for fields in type boolean-primitive
8080
* @var array
8181
*/
82-
private const _VALIDATION_RULES = [ ];
82+
private const _VALIDATION_RULES = [];
8383

8484
/** @var array */
8585
private array $_primitiveXmlLocations = [];
@@ -153,9 +153,9 @@ public function _getValidationErrors(): array
153153
{
154154
$errs = [];
155155
$validationRules = $this->_getValidationRules();
156-
if (isset($validationRules[self::FIELD_VALUE]) && null !== ($v = $this->getValue())) {
156+
if (isset($validationRules[self::FIELD_VALUE]) && null !== $this->value) {
157157
foreach($validationRules[self::FIELD_VALUE] as $rule => $constraint) {
158-
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_BOOLEAN_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $v);
158+
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_BOOLEAN_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $this->getFormattedValue());
159159
if (null !== $err) {
160160
if (!isset($errs[self::FIELD_VALUE])) {
161161
$errs[self::FIELD_VALUE] = [];

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRCodePrimitive.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -155,9 +155,9 @@ public function _getValidationErrors(): array
155155
{
156156
$errs = [];
157157
$validationRules = $this->_getValidationRules();
158-
if (isset($validationRules[self::FIELD_VALUE]) && null !== ($v = $this->getValue())) {
158+
if (isset($validationRules[self::FIELD_VALUE]) && null !== $this->value) {
159159
foreach($validationRules[self::FIELD_VALUE] as $rule => $constraint) {
160-
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CODE_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $v);
160+
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CODE_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $this->getFormattedValue());
161161
if (null !== $err) {
162162
if (!isset($errs[self::FIELD_VALUE])) {
163163
$errs[self::FIELD_VALUE] = [];

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRDatePrimitive.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -196,9 +196,9 @@ public function _getValidationErrors(): array
196196
{
197197
$errs = [];
198198
$validationRules = $this->_getValidationRules();
199-
if (isset($validationRules[self::FIELD_VALUE]) && null !== ($v = $this->getValue())) {
199+
if (isset($validationRules[self::FIELD_VALUE]) && null !== $this->value) {
200200
foreach($validationRules[self::FIELD_VALUE] as $rule => $constraint) {
201-
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DATE_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $v);
201+
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DATE_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $this->getFormattedValue());
202202
if (null !== $err) {
203203
if (!isset($errs[self::FIELD_VALUE])) {
204204
$errs[self::FIELD_VALUE] = [];

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRDateTimePrimitive.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -200,9 +200,9 @@ public function _getValidationErrors(): array
200200
{
201201
$errs = [];
202202
$validationRules = $this->_getValidationRules();
203-
if (isset($validationRules[self::FIELD_VALUE]) && null !== ($v = $this->getValue())) {
203+
if (isset($validationRules[self::FIELD_VALUE]) && null !== $this->value) {
204204
foreach($validationRules[self::FIELD_VALUE] as $rule => $constraint) {
205-
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DATE_TIME_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $v);
205+
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DATE_TIME_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $this->getFormattedValue());
206206
if (null !== $err) {
207207
if (!isset($errs[self::FIELD_VALUE])) {
208208
$errs[self::FIELD_VALUE] = [];

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRDecimalPrimitive.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -79,7 +79,7 @@ class FHIRDecimalPrimitive implements PHPFHIRPrimitiveTypeInterface
7979
* Validation map for fields in type decimal-primitive
8080
* @var array
8181
*/
82-
private const _VALIDATION_RULES = [ ];
82+
private const _VALIDATION_RULES = [];
8383

8484
/** @var array */
8585
private array $_primitiveXmlLocations = [];
@@ -173,9 +173,9 @@ public function _getValidationErrors(): array
173173
{
174174
$errs = [];
175175
$validationRules = $this->_getValidationRules();
176-
if (isset($validationRules[self::FIELD_VALUE]) && null !== ($v = $this->getValue())) {
176+
if (isset($validationRules[self::FIELD_VALUE]) && null !== $this->value) {
177177
foreach($validationRules[self::FIELD_VALUE] as $rule => $constraint) {
178-
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DECIMAL_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $v);
178+
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DECIMAL_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $this->getFormattedValue());
179179
if (null !== $err) {
180180
if (!isset($errs[self::FIELD_VALUE])) {
181181
$errs[self::FIELD_VALUE] = [];

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRElement.php

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -95,7 +95,11 @@ class FHIRElement implements PHPFHIRCommentContainerInterface, PHPFHIRTypeInterf
9595
* Validation map for fields in type Element
9696
* @var array
9797
*/
98-
private const _VALIDATION_RULES = [ ];
98+
private const _VALIDATION_RULES = [
99+
self::FIELD_ID => [
100+
PHPFHIRConstants::VALIDATE_PATTERN => '/^[a-z0-9\\-\\.]{1,36}$/',
101+
],
102+
];
99103

100104
/** @var array */
101105
private array $_primitiveXmlLocations = [];
@@ -183,6 +187,31 @@ public function addExtension(null|FHIRExtension $extension = null): self
183187
return $this;
184188
}
185189

190+
/**
191+
* Optional Extensions Element - found in all resources.
192+
* If the element is present, it must have a value for at least one of the defined
193+
* elements, an \@id referenced from the Narrative, or extensions
194+
*
195+
* An extension - additional local content. The extension URL defines it's meaning
196+
*
197+
* @param \DCarbone\PHPFHIRGenerated\DSTU1\FHIRElement\FHIRExtension ...$extension
198+
* @return static
199+
*/
200+
public function setExtension(FHIRExtension ...$extension): self
201+
{
202+
if ([] !== $this->extension) {
203+
$this->_trackValuesRemoved(count($this->extension));
204+
$this->extension = [];
205+
}
206+
if ([] === $extension) {
207+
return $this;
208+
}
209+
foreach($extension as $v) {
210+
$this->addExtension($v);
211+
}
212+
return $this;
213+
}
214+
186215
/**
187216
* @return null|\DCarbone\PHPFHIRGenerated\DSTU1\FHIRIdPrimitive
188217
*/

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRElement/FHIRAddress.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -169,7 +169,7 @@ class FHIRAddress extends FHIRElement
169169
* Validation map for fields in type Address
170170
* @var array
171171
*/
172-
private const _VALIDATION_RULES = [ ];
172+
private const _VALIDATION_RULES = [];
173173

174174
/** @var array */
175175
private array $_primitiveXmlLocations = [];

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRElement/FHIRAddressUse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -88,7 +88,7 @@ class FHIRAddressUse extends FHIRElement
8888
* Validation map for fields in type AddressUse
8989
* @var array
9090
*/
91-
private const _VALIDATION_RULES = [ ];
91+
private const _VALIDATION_RULES = [];
9292

9393
/** @var array */
9494
private array $_primitiveXmlLocations = [];

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRElement/FHIRAggregationMode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -88,7 +88,7 @@ class FHIRAggregationMode extends FHIRElement
8888
* Validation map for fields in type AggregationMode
8989
* @var array
9090
*/
91-
private const _VALIDATION_RULES = [ ];
91+
private const _VALIDATION_RULES = [];
9292

9393
/** @var array */
9494
private array $_primitiveXmlLocations = [];

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRElement/FHIRAlertStatus.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -89,7 +89,7 @@ class FHIRAlertStatus extends FHIRElement
8989
* Validation map for fields in type AlertStatus
9090
* @var array
9191
*/
92-
private const _VALIDATION_RULES = [ ];
92+
private const _VALIDATION_RULES = [];
9393

9494
/** @var array */
9595
private array $_primitiveXmlLocations = [];

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRElement/FHIRAttachment.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -168,7 +168,11 @@ class FHIRAttachment extends FHIRElement
168168
* Validation map for fields in type Attachment
169169
* @var array
170170
*/
171-
private const _VALIDATION_RULES = [ ];
171+
private const _VALIDATION_RULES = [
172+
self::FIELD_CONTENT_TYPE => [
173+
PHPFHIRConstants::VALIDATE_MIN_OCCURS => 1,
174+
],
175+
];
172176

173177
/** @var array */
174178
private array $_primitiveXmlLocations = [];

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRElement/FHIRBackboneElement.php

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -94,7 +94,7 @@ class FHIRBackboneElement extends FHIRElement
9494
* Validation map for fields in type BackboneElement
9595
* @var array
9696
*/
97-
private const _VALIDATION_RULES = [ ];
97+
private const _VALIDATION_RULES = [];
9898

9999
/** @var array */
100100
private array $_primitiveXmlLocations = [];
@@ -170,6 +170,32 @@ public function addModifierExtension(null|FHIRExtension $modifierExtension = nul
170170
return $this;
171171
}
172172

173+
/**
174+
* Optional Extensions Element - found in all resources.
175+
* If the element is present, it must have a value for at least one of the defined
176+
* elements, an \@id referenced from the Narrative, or extensions
177+
*
178+
* An extension that modifies the meaning of the element that contains it -
179+
* additional local content. The extension URL defines it's meaning
180+
*
181+
* @param \DCarbone\PHPFHIRGenerated\DSTU1\FHIRElement\FHIRExtension ...$modifierExtension
182+
* @return static
183+
*/
184+
public function setModifierExtension(FHIRExtension ...$modifierExtension): self
185+
{
186+
if ([] !== $this->modifierExtension) {
187+
$this->_trackValuesRemoved(count($this->modifierExtension));
188+
$this->modifierExtension = [];
189+
}
190+
if ([] === $modifierExtension) {
191+
return $this;
192+
}
193+
foreach($modifierExtension as $v) {
194+
$this->addModifierExtension($v);
195+
}
196+
return $this;
197+
}
198+
173199
/**
174200
* Returns the validation rules that this type's fields must comply with to be considered "valid"
175201
* The returned array is in ["fieldname[.offset]" => ["rule" => {constraint}]]

src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRElement/FHIRBackboneElement/FHIRAdverseReaction/FHIRAdverseReactionExposure.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
77
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
88
*
9-
* Class creation date: August 7th, 2024 02:07+0000
9+
* Class creation date: August 22nd, 2024 02:47+0000
1010
*
1111
* PHPFHIR Copyright:
1212
*
@@ -135,7 +135,7 @@ class FHIRAdverseReactionExposure extends FHIRBackboneElement
135135
* Validation map for fields in type AdverseReaction.Exposure
136136
* @var array
137137
*/
138-
private const _VALIDATION_RULES = [ ];
138+
private const _VALIDATION_RULES = [];
139139

140140
/** @var array */
141141
private array $_primitiveXmlLocations = [];

0 commit comments

Comments
 (0)