Classes
The following classes are available globally.
-
Assistive functions to help conform to HL7 formats
See moreDeclaration
Swift
public class CDAKHL7Helper
-
Support
See moreDeclaration
Swift
public class CDAKSupport: CDAKEntry
-
Information about provider who rendered care
See moreDeclaration
Swift
public class CDAKTreatingProvider: CDAKEntry
-
Undocumented
See more
-
CDA Facility
See moreDeclaration
Swift
public class CDAKFacility: CDAKEntry
-
CDA Guarantor. Individual legally responsible for all patient charges
See moreDeclaration
Swift
public class CDAKGuarantor: CDAKEntry
-
Record of immunization
See moreDeclaration
Swift
public class CDAKImmunization: CDAKEntry
-
CDA Identifier
Usually takes the form of a
root
(required) and anextension
(identifier) (optional).Examples:
<id root="db734647-fc99-424c-a864-7e3cda82e703"/>
or
See more<!-- Fake ID using HL7 example OID. --> <id extension="998991" root="2.16.840.1.113883.19.5.99999.2"/> <!-- Fake Social Security Number using the actual SSN OID. --> <id extension="111-00-2330" root="2.16.840.1.113883.4.1"/>
Declaration
Swift
public class CDAKCDAIdentifier: Equatable, Hashable, CDAKJSONInstantiable, CustomStringConvertible
-
Undocumented
See more
-
CDA Family History
See moreDeclaration
Swift
public class CDAKFamilyHistory: CDAKEntry
-
Result Value
See moreDeclaration
Swift
public class CDAKResultValue: NSObject, CDAKThingWithTimes
-
Declaration
Swift
public class CDAKCondition: CDAKEntry
-
CDA Medical Equipment
See moreDeclaration
Swift
public class CDAKMedicalEquipment: CDAKEntry
-
Reason
See moreDeclaration
Swift
public class CDAKReason: CDAKEntry
-
Medical procedure. Commonly used for things like surgical procedures.
See moreDeclaration
Swift
public class CDAKProcedure: CDAKEntry
-
Organization
See moreDeclaration
Swift
public class CDAKOrganization: CDAKJSONInstantiable, CustomStringConvertible, Equatable, Hashable
-
Declaration
Swift
public class CDAKProvider: CDAKPersonable, CDAKJSONInstantiable, Hashable, Equatable, CustomStringConvertible
-
Represents a transfer event. EX:
See moretransferred to federal holding
Declaration
Swift
public class CDAKTransfer: CDAKThingWithCodes, CustomStringConvertible
-
Supplies a relationship between a patient and a provider for a particulary start/end date and function.
See moreDeclaration
Swift
public class CDAKProviderPerformance: CDAKEntry
-
Telephone
See moreDeclaration
Swift
public class CDAKTelecom: NSObject, CDAKJSONInstantiable
-
CDA template for
See moreresult-like
things. Primarily lab results.Declaration
Swift
public class CDAKLabResult: CDAKEntry
-
Social History
Reference
The Social History Observation is used to define the patient’s occupational, personal (e.g. lifestyle), social, and environmental history and health risk factors, as well as administrative data such as marital status, race, ethnicity and religious affiliation.
Declaration
Swift
public class CDAKSocialHistory: CDAKEntry
-
Communication Could represent provider to patient, etc.
See moreDeclaration
Swift
public class CDAKCommunication: CDAKEntry
-
CDA Reference
See moreDeclaration
Swift
public class CDAKReference: CDAKJSONInstantiable
-
Declaration
Swift
public class CDAKEntry: NSObject , CDAKThingWithCodes, CDAKPropertyAddressable, CDAKThingWithTimes, CDAKJSONInstantiable, CDAKThingWithIdentifier
-
CDA Coded Result Value
See moreDeclaration
Swift
public class CDAKCodedResultValue: CDAKResultValue, CDAKThingWithCodes
-
Person. Generic person container. Should not use for a provider.
See moreDeclaration
Swift
public class CDAKPerson: CDAKPersonable, CDAKJSONInstantiable
-
Undocumented
See more
-
Undocumented
See more
-
Insurance Provider
See moreDeclaration
Swift
public class CDAKInsuranceProvider: CDAKEntry
-
Primary CDA export class
See moreDeclaration
Swift
public class CDAKExport
-
Undocumented
See more
-
CDA Fulfillment History
See moreDeclaration
Swift
public class CDAKFulfillmentHistory: CDAKEntry
-
Undocumented
See more
-
Subclass of CDAKResultValue. Represents a known fixed physical result value (PQ, etc.)
See moreDeclaration
Swift
public class CDAKPhysicalQuantityResultValue: CDAKResultValue
-
Represents a Care Goal. May be any of a variety of entries.
See moreDeclaration
Swift
public class CDAKCareGoal: CDAKEntry
-
Represents an Allergy entry
See moreDeclaration
Swift
public class CDAKAllergy: CDAKEntry
-
General helpers for working with codes and code system
See moreDeclaration
Swift
public class CDAKCodeSystemHelper
-
Primary container for all patient data that is to be represented with CDA
When creating this record, you may wish to supply a custom header (CDAKQRDAHeader) or during CDA XML generation a default boilerplate header will be applied
See morelet doc = ((supply your CDA XML string)) do { //let's try to import from CDA let record = try CDAKImport_BulkRecordImporter.importRecord(doc) //let's create a new vital // use the coded values to govern "meaning" (height, weight, BMI, BP items, etc.) let aVital = CDAKVitalSign() aVital.codes.addCodes("LOINC", codes: ["3141-9"]) //weight aVital.values.append(CDAKPhysicalQuantityResultValue(scalar: 155.0, units: "lb")) aVital.start_time = NSDate().timeIntervalSince1970 aVital.end_time = NSDate().timeIntervalSince1970 //append our height to our record record.vital_signs.append(aVital) //render from our model to CDA - format set to .ccda (could also do .c32) print(record(inFormat: .ccda)) } catch { //do something }
Declaration
Swift
public class CDAKRecord: NSObject, NSCopying, CDAKPropertyAddressable
-
Medication
See moreDeclaration
Swift
public class CDAKMedication: CDAKEntry
-
Provides HealthKit bridging with CDA structures.
You can create HealthKit samples and convert them to CDA or take CDA objects and convert them to HealthKit samples.
Right now HealthKit exposes samples for things that are
like
some vitals and laboratory results. These can be inferred by reviewing the associated CDA vocabulary code entries and the individual result values.NOTE: some common HealthKit samples do not yet universally accepted vocabulary concepts. These includes concepts
HKQuantityTypeIdentifierStepCount
, which do not yet have LOINC (or SNOMED CT) codes.We have provided default curated mappings for some codes. These can be found in the
CDAKitDefaultHealthKitTermMap
plist file.Possible future Concepts and codes:
Fitness Identifiers
LOINC has begun to track some of this, but it’s in
trial
modeThere is also a more generalized
See moreExercise tracking panel
that includes distances and durationsDeclaration
Swift
public class CDAKHealthKitBridge
-
Primary bridging record to connect our CDA models with HealthKit
See moreDeclaration
Swift
public class CDAKHKRecord: CustomStringConvertible
-
Order information
See moreDeclaration
Swift
public class CDAKOrderInformation: CDAKEntry
-
Vital signs Inherits all members and methods from CDAKLabResult
See moreDeclaration
Swift
public class CDAKVitalSign: CDAKLabResult
-
Stores and manages all cross-record data and settings for CDA import and export
See moreDeclaration
Swift
public class CDAKGlobals
-
Represents a physical address
See moreDeclaration
Swift
public class CDAKAddress: NSObject, CDAKJSONInstantiable
-
This class can be used to represnt a functional status for a patient. Currently, it is not a very close representation of functional status as it is represented in the HL7 CCD, HITSP C32 or Consolidated CDA.
In the previously mentioned specifications, functional status may represented using either a condition or result. Having
mixed
types of entries in a section is currently not well supported in the existing CDAKRecord classAdditionally, there is a mismatch between the data needed to calculate Stage 2 Meaningful Use Quailty Measures and the data contained in patient summary standards. The CQMs are checking to see if a functional status represented by a result was patient supplied. Right now, results do not have a source, and even if we were to use Provider as a source, it would need to be extended to support patients.
To avoid this, the patient sumamry style functional status has been
See moreflattened
into this class. This model supports the information needed to calculate Stage 2 MU CQMs. If importers are created from C32 or CCDA, the information can be stored here, but it will be a lossy transformation.Declaration
Swift
public class CDAKFunctionalStatus: CDAKEntry
-
Empty
Declaration
Swift
public class CDAKProviderPreference