Skip to content

The Clinical Document Library simplifies the development process by providing vendors with a sample implementation of how to create clinical documents. The library supports all Agency-specified document types, as published on the Agency website.

License

tonybetts-student/clinical-document-library-dotnet

 
 

Repository files navigation

CDA Document Library

This is a dotNet software library that aims to make the generation of Clinical Document Architecture (CDA) documents easy and encapsulates validation logic to ensure that the result document conforms to the standards outlines by CDA and HL7 v3

This software library contains CDA document Implementation objects (Eg. SharedHealthSummary, EReferral etc); these objects wrap up three distinct models. Each model encapsulates either CDA (Clinical Document Architecture) or SDT (Structured Document Template) logic.

The three models can be loosely described as two context models and one content model. Each of the models is then wrapped within the CDA document Implementation object

The three CDA / SDT models are:
1 - CDA Context
2 - SDT Context
3 - SDT Content

The CDA document Implementation objects are designed to wrap each of the above models and to expose methods that help with object instantiation and subsequent hydration.

Where possible, it is desirable to use the CDA document Implementation objects to instantiate child objects associated with each implementation; as this ensures the object you receive conform to the correct interface / implementation, while also ensuring that the resulting CDA document model is valid.

Supported Documents

  • Discharge Summary - Template Package .28(1A) .29(1B) .30(2) .31(3A) .32(3B) .33(1A) .34(1B) .35(2) .36(3A) .37(3B)
  • e-Referral - Template Package .13(1A) .14(1B) .15(2) .16(3A) .17(3B) .18(1A) .19(1B) .20(2) .21(3A) .22(3B)
  • Event Summary - Template Package .12(3A) .13(3B) .14(3A) .15(3B)
  • Shared Health Summary - Template Package .9(3A) .9(3B) .10(3A) .11(3B)
  • Specialist Letter - Template Package .23(1A) .24(1B) .25(2) .26(3A) .27(3B) .28(1A) .29(1B) .30(2) .31(3A) .32(3B)
  • Pathology Result Report - Template Package .1(3A) .2(3A) .3(3A) .4(3A)
  • PCEHR Diagnostic Imaging - Template Package .1(3A) .2(3A) .3(3A) .4(3A)
  • eHealth Dispense Record - Template Package .4(3A) .5(3A)
  • eHealth Prescription Record - Template Package .4(3A) .5(3A)

Setup

  • To build the distributable package, Visual Studio 2008 or greater must be installed.
  • Start up CDA.sln.

Solution

The solution consists of three projects:

CDA: The 'Nehta.VendorLibrary.CDA.Sample' project contains sample code for the CDA library, and is designed as an introduction to CDA and the NEHTA CDA libraries

The 'Nehta.VendorLibrary.CDA' project contains the CDA and SDT (Structured Document Template) models for each of the CDA documents. It also contains a CDA Generator that will convert each model into an valid CDA Document (XMLDocument)

The library consists of the following distinct classes for use in generating a CDA document:     
1. composition / factory classes
	- SharedHealthSummary
	- EReferral
	- SpecialistLetter
	- EventSummary
	- EDischargeSummary

2. CDAGenerator
	- this accepts any of the above CDA document Implementation objects and returns a CDA XML document

CDA.Sample: Sample code for the CDA library.

Common: The 'Nehta.VendorLibrary.Common' project contains helper libraries common across all NEHTA vendor library components.

Building and using the library

The solution can be built using 'ctrl-shift-b'. The compiled assembly can then be referenced where ever a CDA document is required to be conStructured or referenced.

CDA Logo usage

Each model allows for the inclusion of a logo within the CDA document. To include the logo you need to set the IncludeLogo property on the model and you also need to include a png file with the name "logo.png". The default NEHTA style sheet will look for this logo in the same directory as the CDA document.

Licensing

Please refer to the Source Code Licence and Production Disclaimer included in this release for details about the licence for this product.

About

The Clinical Document Library simplifies the development process by providing vendors with a sample implementation of how to create clinical documents. The library supports all Agency-specified document types, as published on the Agency website.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%