Closed krobasky closed 4 years ago
pds will also need the following admin endpoint:
Here are a couple of figures to help inform the implementation:
Work in progress merge profile and aggregator into one plugin
You may already know this:
the ‘pds’ plugin you’re working on can call tx-router to get all the plugin info, no need to call a new endpoint in pdspi-config
you’ll want to check for appropriate plugin responses since the pds will be version-controlled on those acceptable responses. It would be really great if these were all in one, computer-readable file (JSON) that can be easily updated.
In that regard, look at the example response in the GET ‘/config’ for pdspi-guidance-example. Together with that JSON, here are allowable values:
selectors – each can have more than one occurrence in the ‘selectors’ array
i. pluginType: codes: g | c | m | f , titles => “Guidance”, “Convenience”, “Mapping”, “FHIR”, respectively
ii. fhirPlugin: any | <valid-URL>, titles => “Compatible with any FHIR server” | “HAPI FHIR Server” | “SmartHealthIT”, respectively
iii. drug: any | 1596450 | 1114195 | 1546356 | 1364430 | 1599538 | 1927851, titles => “Provides guidance regardless of drug” | “Gentamicin” | “Rivaroxiban” | “Dabigatran” | “Apixaban” | “Edoxaban” | “Betrixaban”
iv. indication: any | LP30576-0 | LP185693-1 | LP19605-2, titles => “Provides guidance for any indication” | “Positive for Pseudomonas” | “Positive for Proteus, any species” | “Positive for e coli infection” (there will be more)
clinical variables (see ticket 75 for possible values), there will be more:
LOINC:2160-0: serum creatinine
LOINC:82810-3: pregnancy
HP:0001892: bleeding
HP:0000077: kidney dysfunction
LOINC:30525-0: Age
LOINC:54134-2: Race
LOINC:54120-1: Ethnicity
LOINC:21840-4: Sex
LOINC:8302-2: height
LOINC:29463-7: weight
LOINC:39156-5: bmi
units: none | years | m | kg | mg/dL | kg/m^2
graphs: none | sawtooth – talk to David and Ryan to see if there will be more
Once you’ve made any necessary changes to fit your detailed designs for pds, can you please paste this info into a new ticket?
All this also changes the workflow slide to the following (see red arrows):
the yaml in the description is no loger current, see swaggerhub
Which repo (e.g., tx-logging)? pds, deliverable 5.1
Expected Behavior provides simple /config and /gudance endpoints to dashboard developer, abstracting away all the calls to FHIR, maper, and guidance plugins; also abstracts away calls between mapper and FHIR plugin from the mapper plugin provider.
Actual Behavior currently this functionality exists in part, manifested in the /aggregator and the /profile endpoints.
Information Check-in code to the existing pds repo; we will continue to use pds for ticketing across all the repos, and the CHANGES, AUTHOR, LICENSE, etc. files will remain unchanged. The PDS release cycle will be maintained from this repo.
Don't close this ticket until:
FYI - Items that might trigger a new version include:
The specific, API design for this new plugin is at: https://app.swaggerhub.com/apis/krobasky/pds
the Yaml (no longer current, see swaggerhub link above):