CDAKEntry

public class CDAKEntry: NSObject , CDAKThingWithCodes, CDAKPropertyAddressable, CDAKThingWithTimes, CDAKJSONInstantiable, CDAKThingWithIdentifier
  • Core coded entries that represent any meaning behind the entry These will be in the format of… ClinicalVocabulary:ConceptID Like LOINC:12345

    Declaration

    Swift

    public var codes: CDAKCodedEntries = CDAKCodedEntries()
  • Type of CDA Entry if available

    Declaration

    Swift

    public var cda_identifier: CDAKCDAIdentifier? //, class_name: "CDAKCDAIdentifier", as: :cda_identifiable
  • Any associated result values.

    Specific entries may contain result, often in the form of a physical quantity result value, etc.

    EX: Result of Weight is 160 lbs.

    Declaration

    Swift

    public var values = [CDAKResultValue]() //, class_name: "ResultValue"... and yet... it wants PhysicalQuantityResultValue - but in other places... ResultValue (PhysicalQuantityResultValue is a subclass of ResultValue)
  • CDA Reference

    Declaration

    Swift

    public var references = [CDAKReference]() //
  • CDA Provider preference

    Declaration

    Swift

    public var provider_preference = [CDAKEntry]() //, class_name: "CDAKEntry"
  • CDA patient preference

    Declaration

    Swift

    public var patient_preference = [CDAKEntry]() //, class_name: "CDAKEntry"
  • CDA Description

    Declaration

    Swift

    public var item_description: String?
  • CDA specifics

    Declaration

    Swift

    public var specifics: String?
  • A generalized time associated with the entry

    Declaration

    Swift

    public var time: Double?
  • A start time associated with this entry

    Declaration

    Swift

    public var start_time: Double?
  • an end time associated with this entry

    Declaration

    Swift

    public var end_time: Double?
  • CDA status code

    Declaration

    Swift

    public var status_code : CDAKCodedEntries = CDAKCodedEntries() //, type: Hash
  • CDA moodCode. Defaulted to EVN Reference

    Declaration

    Swift

    public var mood_code: String = "EVN" //, type: String, default: "EVN"
  • CDA negation indicator. Is this a negation of the act?

    Declaration

    Swift

    public var negation_ind: Bool? = false //, as: :negation_ind, type: Boolean
  • CDA negation reason

    Declaration

    Swift

    public var negation_reason : CDAKCodedEntries = CDAKCodedEntries()//, as: :negation_reason, type: Hash
  • oid

    CDA OID

    Declaration

    Swift

    public var oid: String? //, type: String
  • CDA Reason

    Declaration

    Swift

    public var reason: CDAKReason?//, type: Hash
  • Comments support

    Declaration

    Swift

    public var comment: String? // not in original model, but found in some other CDAKEntry items like pregnancies
  • Version of entry

    Declaration

    Swift

    public var version: Int = 1
  • id

    id

    Declaration

    Swift

    public var id: String?
  • Date of entry creation

    Declaration

    Swift

    public var created_at = NSDate()
  • Date of last entry update

    Declaration

    Swift

    public var updated_at = NSDate()
  • Allows you to provide a custom list of code set keys / tags to override the default behavior for this entry. All entries have defined preferred code sets like SNOMED-CT or LOINC, but if you use a generic CDAKEntry, none are defined. You can use this to either completely override the default code sets supplied by the system or provide a specific set of preferred code sets for generic entries (as is required for things like an Indication within an encounter or medication.

    Declaration

    Swift

    public var explicit_preferred_code_sets : [String] = []
  • CDA status string

    Declaration

    Swift

    public var status: String?
  • Sets the value for the entry

    Declaration

    Swift

    public func set_value(scalar: Any?, units: String?)

    Parameters

    scalar

    the value. Anything we can convert to a String

    units

    the units of the scalar value

  • Returns CDA identifier or fixed id if not present

    Declaration

    Swift

    public var identifier: AnyObject?
  • Converts CDA identifier to string for use

    Declaration

    Swift

    public var identifier_as_string: String
  • Internal object hash value

    Declaration

    Swift

    override public var hashValue: Int
  • Undocumented

    Declaration

    Swift

    public class CDAKEntry: NSObject , CDAKThingWithCodes, CDAKPropertyAddressable, CDAKThingWithTimes, CDAKJSONInstantiable, CDAKThingWithIdentifier
  • Undocumented

    Declaration

    Swift

    public class CDAKEntry: NSObject , CDAKThingWithCodes, CDAKPropertyAddressable, CDAKThingWithTimes, CDAKJSONInstantiable, CDAKThingWithIdentifier
  • Undocumented

    Declaration

    Swift

    public class CDAKEntry: NSObject , CDAKThingWithCodes, CDAKPropertyAddressable, CDAKThingWithTimes, CDAKJSONInstantiable, CDAKThingWithIdentifier
  • Undocumented

    Declaration

    Swift

    public class CDAKEntry: NSObject , CDAKThingWithCodes, CDAKPropertyAddressable, CDAKThingWithTimes, CDAKJSONInstantiable, CDAKThingWithIdentifier
  • Do not use - will be removed. Was used in HDS Ruby.

    Declaration

    Swift

    public required init(event: [String:Any?])
  • Debugging description

    Declaration

    Swift

    override public var description : String
  • Undocumented

    Declaration

    Swift

    public class CDAKEntry: NSObject , CDAKThingWithCodes, CDAKPropertyAddressable, CDAKThingWithTimes, CDAKJSONInstantiable, CDAKThingWithIdentifier
  • Undocumented

    Declaration

    Swift

    public class CDAKEntry: NSObject , CDAKThingWithCodes, CDAKPropertyAddressable, CDAKThingWithTimes, CDAKJSONInstantiable, CDAKThingWithIdentifier
  • Dictionary for JSON data

    Declaration

    Swift

    public var jsonDict: [String: AnyObject]