PHPackages                             i3soft/cda - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. i3soft/cda

ActiveLibrary[File &amp; Storage](/categories/file-storage)

i3soft/cda
==========

a package to create cda files

v1.0.6(7y ago)036MITPHPPHP ^7.0

Since Mar 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pgee70/cda)[ Packagist](https://packagist.org/packages/i3soft/cda)[ Docs](https://github.com/pgee70/cda)[ RSS](/packages/i3soft-cda/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

CDA
===

[](#cda)

Create HL7-CDA (tm) documents in PHP.

This library has some Australian CDA Extensions enabled.
This library is a work in progress and does not currently provide full CDA coverage.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/38700c0f3672d6bad2a9d01c8dc0da020488fad87f9e6bc8808d5e54947cd1b2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7067656537302f6364612f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pgee70/cda/?branch=master)

Usage
-----

[](#usage)

To see how to use the library check out the tests folder. [ClinicalDocument\_test](tests/ClinicalDocument_test.php) and [NCTIS\_test](tests/NCTIS_test.php)are good starting points.

### Manage references

[](#manage-references)

Each `ClinicalDocument` has its own `ReferenceManager`, which help to manage references across documents.

`ReferenceType` may be added on some elements to create a reference :

```
$doc = new ClinicalDocument();

$refManager = $doc->getReferenceManager();

// create an element 'element' which may have a reference

$element->setReference($refManager->getReferenceType('my_reference'));
// will create blabla

// add the reference in a text

$text->setText($refManager->getReferenceElement('my_reference'));
// will create

```

Getting started
---------------

[](#getting-started)

1. Quickstart

make sure you have [composer](https://getcomposer.org/download/) set up in your path.

```
composer clearcache
mkdir cda
mkdir cda/vendor
cd cda
composer require i3soft/cda
nano test.php

```

enter:

```
