-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update with user contributed changes. Moved serve-backend functionlity into tools folder.
- Loading branch information
Showing
9 changed files
with
142 additions
and
2 deletions.
There are no files selected for viewing
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
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
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,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" |
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 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.