Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalValues ¶
unmarshals NCPDP script from edifact values
Types ¶
type Drug ¶
type Drug struct { // Definition of the loop of the DRU segment. // Values: // P = Prescribed // D = Dispensed // R = Requested ItemDescriptionIdentification string // 010-00 M // Drug name ItemDescription string // 010-01 M // Drug id (NDCs, rxnorms, etc...) ItemNumber string // 010-02 C // The drug id qualifier. // Values: // ND = NDC11 // MF = Manufacturing CodeListResponsibilityAgency string // 010-03 C // unit of measure QuantityQualifier string // 020-00 M Quantity string // 020-01 M CodeListQualifier string // 020-02 C DosageId string // 030-00 N/U Dosage1 string // 030-01 C Dosage2 string // 030-02 C DaysSupply *time.Duration // qualifier: ZDS DateIssued *time.Time // qualifier: 85 // last dispensed or last filled LastDemand *time.Time // qualifier: LD // Product/service substitution, coded // Values: // 0 = No Product Selection Indicated // 1 = Substitution Not Allowed by Prescriber // 2 = Substitution Allowed - Patient Requested Product Dispensed // 3 = Substitution Allowed - Pharmacist Selected Product Dispensed // 4 = Substitution Allowed - Generic Drug Not in Stock // 5 = Substitution Allowed - Brand Drug Dispensed as a Generic // 7 = Substitution Not Allowed - Brand Drug Mandated by Law // 8 = Substitution Allowed - Generic Drug Not Available in Marketplace // (6 was intentionally left off) Substitution string // 050 C Prescriber *Provider Pharmacy *Provider }
type Patient ¶
type Patient struct { Relationship string // 010 C // format: CCYYMMDD Dob time.Time // 020 C // made up of the components: // last, first, middle, suffix, prefix Name *Name // 030-* M // Values: // M = Male // F = Female // U = Unknown Gender string // 040 C ReferenceNumber string // 050-00 M // default: 1D ReferenceQualifier string // 050-01 C // made up of the components: // line1, city, state, postal, location qualifier, location Address *Address // 060-* C // made up of the components: // number, qualifier // repeated n times Phones []*Phone // 070-* C }
segment: PTT
type Provider ¶
type Provider struct { ProviderCode string // 010 M ReferenceNumber string // 020-00 M // Values: // ZZ = NPI (not totally sure) // HPI = NPI // DH = DEA number // DE = DEA number // D3 = NCPDP Provider ID Number // 0B = State license number ReferenceQualifier string // 020-01 C // made up of the components: // last, first, middle, suffix, prefix Name *Name // 050-* C PartyName string // 070 C }
segment: PVD defines a prescriber, pharmacy/pharmacist, and supervisor
type RXH ¶
type RXH struct { //una UIB edifact.Values UIH edifact.Values UIT edifact.Values UIZ edifact.Values }
base struct of all messages. required by EDIFACT and NCPDP script
type Response ¶
type Response struct { // A = Approved // D = Denied // C = Approved with changes // N = Denied, new prescription to // follow. Note: Value “N” is used in // REFRES transactions only. ResponseType string // 010 M // AQ= More History // Available. There may // be less then 50 drugs // in this response due to // payer processing. CodeListQualifier string // 020 C // transaction key ReferenceNumber string // 030 C // free text. could be an error Text string // 040 C }
Segment: RES
Click to show internal directories.
Click to hide internal directories.