Skip to content

Commit

Permalink
v3.1.0 output
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Aug 22, 2024
1 parent 3f9234f commit 92535a6
Show file tree
Hide file tree
Showing 9,036 changed files with 149,233 additions and 12,632 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -79,7 +79,7 @@ class FHIRBase64BinaryPrimitive implements PHPFHIRPrimitiveTypeInterface
* Validation map for fields in type base64Binary-primitive
* @var array
*/
private const _VALIDATION_RULES = [ ];
private const _VALIDATION_RULES = [];

/** @var array */
private array $_primitiveXmlLocations = [];
Expand Down Expand Up @@ -166,9 +166,9 @@ public function _getValidationErrors(): array
{
$errs = [];
$validationRules = $this->_getValidationRules();
if (isset($validationRules[self::FIELD_VALUE]) && null !== ($v = $this->getValue())) {
if (isset($validationRules[self::FIELD_VALUE]) && null !== $this->value) {
foreach($validationRules[self::FIELD_VALUE] as $rule => $constraint) {
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_BASE_64BINARY_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $v);
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_BASE_64BINARY_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $this->getFormattedValue());
if (null !== $err) {
if (!isset($errs[self::FIELD_VALUE])) {
$errs[self::FIELD_VALUE] = [];
Expand Down
8 changes: 6 additions & 2 deletions src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRBinary.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -83,7 +83,11 @@ class FHIRBinary implements PHPFHIRCommentContainerInterface, PHPFHIRContainedTy
* Validation map for fields in type Binary
* @var array
*/
private const _VALIDATION_RULES = [ ];
private const _VALIDATION_RULES = [
self::FIELD_ID => [
PHPFHIRConstants::VALIDATE_PATTERN => '/^[a-z0-9\\-\\.]{1,36}$/',
],
];

/** @var array */
private array $_primitiveXmlLocations = [];
Expand Down
8 changes: 4 additions & 4 deletions src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRBooleanPrimitive.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -79,7 +79,7 @@ class FHIRBooleanPrimitive implements PHPFHIRPrimitiveTypeInterface
* Validation map for fields in type boolean-primitive
* @var array
*/
private const _VALIDATION_RULES = [ ];
private const _VALIDATION_RULES = [];

/** @var array */
private array $_primitiveXmlLocations = [];
Expand Down Expand Up @@ -153,9 +153,9 @@ public function _getValidationErrors(): array
{
$errs = [];
$validationRules = $this->_getValidationRules();
if (isset($validationRules[self::FIELD_VALUE]) && null !== ($v = $this->getValue())) {
if (isset($validationRules[self::FIELD_VALUE]) && null !== $this->value) {
foreach($validationRules[self::FIELD_VALUE] as $rule => $constraint) {
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_BOOLEAN_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $v);
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_BOOLEAN_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $this->getFormattedValue());
if (null !== $err) {
if (!isset($errs[self::FIELD_VALUE])) {
$errs[self::FIELD_VALUE] = [];
Expand Down
6 changes: 3 additions & 3 deletions src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRCodePrimitive.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -155,9 +155,9 @@ public function _getValidationErrors(): array
{
$errs = [];
$validationRules = $this->_getValidationRules();
if (isset($validationRules[self::FIELD_VALUE]) && null !== ($v = $this->getValue())) {
if (isset($validationRules[self::FIELD_VALUE]) && null !== $this->value) {
foreach($validationRules[self::FIELD_VALUE] as $rule => $constraint) {
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CODE_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $v);
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CODE_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $this->getFormattedValue());
if (null !== $err) {
if (!isset($errs[self::FIELD_VALUE])) {
$errs[self::FIELD_VALUE] = [];
Expand Down
6 changes: 3 additions & 3 deletions src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRDatePrimitive.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -196,9 +196,9 @@ public function _getValidationErrors(): array
{
$errs = [];
$validationRules = $this->_getValidationRules();
if (isset($validationRules[self::FIELD_VALUE]) && null !== ($v = $this->getValue())) {
if (isset($validationRules[self::FIELD_VALUE]) && null !== $this->value) {
foreach($validationRules[self::FIELD_VALUE] as $rule => $constraint) {
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DATE_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $v);
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DATE_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $this->getFormattedValue());
if (null !== $err) {
if (!isset($errs[self::FIELD_VALUE])) {
$errs[self::FIELD_VALUE] = [];
Expand Down
6 changes: 3 additions & 3 deletions src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRDateTimePrimitive.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -200,9 +200,9 @@ public function _getValidationErrors(): array
{
$errs = [];
$validationRules = $this->_getValidationRules();
if (isset($validationRules[self::FIELD_VALUE]) && null !== ($v = $this->getValue())) {
if (isset($validationRules[self::FIELD_VALUE]) && null !== $this->value) {
foreach($validationRules[self::FIELD_VALUE] as $rule => $constraint) {
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DATE_TIME_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $v);
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DATE_TIME_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $this->getFormattedValue());
if (null !== $err) {
if (!isset($errs[self::FIELD_VALUE])) {
$errs[self::FIELD_VALUE] = [];
Expand Down
8 changes: 4 additions & 4 deletions src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRDecimalPrimitive.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -79,7 +79,7 @@ class FHIRDecimalPrimitive implements PHPFHIRPrimitiveTypeInterface
* Validation map for fields in type decimal-primitive
* @var array
*/
private const _VALIDATION_RULES = [ ];
private const _VALIDATION_RULES = [];

/** @var array */
private array $_primitiveXmlLocations = [];
Expand Down Expand Up @@ -173,9 +173,9 @@ public function _getValidationErrors(): array
{
$errs = [];
$validationRules = $this->_getValidationRules();
if (isset($validationRules[self::FIELD_VALUE]) && null !== ($v = $this->getValue())) {
if (isset($validationRules[self::FIELD_VALUE]) && null !== $this->value) {
foreach($validationRules[self::FIELD_VALUE] as $rule => $constraint) {
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DECIMAL_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $v);
$err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DECIMAL_HYPHEN_PRIMITIVE, self::FIELD_VALUE, $rule, $constraint, $this->getFormattedValue());
if (null !== $err) {
if (!isset($errs[self::FIELD_VALUE])) {
$errs[self::FIELD_VALUE] = [];
Expand Down
33 changes: 31 additions & 2 deletions src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -95,7 +95,11 @@ class FHIRElement implements PHPFHIRCommentContainerInterface, PHPFHIRTypeInterf
* Validation map for fields in type Element
* @var array
*/
private const _VALIDATION_RULES = [ ];
private const _VALIDATION_RULES = [
self::FIELD_ID => [
PHPFHIRConstants::VALIDATE_PATTERN => '/^[a-z0-9\\-\\.]{1,36}$/',
],
];

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

/**
* Optional Extensions Element - found in all resources.
* 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
*
* An extension - additional local content. The extension URL defines it's meaning
*
* @param \DCarbone\PHPFHIRGenerated\DSTU1\FHIRElement\FHIRExtension ...$extension
* @return static
*/
public function setExtension(FHIRExtension ...$extension): self
{
if ([] !== $this->extension) {
$this->_trackValuesRemoved(count($this->extension));
$this->extension = [];
}
if ([] === $extension) {
return $this;
}
foreach($extension as $v) {
$this->addExtension($v);
}
return $this;
}

/**
* @return null|\DCarbone\PHPFHIRGenerated\DSTU1\FHIRIdPrimitive
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -169,7 +169,7 @@ class FHIRAddress extends FHIRElement
* Validation map for fields in type Address
* @var array
*/
private const _VALIDATION_RULES = [ ];
private const _VALIDATION_RULES = [];

/** @var array */
private array $_primitiveXmlLocations = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -88,7 +88,7 @@ class FHIRAddressUse extends FHIRElement
* Validation map for fields in type AddressUse
* @var array
*/
private const _VALIDATION_RULES = [ ];
private const _VALIDATION_RULES = [];

/** @var array */
private array $_primitiveXmlLocations = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -88,7 +88,7 @@ class FHIRAggregationMode extends FHIRElement
* Validation map for fields in type AggregationMode
* @var array
*/
private const _VALIDATION_RULES = [ ];
private const _VALIDATION_RULES = [];

/** @var array */
private array $_primitiveXmlLocations = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -89,7 +89,7 @@ class FHIRAlertStatus extends FHIRElement
* Validation map for fields in type AlertStatus
* @var array
*/
private const _VALIDATION_RULES = [ ];
private const _VALIDATION_RULES = [];

/** @var array */
private array $_primitiveXmlLocations = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -168,7 +168,11 @@ class FHIRAttachment extends FHIRElement
* Validation map for fields in type Attachment
* @var array
*/
private const _VALIDATION_RULES = [ ];
private const _VALIDATION_RULES = [
self::FIELD_CONTENT_TYPE => [
PHPFHIRConstants::VALIDATE_MIN_OCCURS => 1,
],
];

/** @var array */
private array $_primitiveXmlLocations = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -94,7 +94,7 @@ class FHIRBackboneElement extends FHIRElement
* Validation map for fields in type BackboneElement
* @var array
*/
private const _VALIDATION_RULES = [ ];
private const _VALIDATION_RULES = [];

/** @var array */
private array $_primitiveXmlLocations = [];
Expand Down Expand Up @@ -170,6 +170,32 @@ public function addModifierExtension(null|FHIRExtension $modifierExtension = nul
return $this;
}

/**
* Optional Extensions Element - found in all resources.
* 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
*
* An extension that modifies the meaning of the element that contains it -
* additional local content. The extension URL defines it's meaning
*
* @param \DCarbone\PHPFHIRGenerated\DSTU1\FHIRElement\FHIRExtension ...$modifierExtension
* @return static
*/
public function setModifierExtension(FHIRExtension ...$modifierExtension): self
{
if ([] !== $this->modifierExtension) {
$this->_trackValuesRemoved(count($this->modifierExtension));
$this->modifierExtension = [];
}
if ([] === $modifierExtension) {
return $this;
}
foreach($modifierExtension as $v) {
$this->addModifierExtension($v);
}
return $this;
}

/**
* Returns the validation rules that this type's fields must comply with to be considered "valid"
* The returned array is in ["fieldname[.offset]" => ["rule" => {constraint}]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: August 7th, 2024 02:07+0000
* Class creation date: August 22nd, 2024 02:47+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -135,7 +135,7 @@ class FHIRAdverseReactionExposure extends FHIRBackboneElement
* Validation map for fields in type AdverseReaction.Exposure
* @var array
*/
private const _VALIDATION_RULES = [ ];
private const _VALIDATION_RULES = [];

/** @var array */
private array $_primitiveXmlLocations = [];
Expand Down
Loading

0 comments on commit 92535a6

Please sign in to comment.