instedd / cdx Goto Github PK
View Code? Open in Web Editor NEWConnected Diagnostics Platform
Home Page: https://cdx.io
Connected Diagnostics Platform
Home Page: https://cdx.io
user_id, granter, definition, delegable
After searching for a set of results (by filtering with condition and laboratory) the user can create a subscriber.
The subscriber config contains a target URL and a selection of fields (from the list of fields that the user has access to)
Users have certain permissions. A subset of those permission can be granted to applications through the create of an API Auth token.
Permissions are defined by the intersection of the following:
Access to the devices under a node and it's subnodes in the location hierarchy.
Access to the devices under a list of institutions
Access to results aggregated by one or more of the following dimensions:
a) Date: aggregate by day/week/month/year.
b) Location
c) Demographics: sex, age ranges
Access to results between a defined static or dynamic periods: "between Jan 1st and Feb 28th" or "between 1 year ago and 1 month ago".
Access to a subset of the fields
put the form to create the subscriber as an expandable section after clicking on the link.
A Querystring or JSON Query should support the following aggregate functions and display the count for each of the correspondent date ranges:
year(date) -> '2014'
month(date) -> '2014-03'
week(date)-> '2014-W45'
day(date) -> '2014-03-01'
Support the following:
{
"statement": [
{
"effect":"allow",
"action": ["readInstitution", "updateInstitution"],
"resource": "cdxp:institution/1"
}
],
"delegable": true
}
If reporting device can only be used in one laboratory, use laboratory location. If device can be used in more than 1 laboratory, then the result needs to be posted specifying laboratory or location can't be determined.
Support the following:
{
"statement": [
{
"effect":"allow",
"action": "*",
"resource": "*",
"condition": {"is_owner" : true}
}
],
"delegable": true
}
This policy is granted automatically to each user that signs up.
These are:
Sensitive data, such as patient ID, name, age, phone number, SSN, that should be encrypted.
Demographic data, useful to search for later and for analytics, such as gender, ethnicity, age range. They could have a predefined set of values or be an open field.
QA Data, such as assay/cartridge ID.
All the rest.
Create a new process that runs every x minutes (by config) and check for new events that match any of the subscribers. Notify subscribers by posting the configured fields.
Support this permission policy:
{
"statement": [
{
"effect": "allow",
"action": "*",
"resource": "*"
}
],
"delegable": true
}
This sort of policy would be given after server provisioning by running a rake task.
Device belongs to an institution and can be used in 1 or more Laboratories.
Support the following:
{
"statement": [
{
"effect":"allow",
"action": ["readInstitution", "updateInstitution"],
"resource": "cdxp:institution/1"
}
],
"delegable": false
}
This should keep a user from delegating this permissions to others.
...and use to check idempotency
make idempotent
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.