Skip to content

Commit

Permalink
latest updates from generator, including fhir_comments handling and b…
Browse files Browse the repository at this point in the history
…etter value container serialization
  • Loading branch information
dcarbone committed Nov 17, 2019
1 parent 914e460 commit 4a20082
Show file tree
Hide file tree
Showing 6,202 changed files with 132,719 additions and 48,848 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 2 additions & 1 deletion src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRAddressUseList.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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -242,6 +242,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -241,6 +241,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

Expand Down
3 changes: 2 additions & 1 deletion src/DCarbone/PHPFHIRGenerated/DSTU1/FHIRAlertStatusList.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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -241,6 +241,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -224,6 +224,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

Expand Down
22 changes: 16 additions & 6 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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -67,9 +67,7 @@ class FHIRBinary implements PHPFHIRCommentContainerInterface, PHPFHIRContainedTy

// name of FHIR type this class describes
const FHIR_TYPE_NAME = PHPFHIRConstants::TYPE_NAME_BINARY;

/** @var string */
protected $_xmlns = 'http://hl7.org/fhir';
const FIELD_FHIR_COMMENTS = 'fhir_comments';

const FIELD_CONTENT_TYPE = 'contentType';
const FIELD_ID = 'id';
Expand All @@ -84,6 +82,9 @@ class FHIRBinary implements PHPFHIRCommentContainerInterface, PHPFHIRContainedTy
*/
protected $id = null;

/** @var string */
protected $_xmlns = 'http://hl7.org/fhir';

/**
* FHIRBinary Constructor
* @param null|array $data
Expand All @@ -99,6 +100,13 @@ public function __construct($data = null)
gettype($data)
));
}
if (isset($data[self::FIELD_FHIR_COMMENTS])) {
if (is_array($data[self::FIELD_FHIR_COMMENTS])) {
$this->_setFHIRComments($data[self::FIELD_FHIR_COMMENTS]);
} else if (is_string($data[self::FIELD_FHIR_COMMENTS])) {
$this->_addFHIRComment($data[self::FIELD_FHIR_COMMENTS]);
}
}
if (isset($data[self::FIELD_CONTENT_TYPE])) {
$this->setContentType($data[self::FIELD_CONTENT_TYPE]);
}
Expand Down Expand Up @@ -278,8 +286,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
}
if (null !== ($v = $this->getContentType())) {
$sxe->addAttribute(self::FIELD_CONTENT_TYPE, (string)$v);
}
if (null !== ($v = $this->getId())) {
} if (null !== ($v = $this->getId())) {
$sxe->addAttribute(self::FIELD_ID, (string)$v);
}
return $sxe;
Expand All @@ -291,6 +298,9 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
public function jsonSerialize()
{
$a = [];
if ([] !== ($vs = $this->_getFHIRComments())) {
$a[self::FIELD_FHIR_COMMENTS] = $vs;
}
if (null !== ($v = $this->getContentType())) {
$a[self::FIELD_CONTENT_TYPE] = $v;
}
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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -241,6 +241,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

Expand Down
3 changes: 2 additions & 1 deletion 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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -220,6 +220,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -245,6 +245,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -244,6 +244,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -242,6 +242,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -241,6 +241,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -242,6 +242,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

Expand Down
3 changes: 2 additions & 1 deletion 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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -224,6 +224,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -242,6 +242,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -243,6 +243,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -247,6 +247,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -240,6 +240,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -242,6 +242,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -240,6 +240,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

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: November 10th, 2019 18:12+0000
* Class creation date: November 17th, 2019 04:21+0000
*
* PHPFHIR Copyright:
*
Expand Down Expand Up @@ -241,6 +241,7 @@ public function xmlSerialize(\SimpleXMLElement $sxe = null, $libxmlOpts = 591872
$sxe = new \SimpleXMLElement($this->_getFHIRXMLElementDefinition(), $libxmlOpts, false);
}
$sxe->addAttribute(self::FIELD_VALUE, (string)$this);

return $sxe;
}

Expand Down
Loading

0 comments on commit 4a20082

Please sign in to comment.