-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
110,321 additions
and
4 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
endpointmanager/pkg/chplendpointquerier/canvasmedicalwebscraper.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package chplendpointquerier | ||
|
||
import ( | ||
"strings" | ||
|
||
"github.com/PuerkitoBio/goquery" | ||
"github.com/onc-healthit/lantern-back-end/endpointmanager/pkg/helpers" | ||
log "github.com/sirupsen/logrus" | ||
) | ||
|
||
func CanvasMedicalURLWebscraper(CHPLURL string, fileToWriteTo string) { | ||
|
||
var lanternEntryList []LanternEntry | ||
var endpointEntryList EndpointList | ||
|
||
doc, err := helpers.ChromedpQueryEndpointList(CHPLURL, "") | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
|
||
doc.Find("table").Each(func(index int, tablehtml *goquery.Selection) { | ||
if index == 1 { | ||
tablehtml.Find("tbody").Each(func(indextr int, rowhtml *goquery.Selection) { | ||
rowhtml.Find("tr").Each(func(indextr int, rowbodyhtml *goquery.Selection) { | ||
var entry LanternEntry | ||
tableEntries := rowbodyhtml.Find("td") | ||
if tableEntries.Length() > 0 { | ||
organizationName := strings.TrimSpace(tableEntries.Eq(0).Text()) | ||
URL := strings.TrimSpace(tableEntries.Eq(1).Text()) | ||
|
||
entry.OrganizationName = organizationName | ||
entry.URL = URL | ||
|
||
lanternEntryList = append(lanternEntryList, entry) | ||
} | ||
}) | ||
}) | ||
} | ||
}) | ||
|
||
endpointEntryList.Endpoints = lanternEntryList | ||
|
||
err = WriteCHPLFile(endpointEntryList, fileToWriteTo) | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
resources/dev_resources/AthenaClinicals_EndpointSources.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"Endpoints": [ | ||
{ | ||
"URL": "https://api.platform.athenahealth.com/fhir/r4", | ||
"OrganizationName": "NC - Sollus Pediatrics", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "https://api.platform.athenahealth.com/fhir/r4", | ||
"OrganizationName": "KY - Scott \u0026 Jonah Mds", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "https://api.platform.athenahealth.com/fhir/r4", | ||
"OrganizationName": "First Physicians", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "https://api.platform.athenahealth.com/fhir/r4", | ||
"OrganizationName": "TX - Trophy Club Pediatrics, PA", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "https://api.platform.athenahealth.com/fhir/r4", | ||
"OrganizationName": "MA - The Sharewood Project", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "https://api.platform.athenahealth.com/fhir/r4", | ||
"OrganizationName": "GA - Contemporary Women's Healthcare", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "https://api.platform.athenahealth.com/fhir/r4", | ||
"OrganizationName": "WA - Dr. Stephen B. Hillis, MD", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "https://api.platform.athenahealth.com/fhir/r4", | ||
"OrganizationName": "FL - Margarita M Vendrell MD", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "https://api.platform.athenahealth.com/fhir/r4", | ||
"OrganizationName": "Boca Integrative Health", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "https://api.platform.athenahealth.com/fhir/r4", | ||
"OrganizationName": "Center for Emotional Wellness at RPCA", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
resources/dev_resources/CanvasMedical_EndpointSources.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Endpoints": [ | ||
{ | ||
"URL": "https://fumage-modernfamilypractice.canvasmedical.com", | ||
"OrganizationName": "modernfamilypractice", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
} | ||
] | ||
} |
64 changes: 64 additions & 0 deletions
64
resources/dev_resources/Carepaths_EHR_EndpointSources.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"Endpoints": [ | ||
{ | ||
"URL": "http://developer.carepaths.com/beauchene/api/", | ||
"OrganizationName": "Beauchene Family Therapy LLC", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "http://developer.carepaths.com/qcounseling/api/", | ||
"OrganizationName": "Q Counseling Services", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "http://developer.carepaths.com/1390898-152525/api/", | ||
"OrganizationName": "Kristen O'Shea, PhD", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "http://developer.carepaths.com/salt/api/", | ||
"OrganizationName": "Salt and Light Counseling", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "http://developer.carepaths.com/frcc/api/", | ||
"OrganizationName": "Firmly Rooted Counseling \u0026 Consulting", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "http://developer.carepaths.com/rochford/api/", | ||
"OrganizationName": "Lisa Rochford, PhD", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "http://developer.carepaths.com/pacificsky/api/", | ||
"OrganizationName": "Pacific Sky Counseling", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "http://developer.carepaths.com/yelk/api/", | ||
"OrganizationName": "Dawn L. Yelk, LCSW", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "http://developer.carepaths.com/scl/api/", | ||
"OrganizationName": "Sharon Chatkupt Lee, Psy.D.", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
}, | ||
{ | ||
"URL": "http://developer.carepaths.com/1385102-145752/api/", | ||
"OrganizationName": "Embrace Life Counseling", | ||
"NPIID": "", | ||
"OrganizationZipCode": "" | ||
} | ||
] | ||
} |
Oops, something went wrong.