Download the PHP package uhin/ccda-parser-library without Composer
On this page you can find all versions of the php package uhin/ccda-parser-library. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download uhin/ccda-parser-library
More information about uhin/ccda-parser-library
Files in uhin/ccda-parser-library
Package ccda-parser-library
Short Description A library providing data objects to interact with Consolidated Clinical Document Architecture (C-CDA) data.
License MIT
Informations about the package ccda-parser-library
Consolidated Clinical Document Architecture (C-CDA) Data Library
Intended Use
This library provides a (read-only) data object for HL7 v3 XML data which can be converted to a PHP array
, \stdClass
object, or JSON string. It is not intended for modifying the data structure or exporting XML.
Supported Versions/Formats
<Insert documentation about which HL7 v3 (i.e. C-CDA) implementations are supported here>
Library Installation Requirements
How to Use
Including the Library in your Project with Composer
You can manually add the library to your project's composer.json
file or use the following command:
Then be sure to include the Composer bootstrap file:
Instantiating a Data Object
There are factory methods for creating the data object from a (valid) XML file:
from a (valid) XML string:
and from a \SimpleXMLElement
object:
Accessing the Data Object's Properties
Once you have created the \Uhin\Ccda\Models\CcdaDocument
object, you can access its attributes directly:
Converting the Data Object into Desired Formats
You can use the data object's conversion methods to get the XML data in different formats:
Notes about Structure
This basic XML data:
will be converted into this JSON object:
Because attribute names can conflict with the names of child elements (or there can be a value
attribute which would conflict with the way the XML element value is parsed), attributes are prepended with a prefix and a prefix delimiter. The default prefix is attribute
and the default prefix delimiter is :
(colon). If you would like to use a different prefix and/or delimiter, simply set the following attributes:
And the data attribute and conversion methods will all be updated with the new structure:
Additional Information
About Us
Utah Health Information Network (UHIN) is a non-profit organization in the healthcare industry with goals of improving patient outcomes and reducing healthcare costs. If you are using any of our open source projects or would like to know more about us, we would love to hear from you.
Email UHIN Customer Service
Phone: 801-716-5901
Toll Free: 877-693-3071
Address: 1226 E 6600 S Murray, UT 84121
Also, be sure to check out our other projects on GitHub and our knowledge center for more information about healthcare.
All versions of ccda-parser-library with dependencies
ext-simplexml Version ^7
php Version ^7.2