Skip to content

Commit

Permalink
Added physican and patsrx
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmainguy committed Aug 20, 2018
1 parent 1a16401 commit a485fef
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:latest
ADD Sohre.repo /etc/yum.repos.d/
RUN yum install -y patient_csv_to_xml-0.3-1.el7.x86_64 && \
RUN yum install -y patient_csv_to_xml-0.4-1.el7.x86_64 && \
yum clean all
RUN chgrp -R 0 /opt/patient_csv_to_xml \
&& chmod -R g+rwX /opt/patient_csv_to_xml
Expand Down
12 changes: 12 additions & 0 deletions addPatients.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func addPatient(v *Import, line []string, patClass string){
formatedSrvCharges := ""
fullPatPhoneNo := ""
fullInsPhone := ""
patSex := ""
if line[10] != "" {
fullPatBirthDate = formatBirthDate(line[10],line[11],line[12])
}
Expand Down Expand Up @@ -45,6 +46,11 @@ func addPatient(v *Import, line []string, patClass string){
if line[30] != "" {
fullInsPhone = formatPhoneNumber(rm_lead_space(line[30]), rm_lead_space(line[31]))
}
if line[40] != "" {
patSex = "M"
} else if line[41] != "" {
patSex = "F"
}
data := Patient{
PatFirstName: rm_lead_space(patFullName[1]),
PatLastName: patFullName[0],
Expand All @@ -56,6 +62,7 @@ func addPatient(v *Import, line []string, patClass string){
PatSigOnFile: "1",
PatState: rm_lead_space(line[23]),
PatZip: rm_lead_space(line[26]),
PatSex: patSex,
PatClassification: patClass,
Patient_Insured: Patient_Insured{
InsAddress: rm_lead_space(line[21]),
Expand All @@ -69,6 +76,11 @@ func addPatient(v *Import, line []string, patClass string){
InsZip: rm_lead_space(line[29]),
PatInsRelationToInsured: "1",
},
Physician: Physician{
PhyName: rm_lead_space(line[74]),
PhyNPI: rm_lead_space(line[75]),
PhyType: "Rendering",
},
Claim: Claim{
ClaBillDate: rm_lead_space(line[222]),
Claim_Insured: Claim_Insured{
Expand Down
5 changes: 4 additions & 1 deletion patient_csv_to_xml.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%define _unpackaged_files_terminate_build 0
%define debug_package %{nil}
Name: patient_csv_to_xml
Version: 0.3
Version: 0.4
Release: 1%{?dist}
Summary: A golang http server to convert generations csv to ez claim xml

Expand Down Expand Up @@ -38,6 +38,9 @@ exit 0
chown -R patient_csv_to_xml:patient_csv_to_xml /opt/patient_csv_to_xml

%changelog
* Mon Aug 20 2018 Jonathan Mainguy <jon@soh.re> - 0.4-1
- Added physican and patsex

* Mon Aug 20 2018 Jonathan Mainguy <jon@soh.re> - 0.3-1
- Added ClaDiagnosis1 and ClaICDIndicator

Expand Down
9 changes: 9 additions & 0 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ type Claim_Insured struct {
ClaInsPriorAuthorizationNumber string `xml:"ClaInsPriorAuthorizationNumber,omitempty"`
}

type Physician struct {
XMLName xml.Name `xml:"Physician"`
PhyName string `xml:"PhyName,omitempty"`
PhyNPI string `xml:"PhyNPI,omitempty"`
PhyType string `xml:"PhyType,omitempty"`
}

type Claim struct {
XMLName xml.Name `xml:"Claim"`
ClaBillDate string `xml:"ClaBillDate,omitempty"`
Expand Down Expand Up @@ -57,8 +64,10 @@ type Patient struct {
PatSigOnFile string `xml:"PatSigOnFile,omitempty"`
PatState string `xml:"PatState,omitempty"`
PatZip string `xml:"PatZip,omitempty"`
PatSex string `xml:"PatSex,omitempty"`
PatClassification string `xml:"PatClassification,omitempty"`
Patient_Insured Patient_Insured `xml:"Patient_Insured,omitempty"`
Physician Physician `xml:"Physician"`
Claim Claim `xml:"Claim"`
}

Expand Down

0 comments on commit a485fef

Please sign in to comment.