Skip to content

Commit

Permalink
adding questdiagnostics.yaml
Browse files Browse the repository at this point in the history
update with user contributed changes.
Moved serve-backend functionlity into tools folder.
  • Loading branch information
AnalogJ committed Sep 8, 2024
1 parent 329c3a4 commit d02ce17
Show file tree
Hide file tree
Showing 9 changed files with 142 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ deps:

.PHONY: serve-backend
serve-backend: deps
cd testutils && go run oauth_cli.go
cd tools/test-smart-client && go run main.go
test:
go test ./...

Expand Down
32 changes: 31 additions & 1 deletion catalog/brands.json
Original file line number Diff line number Diff line change
Expand Up @@ -307321,13 +307321,15 @@
],
"last_updated": "2023-12-26T16:08:05-07:00",
"name": "Indiana University Health, Inc",
"brand_website": "https://iuhealth.org/",
"aliases": [
"CLARIAN HEALTH PARTNERS, INC",
"INDIANA UNIVERSITY HEALTH BALL MEMORIAL SLEEP APNEA EDUCATION CENTER",
"INDIANA UNIVERSITY HEALTH HOME CARE",
"INDIANA UNIVERSITY HEALTH SLEEP APNEA EDUCATION CENTER AT GREENWOOD",
"INDIANA UNIVERSITY HEALTH SLEEP APNEA EDUCATION CENTER AT INDIANAPOLIS",
"INDIANA UNIVERSITY HEALTH, INC",
"IU Health",
"METHODIST RETAIL PHARMACY",
"NORTH RETAIL PHARMACY",
"RILEY RETAIL PHARMACY",
Expand Down Expand Up @@ -487030,11 +487032,12 @@
}
],
"last_updated": "2024-03-02T16:00:00-08:00",
"name": "St. Mary's Medical Group",
"name": "Ascension St. Vincent - Indiana",
"brand_website": "http://myhealth.stvincent.org",
"logo": "https://athenanet.athenahealth.com/7598/11/portal/portallogo.esp?CONTEXTID=7598\u0026FILENAME=%2F0%2FMedicare%20%281%29%2Ejpg\u0026MAXHEIGHT=144\u0026MAXWIDTH=\u0026TYPE=PORTALLOGO",
"aliases": [
"Ascension St. Vincent - Indiana",
"Peyton Manning Children's",
"St. Mary's Medical Group"
],
"portal_ids": [
Expand Down Expand Up @@ -706779,6 +706782,11 @@
"b1914f11-0131-471c-ab32-819ee251798b": {
"id": "b1914f11-0131-471c-ab32-819ee251798b",
"identifiers": [
{
"use": "ext-npi-number",
"system": "http://hl7.org/fhir/sid/us-npi",
"value": "1174759823"
},
{
"use": "ext-platform-id",
"system": "allscripts",
Expand All @@ -706792,6 +706800,9 @@
],
"last_updated": "2023-10-10T04:21:35Z",
"name": "Nystrom \u0026 Assoc, Ltd.",
"aliases": [
"LifeWorks"
],
"portal_ids": [
"a12a4ab3-f80e-4ca9-ad1e-04e154d6748a"
],
Expand Down Expand Up @@ -937631,6 +937642,25 @@
"efc5733a-a436-4627-974d-68f6bbc17861"
]
},
"efca0d1f-1e46-4335-b881-44b2c78c6366": {
"id": "efca0d1f-1e46-4335-b881-44b2c78c6366",
"identifiers": [
{
"use": "fasten-sandbox-mode",
"system": "fasten-sandbox-mode",
"value": "true"
}
],
"last_updated": "2024-09-08T11:12:44-08:00",
"name": "Quest Diagnostics",
"brand_website": "https://www.questdiagnostics.com/",
"portal_ids": [
"7efc0999-58bb-4e9f-8a0d-9dee76ca4127"
],
"brand_ids": [
"efca0d1f-1e46-4335-b881-44b2c78c6366"
]
},
"efccafb2-4ea8-45e8-b805-aa120b8980e0": {
"id": "efccafb2-4ea8-45e8-b805-aa120b8980e0",
"identifiers": [
Expand Down
19 changes: 19 additions & 0 deletions catalog/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -14738,6 +14738,25 @@
"smart_configuration_url": "https://fhir.fhirpoint.open.allscripts.com/fhirroute/open/APS003S/.well-known/smart-configuration",
"fhir_capabilities_url": "https://fhir.fhirpoint.open.allscripts.com/fhirroute/open/APS003S/metadata"
},
"1364f3cd-03b9-4f2e-affa-6e2c00ecd6e3": {
"id": "1364f3cd-03b9-4f2e-affa-6e2c00ecd6e3",
"identifiers": [
{
"use": "fasten-sandbox-mode",
"system": "fasten-sandbox-mode",
"value": "true"
}
],
"last_updated": "2024-09-08T11:12:44-08:00",
"status": "active",
"connection_type": "hl7-fhir-rest",
"platform_type": "questdiagnostics",
"url": "https://api-sandbox.questdiagnostics.com/resource-server/fhir/r4/",
"authorization_endpoint": "https://api-sandbox.questdiagnostics.com/fhir-oauth/auth/authorize",
"token_endpoint": "https://api-sandbox.questdiagnostics.com/fhir-oauth/auth/token",
"smart_configuration_url": "https://api.questdiagnostics.com/resource-server/fhir/.well-known/smart-configuration",
"fhir_capabilities_url": "https://api.questdiagnostics.com/resource-server/fhir/r4/metadata"
},
"136ab0d0-a9d6-45d4-8f4c-6f866a88e7bd": {
"id": "136ab0d0-a9d6-45d4-8f4c-6f866a88e7bd",
"identifiers": [
Expand Down
16 changes: 16 additions & 0 deletions catalog/portals.json
Original file line number Diff line number Diff line change
Expand Up @@ -386296,6 +386296,22 @@
"c80fbbc2-ad04-4a3c-90a3-f94ebeb9f34e"
]
},
"7efc0999-58bb-4e9f-8a0d-9dee76ca4127": {
"id": "7efc0999-58bb-4e9f-8a0d-9dee76ca4127",
"identifiers": [
{
"use": "fasten-sandbox-mode",
"system": "fasten-sandbox-mode",
"value": "true"
}
],
"last_updated": "2024-09-08T11:12:44-08:00",
"name": "Quest Diagnostics (Sandbox)",
"description": "Warning: Under Development",
"endpoint_ids": [
"1364f3cd-03b9-4f2e-affa-6e2c00ecd6e3"
]
},
"7f00a273-511b-4894-ada6-81cb251088be": {
"id": "7f00a273-511b-4894-ada6-81cb251088be",
"identifiers": [
Expand Down
27 changes: 27 additions & 0 deletions definitions/platform/questdiagnostics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# MANUALLY POPULATED
platform_type: questdiagnostics


# https://api.questdiagnostics.com/resource-server/fhir/.well-known/smart-configuration
# https://api.questdiagnostics.com/resource-server/fhir/r4/metadata
scopes_supported:
- offline_access
- launch/patient
- patient/*.read

grant_types_supported:
- authorization_code
response_types_supported:
- code
response_modes_supported:
- query
code_challenge_methods_supported:
- S256
confidential: true
cors_relay_required: true
documentation: |
https://api.questdiagnostics.com/resource-server/fhir/.well-known/smart-configuration
missing_op_patient_everything: false
client_supported_resources: []
#custom_op_patient_everything: "Patient"
48 changes: 48 additions & 0 deletions tools/health-system-count/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package main

import (
"encoding/json"
"github.com/fastenhealth/fasten-sources/catalog"
modelsCatalog "github.com/fastenhealth/fasten-sources/pkg/models/catalog"
"log"
)

func main() {

brands, err := catalog.GetBrands(&modelsCatalog.CatalogQueryOptions{})
if err != nil {
panic(err)
}

portals, err := catalog.GetPortals(&modelsCatalog.CatalogQueryOptions{})
if err != nil {
panic(err)
}

// Print the brands
log.Printf("Total Brands: %v", len(brands))
log.Printf("Total Portals: %v", len(portals))

//this is the number of health systems, that have a name of a certain length
healthSystemNameStats := map[int]int{}
for bndx, _ := range brands {
brand := brands[bndx]

if _, ok := healthSystemNameStats[len(brand.Name)]; !ok {
healthSystemNameStats[len(brand.Name)] = 0
}
healthSystemNameStats[len(brand.Name)]++

for andx, _ := range brand.Aliases {
alias := brand.Aliases[andx]
if _, ok := healthSystemNameStats[len(alias)]; !ok {
healthSystemNameStats[len(alias)] = 0
}
healthSystemNameStats[len(alias)]++
}
}

brandBytes, err := json.MarshalIndent(healthSystemNameStats, "", " ")
log.Printf("Health System Name Stats: %s", string(brandBytes))

}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d02ce17

Please sign in to comment.