Download OpenAPI specification:Download
API serving the Veterinary Protocol Manager™ application. © DairySight LLC, Argyle NY 2020
{- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}{- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}This endpoint supports the (reversible) "delete" of a User by setting user.status to REMOVED. Removed Users are not visible in normal queries.
| id required | integer Example: 5 User ID key |
{- "deleted": 0
}Create a sandbox user of MOR UserType who is a CLIENT of logged-in VOR. This allows the VOR to prescribe to the sandbox client, then view prescriptions from the client's point of view using the Farm App.
The username for the sandbox client. This must not match an existing User.username
"string"{- "sandboxClient": "string"
}adds a relationship of the type specified by name to the current User, who must be a VOR. Defaults to CLIENT relationship.
a link between two Users defining a relationship:
"CLIENT""string"get my right-related users
| relationship | string (Relationship) Enum: "CLIENT" "EMPLOYEE" "MEMBER" Example: relationship=CLIENT a link between two Users defining a relationship:
|
| withAddress | boolean Default: false whether to return user's addresses too |
{- "prescriptions": [
- {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}
]
}This endpoint adds a User and a relationship of the type specified by name to the current User, who must be a VOR. Defaults to CLIENT relationship.
| relationship required | string (Relationship) Enum: "CLIENT" "EMPLOYEE" "MEMBER" Example: relationship=CLIENT a link between two Users defining a relationship:
|
| usertype required | string (UserType) Enum: "SAOR" "VOR" "MOR" "TOR" "FARM" "CLINIC" "UNCONFIRMED" "PREVOR" "UNVOR" "UNMOR" "REMOVED" Example: usertype=VOR an ordered list of User types associated with privilege levels:
|
| id | integer (UserNumber) Long integer key to a User |
| uname required | string >= 7 characters username |
| userType required | string (UserType) Enum: "SAOR" "VOR" "MOR" "TOR" "FARM" "CLINIC" "UNCONFIRMED" "PREVOR" "UNVOR" "UNMOR" "REMOVED" an ordered list of User types associated with privilege levels:
|
string <email> email address | |
| firstname required | string >= 2 characters first name |
| lastname required | string >= 2 characters last name |
| suffix | string degree or qualifier following the name |
| phone | string <string> phone number |
{- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}{- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}
}get prescriptions prescribed by the current User.
{- "prescriptions": [
- {
- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "mor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "vor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "rxId": "gG3pBCR1GCMKm89c",
- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}, - "vorId": 1,
- "morId": 2,
- "refills": 0,
- "expiration": "2021-01-10T10:30:37Z",
- "created": "2021-08-10T10:30:37Z",
- "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
], - "status": "PRESCRIBED"
}
], - "of": 0
}get prescriptions prescribed to the current User.
{- "prescriptions": [
- {
- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "mor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "vor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "rxId": "gG3pBCR1GCMKm89c",
- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}, - "vorId": 1,
- "morId": 2,
- "refills": 0,
- "expiration": "2021-01-10T10:30:37Z",
- "created": "2021-08-10T10:30:37Z",
- "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
], - "status": "PRESCRIBED"
}
], - "of": 0
}add tags to protocol per AMDUCA rules
| id | integer <int64> key value created by the database. If zero or null a new record will be created. |
| ownerId required | integer the |
| ownerName required | string the name of the VOR User who owns the protocol. |
| name required | string descriptive name of the protocol |
| shortname | string short name for protocol |
| created | string <date-time> ISO-8601-formatted datetime added by the server when a Protocol is first saved |
| edited | string <date-time> ISO-8601-formatted datetime updated by the server whenever a Protocol is saved |
| status required | string (ProtocolStatus) Enum: "PRESCRIBED" "VALIDATED" "INITIATED" "DEPRECATED" "RECALLED" "DECLINED" "UNKNOWN" status markers for protocols, in order of normal usage flow:
|
| vetNote | string note visible only to the prescribing vet |
| wtMeatHrs | number number of hours that must pass between exposure and slaughter |
| wtMilkHrs | number number of hours that must pass between exposure and extracting milk for consumption |
required | object (Instructions) instructions to execute a protocol |
| shareAll | boolean Default: false share this protocol with all other vets using the system? |
| shareClonable | boolean Default: false when shared to another vet, may the recipient create and alter a clone? |
object (CaseDefinition) information used at the time of case selection to determine whether a particular protocol may be enrolled and the protocol initiated for a particular animal or group of animals (the Case). The Case may be enrolled with the Protocol only if the Case meets all requirements of the CaseDefinition and none of the prohibitions. Other information may be advisory, and used at the discretion of the person doing enrollment. | |
Array of objects (Treatment) treatments used in this protocol | |
Array of objects (Tag) keywords for classification | |
Array of objects (Diagnosis) diagnostic classifiers | |
Array of objects (Eligibility) eligibility criteria for potential cases | |
Array of objects (Promise) wip | |
Array of objects (Metadata) |
{- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}{- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}
}Returns the full array of tags for protocols and treatments.
{- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
]
}Apply a Remedy to a Protocol, returning the fixed Protocol.
object (Protocol) a veterinary treatment protocol | |
any (Remedy) directions for a proposed solution to a problem |
{- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}, - "remedy": {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
}{- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}VOR users have access to a set of public promises plus any Promises they have created for their own use.
{- "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
]
}Create a Promise type that will be private (available only to the VOR recording it)
| _type required | string Enum: "models.AffirmationPromise" "models.BooleanPromise" "models.StringPromise" "models.NumberPromise" "models.MassPromise" "models.CategoryPromise" Class of Promise |
| id | integer database primary key |
| ownerId | integer Default: null id of VOR user with exclusive access to this Promise. If null, Promise is available to all users. |
| name required | string >= 8 characters a short name |
| descrip | string <html> html description describing in detail what must be done to complete the Promise |
| when required | string <duration> Default: "PT0H" ISO-8601 duration from initiation when promise must be fulfilled |
| query required | string <html> A question the user must answer. |
{- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}{- "promise": {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
}get a Promise
| id required | integer Example: 32 promise ID |
{- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}send a message to another user
| modes | Array of strings (MessageMode) Items Value: "EMAIL" Example: modes=EMAIL Mode(s) or channel(s) to use in messaging, defaulting to EMAIL |
| _type required | string identifies the UserMessage subtype |
| from required | integer (UserNumber) Long integer key to a User |
| to required | integer (UserNumber) Long integer key to a User |
| subject required | string subject line for the message |
| message required | string <html> the message |
| detail | string <html> |
{- "_type": "models.SimpleMessage",
- "from": 99,
- "to": 99,
- "subject": "string",
- "message": "Hello <b>world</b>",
- "detail": "string"
}{- "message": {
- "_type": "models.SimpleMessage",
- "subject": "message from your vet",
- "message": "Hello world",
- "detail": "do not reply"
}
}Retrieve all Protocols owned by, or shared with, the current User. The default excludes deleted (status DEPRECATED) protocols.
| statuses | string Example: filter Protocols to include only Protocols with listed statuses. If this parameter is omitted, the query defaults to all status values except DEPRECATED. |
| tags | string Example: filter Protocols to include only Protocols with at least one of the tags listed. |
| offset | integer Default: 0 page start |
| limit | integer Default: 20 maximum page length |
{- "protocols": [
- {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}
], - "of": 0
}This endpoint saves and validates a Protocol.
| id | integer <int64> key value created by the database. If zero or null a new record will be created. |
| ownerId required | integer the |
| ownerName required | string the name of the VOR User who owns the protocol. |
| name required | string descriptive name of the protocol |
| shortname | string short name for protocol |
| created | string <date-time> ISO-8601-formatted datetime added by the server when a Protocol is first saved |
| edited | string <date-time> ISO-8601-formatted datetime updated by the server whenever a Protocol is saved |
| status required | string (ProtocolStatus) Enum: "PRESCRIBED" "VALIDATED" "INITIATED" "DEPRECATED" "RECALLED" "DECLINED" "UNKNOWN" status markers for protocols, in order of normal usage flow:
|
| vetNote | string note visible only to the prescribing vet |
| wtMeatHrs | number number of hours that must pass between exposure and slaughter |
| wtMilkHrs | number number of hours that must pass between exposure and extracting milk for consumption |
required | object (Instructions) instructions to execute a protocol |
| shareAll | boolean Default: false share this protocol with all other vets using the system? |
| shareClonable | boolean Default: false when shared to another vet, may the recipient create and alter a clone? |
object (CaseDefinition) information used at the time of case selection to determine whether a particular protocol may be enrolled and the protocol initiated for a particular animal or group of animals (the Case). The Case may be enrolled with the Protocol only if the Case meets all requirements of the CaseDefinition and none of the prohibitions. Other information may be advisory, and used at the discretion of the person doing enrollment. | |
Array of objects (Treatment) treatments used in this protocol | |
Array of objects (Tag) keywords for classification | |
Array of objects (Diagnosis) diagnostic classifiers | |
Array of objects (Eligibility) eligibility criteria for potential cases | |
Array of objects (Promise) wip | |
Array of objects (Metadata) |
{- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}{- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}
}This endpoint updates and validates a Protocol.
| id | integer <int64> key value created by the database. If zero or null a new record will be created. |
| ownerId required | integer the |
| ownerName required | string the name of the VOR User who owns the protocol. |
| name required | string descriptive name of the protocol |
| shortname | string short name for protocol |
| created | string <date-time> ISO-8601-formatted datetime added by the server when a Protocol is first saved |
| edited | string <date-time> ISO-8601-formatted datetime updated by the server whenever a Protocol is saved |
| status required | string (ProtocolStatus) Enum: "PRESCRIBED" "VALIDATED" "INITIATED" "DEPRECATED" "RECALLED" "DECLINED" "UNKNOWN" status markers for protocols, in order of normal usage flow:
|
| vetNote | string note visible only to the prescribing vet |
| wtMeatHrs | number number of hours that must pass between exposure and slaughter |
| wtMilkHrs | number number of hours that must pass between exposure and extracting milk for consumption |
required | object (Instructions) instructions to execute a protocol |
| shareAll | boolean Default: false share this protocol with all other vets using the system? |
| shareClonable | boolean Default: false when shared to another vet, may the recipient create and alter a clone? |
object (CaseDefinition) information used at the time of case selection to determine whether a particular protocol may be enrolled and the protocol initiated for a particular animal or group of animals (the Case). The Case may be enrolled with the Protocol only if the Case meets all requirements of the CaseDefinition and none of the prohibitions. Other information may be advisory, and used at the discretion of the person doing enrollment. | |
Array of objects (Treatment) treatments used in this protocol | |
Array of objects (Tag) keywords for classification | |
Array of objects (Diagnosis) diagnostic classifiers | |
Array of objects (Eligibility) eligibility criteria for potential cases | |
Array of objects (Promise) wip | |
Array of objects (Metadata) |
{- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}{- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}
}This endpoint validates a protocol for prescribing without saving it. It should only be called if the user wants to prescribe a protocol without saving changes. The endpoints to save or update protocols automatically include validation.4
| id | integer <int64> key value created by the database. If zero or null a new record will be created. |
| ownerId required | integer the |
| ownerName required | string the name of the VOR User who owns the protocol. |
| name required | string descriptive name of the protocol |
| shortname | string short name for protocol |
| created | string <date-time> ISO-8601-formatted datetime added by the server when a Protocol is first saved |
| edited | string <date-time> ISO-8601-formatted datetime updated by the server whenever a Protocol is saved |
| status required | string (ProtocolStatus) Enum: "PRESCRIBED" "VALIDATED" "INITIATED" "DEPRECATED" "RECALLED" "DECLINED" "UNKNOWN" status markers for protocols, in order of normal usage flow:
|
| vetNote | string note visible only to the prescribing vet |
| wtMeatHrs | number number of hours that must pass between exposure and slaughter |
| wtMilkHrs | number number of hours that must pass between exposure and extracting milk for consumption |
required | object (Instructions) instructions to execute a protocol |
| shareAll | boolean Default: false share this protocol with all other vets using the system? |
| shareClonable | boolean Default: false when shared to another vet, may the recipient create and alter a clone? |
object (CaseDefinition) information used at the time of case selection to determine whether a particular protocol may be enrolled and the protocol initiated for a particular animal or group of animals (the Case). The Case may be enrolled with the Protocol only if the Case meets all requirements of the CaseDefinition and none of the prohibitions. Other information may be advisory, and used at the discretion of the person doing enrollment. | |
Array of objects (Treatment) treatments used in this protocol | |
Array of objects (Tag) keywords for classification | |
Array of objects (Diagnosis) diagnostic classifiers | |
Array of objects (Eligibility) eligibility criteria for potential cases | |
Array of objects (Promise) wip | |
Array of objects (Metadata) |
{- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}{- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}
}This endpoint returns an array of Eligibilities from which a User may choose. The ID field is authoritative, i.e., is all that is needed to identify a particular Eligibility.
{- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
]
}This endpoint retrieves all protocols owned by, or shared with, the current User.
{- "protocols": [
- {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}
], - "of": 0
}{- "diagnoses": [
- {
- "id": 0,
- "ownerId": 0,
- "name": "example protocol",
- "shortname": "EXamp",
- "created": "2020-01-10T22:20:39Z",
- "edited": "2020-02-10T22:20:39Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 72,
- "wtMilkHrs": 72,
- "wtNote": "Not for use in horses intended for food.",
- "considerations": "<p>think first</p>",
- "restrictions": "<p>not suitable in pregnancy</p>",
- "dothis": "<p>execute protocol</p>",
- "recordthis": "case data",
- "success": "<p>good</p>",
- "failure": "<p>bad</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>",
- "shareAll": true
}
]
}validate a Dosage with SizeFunction and SequewnceFunction returning an test '_dose" description.
any (SequenceFunction) function to calculate times for a series of doses | |
any (SizeFunction) function to calculate dose size |
{- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}
}{- "_dose": "string"
}This endpoint returns all the Protocols owned by, or shared with, the current User.
{- "pxes": [
- {
- "id": 0,
- "ownerId": 0,
- "name": "example protocol",
- "shortname": "EXamp",
- "created": "2020-01-10T22:20:39Z",
- "edited": "2020-02-10T22:20:39Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 72,
- "wtMilkHrs": 72,
- "wtNote": "Not for use in horses intended for food.",
- "considerations": "<p>think first</p>",
- "restrictions": "<p>not suitable in pregnancy</p>",
- "dothis": "<p>execute protocol</p>",
- "recordthis": "case data",
- "success": "<p>good</p>",
- "failure": "<p>bad</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>",
- "shareAll": true
}
]
}This endpoint retrieves a Protocol by protocol.id.
| id required | integer Example: 7 Protocol ID key |
{- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}
}{- "diagnoses": [
- {
- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "mor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "vor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "rxId": "gG3pBCR1GCMKm89c",
- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}, - "vorId": 1,
- "morId": 2,
- "refills": 0,
- "expiration": "2021-01-10T10:30:37Z",
- "created": "2021-08-10T10:30:37Z",
- "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
], - "status": "PRESCRIBED"
}
]
}create a Prescription and email it if requested
required | object (Protocol) a veterinary treatment protocol |
| morId required | integer ID of MOR this is prescribed for |
| refills | integer Default: 0 number of repeats for this prescription |
| expiration | string <date-time> expiration date |
| emailToClient | boolean email PDF of prescription to client |
| emailToVOR | boolean email PDF of prescription to precribing doctor |
Array of objects (Metadata) | |
| status | string (PrescriptionStatus) Enum: "REQUESTED" "PRESCRIBED" "VALIDATED" "INITIATED" "DEPRECATED" "RECALLED" "DECLINED" "UNKNOWN" status markers for prescriptions, in order of normal usage flow:
|
{- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}, - "morId": 2,
- "refills": 0,
- "expiration": "2021-01-10T10:30:37Z",
- "emailToClient": true,
- "emailToVOR": true,
- "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
], - "status": "PRESCRIBED"
}{- "prescription": {
- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "mor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "vor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "rxId": "gG3pBCR1GCMKm89c",
- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}, - "vorId": 1,
- "morId": 2,
- "refills": 0,
- "expiration": "2021-01-10T10:30:37Z",
- "created": "2021-08-10T10:30:37Z",
- "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
], - "status": "PRESCRIBED"
}, - "pdfError": {
- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}
}returns an array of Prescriptions
| id required | integer Protocol ID key |
{- "diagnoses": [
- {
- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "mor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "vor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "rxId": "gG3pBCR1GCMKm89c",
- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}, - "vorId": 1,
- "morId": 2,
- "refills": 0,
- "expiration": "2021-01-10T10:30:37Z",
- "created": "2021-08-10T10:30:37Z",
- "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
], - "status": "PRESCRIBED"
}
]
}Retrieve a Prescription by prescription.id.
| id required | string Example: Vi1y9kbpEj7Upqy7 Prescription ID key |
{- "prescription": {
- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "mor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "vor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "rxId": "gG3pBCR1GCMKm89c",
- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}, - "vorId": 1,
- "morId": 2,
- "refills": 0,
- "expiration": "2021-01-10T10:30:37Z",
- "created": "2021-08-10T10:30:37Z",
- "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
], - "status": "PRESCRIBED"
}
}This endpoint returns the full array of drug labels.
{- "labels": [
- {
- "id": 1,
- "fdaSpecies": [
- "ChickensBroilers"
], - "diagnosis": "pain (colic), symptomatic treatment",
- "dxId": 2002,
- "product": "Prevail™ Flunixin Meglumine Injection",
- "productId": 1315018,
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "route": "intr-corporeal",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "doseNote": "THis can contain <b>html</b> tags",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "wtNote": "not for dairy animals",
- "ndc": "200-308",
- "generic": "OXYTETRACYCLINE",
- "isRx": true
}
]
}Return specified labelclaim.
| id required | integer Example: 32 labelclaim ID |
{- "id": 1,
- "fdaSpecies": [
- "ChickensBroilers"
], - "diagnosis": "pain (colic), symptomatic treatment",
- "dxId": 2002,
- "product": "Prevail™ Flunixin Meglumine Injection",
- "productId": 1315018,
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "route": "intr-corporeal",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "doseNote": "THis can contain <b>html</b> tags",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "wtNote": "not for dairy animals",
- "ndc": "200-308",
- "generic": "OXYTETRACYCLINE",
- "isRx": true
}This
| ndc required | string Example: 0010-3495 unique hyphenated number with up to 10 digits in 2 or 3 segments as labelerCode-productCode-packageCode. packageCode may not be needed. |
| image required | string Example: 601588-image-fake.jpg name of image file |
"string"Retrieve a Prescription by prescription.id.
| id required | string Example: Vi1y9kbpEj7Upqy7 Prescription ID key |
{- "prescription": {
- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "mor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "vor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "rxId": "gG3pBCR1GCMKm89c",
- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}, - "vorId": 1,
- "morId": 2,
- "refills": 0,
- "expiration": "2021-01-10T10:30:37Z",
- "created": "2021-08-10T10:30:37Z",
- "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
], - "status": "PRESCRIBED"
}
}Prescriptions are immutable except for metadata, and cannot actually be deleted. This endpoint makes a prescription unavailable for use. If called by the VOR, it sets staus to RECALLED. If called by the MOR to whom it is prescribed, it sets status to DECLINED. New cases cannot be enrolled if either RECALLED or DECLIENED.
| id required | string Example: Vi1y9kbpEj7Upqy7 Prescription ID key |
{- "updated": 0
}Creates a Case linked to a prescription.
| id required | integer <int64> Default: null Case ID number |
| rxId required | string UUID identifying the prescription |
| animalId required | string |
| initiationTime required | string <date-time> |
| note | string |
| morId | integer |
required | any (CaseData) data for an individual Case |
{- "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}{- "case": {
- "id": 0,
- "promises": 0,
- "doses": 0,
- "withhold": 0
}
}{- "cases": [
- {
- "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}
]
}Enrolls a Case from its Prescription and generates DoseTasks, Promise tasks, and Withhold as specified in the Protocol.
| id required | integer <int64> Default: null Case ID number |
| rxId required | string UUID identifying the prescription |
| animalId required | string |
| initiationTime required | string <date-time> |
| note | string |
| morId | integer |
required | any (CaseData) data for an individual Case |
{- "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}{- "case": {
- "id": 0,
- "promises": [
- {
- "promId": 123,
- "data": {
- "_type": "models.PdataNone",
- "promiseId": 123
}, - "_type": "models.Ptask",
- "id": 123,
- "caseId": 123,
- "morId": 123,
- "vorId": 123,
- "animalId": "this",
- "doAt": "2020-01-10T10:30:37Z",
- "executor": 123,
- "status": "REQUIRED"
}
], - "doses": [
- {
- "product": "Calcium gluconate 23%",
- "route": "IV",
- "dose": {
- "quantity": {
- "dimension": "Mass",
- "value": 3,
- "symbol": "oz"
}
}, - "_type": "models.Ptask",
- "id": 123,
- "caseId": 123,
- "morId": 123,
- "vorId": 123,
- "animalId": "this",
- "doAt": "2020-01-10T10:30:37Z",
- "executor": 123,
- "status": "REQUIRED"
}
], - "withhold": {
- "id": 0,
- "caseId": 0,
- "animalId": "Bossie",
- "initiated": "2019-08-24T14:15:22Z",
- "wtMeatUntil": "2019-08-24T14:15:22Z",
- "wtMilkUntil": "2019-08-24T14:15:22Z",
- "wtNote": "not for dairy animals",
- "note": "string"
}
}
}Case plus tasks generated for the Case plus any data returned on task execution
| caseId required | integer ID number of Case |
{- "caseHx": {
- "doseTasks": [
- {
- "product": "Calcium gluconate 23%",
- "route": "IV",
- "dose": {
- "quantity": {
- "dimension": "Mass",
- "value": 3,
- "symbol": "oz"
}
}, - "_type": "models.Ptask",
- "id": 123,
- "caseId": 123,
- "morId": 123,
- "vorId": 123,
- "animalId": "this",
- "doAt": "2020-01-10T10:30:37Z",
- "executor": 123,
- "status": "REQUIRED"
}
], - "promiseTasks": [
- {
- "promId": 123,
- "data": {
- "_type": "models.PdataNone",
- "promiseId": 123
}, - "_type": "models.Ptask",
- "id": 123,
- "caseId": 123,
- "morId": 123,
- "vorId": 123,
- "animalId": "this",
- "doAt": "2020-01-10T10:30:37Z",
- "executor": 123,
- "status": "REQUIRED"
}
], - "Withhold": {
- "id": 0,
- "caseId": 0,
- "animalId": "Bossie",
- "initiated": "2019-08-24T14:15:22Z",
- "wtMeatUntil": "2019-08-24T14:15:22Z",
- "wtMilkUntil": "2019-08-24T14:15:22Z",
- "wtNote": "not for dairy animals",
- "note": "string"
}, - "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}
}A filtered list of Prescriptions with Cases enrolled to each.
| vorId | integer ID number of prescribing VOR |
| morId | integer ID number of MOR prescribed to |
| protocolId | integer ID number of protocol prescribed |
| enrolledBefore | string <date-time> Example: enrolledBefore=2020-01-10T22:20:39Z last date limit for Case enrollment |
| enrolledAfter | string <date-time> Example: enrolledAfter=2019-01-10T22:20:39Z earliest date limit for Case enrollment |
| offset | integer Default: 0 page start |
| limit | integer Default: 20 maximum page length |
{- "rxesWithCases": [
- {
- "cases": [
- {
- "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}
], - "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "mor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "vor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "rxId": "gG3pBCR1GCMKm89c",
- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}, - "vorId": 1,
- "morId": 2,
- "refills": 0,
- "expiration": "2021-01-10T10:30:37Z",
- "created": "2021-08-10T10:30:37Z",
- "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
], - "status": "PRESCRIBED"
}
], - "of": 0
}Get all current cases for this prescription and this user
| rxId required | string Example: Vi1y9kbpEj7Upqy7 prescription uuid |
{- "cases": [
- {
- "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}
]
}Mark task status as completed
| promId required | integer <int64> ID of Promise |
any (PData) a task | |
| _type required | string identifies the task subtype as shown in the AnimalTask discriminator mapping, like |
| id required | integer <int64> PTask ID number |
| caseId required | integer <int64> ID number of Case that includes this task |
| morId required | integer <int64> ID of MOR user responsible for execution of this task |
| vorId required | integer <int64> ID of VOR prescribing the task |
| animalId | string ID of animal to which the task applies |
| doAt required | string <date-time> ISO-8601-formatted datetime when the task should be executed |
| executor | integer <int64> ID of Person who should execute the task |
| status required | string (TaskStatus) Enum: "REQUIRED" "SUGGESTED" "DUE" "OPTIONAL" "OVERDUE" "CANCELLED" "REJECTED" "RECALLED" "EXECUTED" "UNKNOWN" task status |
{- "promId": 123,
- "data": {
- "_type": "models.PdataNone",
- "promiseId": 123
}, - "_type": "models.PTask",
- "id": 123,
- "caseId": 123,
- "morId": 123,
- "vorId": 123,
- "animalId": "this",
- "doAt": "2020-01-10T10:30:37Z",
- "executor": 123,
- "status": "REQUIRED"
}{- "case": {
- "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}
}{- "cases": [
- {
- "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}
]
}This endpoint returns the summary listing of a Greenbook Drug by NDC pattern.
| ndcProd | integer first section labeler code of a NDC |
| ndcLabeler | integer mid section product code of a NDC |
| ndcBrand | integer end section package code of a NDC |
[- {
- "id": 0,
- "companyId": 0,
- "nada": "string",
- "name": "string",
- "imageURL": "string",
- "insertURL": "string"
}
]This endpoint returns the summary listing of a Greenbook Drug by ndc identifier.
| ndc required | string Example: 0061-4321-03 unique 10-digit, 3-segment number. labelerCode-productCode-packageCode |
{- "id": 0,
- "companyId": 0,
- "nada": "string",
- "name": "string",
- "imageURL": "string",
- "insertURL": "string"
}| ndc required | string Example: 0061-4321-03 unique 10-digit, 3-segment number. labelerCode-productCode-packageCode |
{- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}REcords link for loading an image.
| id required | integer |
| link required | string |
| thumbnail | string |
| keywords | Array of strings |
| name required | string <= 80 characters description of image |
required | object (ImageStore) An online source for images |
{- "id": 888,
- "link": "string",
- "thumbnail": "string",
- "keywords": [
- "string"
], - "name": "string",
- "store": {
- "id": 888,
- "uri": "string",
- "name": "string",
- "headers": [
- {
- "key": "X-Auth-Token",
- "value": "string"
}
]
}
}{- "case": {
- "id": 0,
- "promises": 0,
- "doses": 0,
- "withhold": 0
}
}{- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}get withholds that include present or future time.
{- "labels": [
- {
- "id": 0,
- "caseId": 0,
- "animalId": "Bossie",
- "initiated": "2019-08-24T14:15:22Z",
- "wtMeatUntil": "2019-08-24T14:15:22Z",
- "wtMilkUntil": "2019-08-24T14:15:22Z",
- "wtNote": "not for dairy animals",
- "note": "string"
}
]
}get a Promise
| id required | integer Example: 32 promise ID |
{- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}send a message to another user
| modes | Array of strings (MessageMode) Items Value: "EMAIL" Example: modes=EMAIL Mode(s) or channel(s) to use in messaging, defaulting to EMAIL |
| _type required | string identifies the UserMessage subtype |
| from required | integer (UserNumber) Long integer key to a User |
| to required | integer (UserNumber) Long integer key to a User |
| subject required | string subject line for the message |
| message required | string <html> the message |
| detail | string <html> |
{- "_type": "models.SimpleMessage",
- "from": 99,
- "to": 99,
- "subject": "string",
- "message": "Hello <b>world</b>",
- "detail": "string"
}{- "message": {
- "_type": "models.SimpleMessage",
- "subject": "message from your vet",
- "message": "Hello world",
- "detail": "do not reply"
}
}Prescriptions are immutable except for metadata, and cannot actually be deleted. This endpoint makes a prescription unavailable for use. If called by the VOR, it sets staus to RECALLED. If called by the MOR to whom it is prescribed, it sets status to DECLINED. New cases cannot be enrolled if either RECALLED or DECLIENED.
| id required | string Example: Vi1y9kbpEj7Upqy7 Prescription ID key |
{- "updated": 0
}Creates a Case linked to a prescription.
| id required | integer <int64> Default: null Case ID number |
| rxId required | string UUID identifying the prescription |
| animalId required | string |
| initiationTime required | string <date-time> |
| note | string |
| morId | integer |
required | any (CaseData) data for an individual Case |
{- "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}{- "case": {
- "id": 0,
- "promises": 0,
- "doses": 0,
- "withhold": 0
}
}Enrolls a Case from its Prescription and generates DoseTasks, Promise tasks, and Withhold as specified in the Protocol.
| id required | integer <int64> Default: null Case ID number |
| rxId required | string UUID identifying the prescription |
| animalId required | string |
| initiationTime required | string <date-time> |
| note | string |
| morId | integer |
required | any (CaseData) data for an individual Case |
{- "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}{- "case": {
- "id": 0,
- "promises": [
- {
- "promId": 123,
- "data": {
- "_type": "models.PdataNone",
- "promiseId": 123
}, - "_type": "models.Ptask",
- "id": 123,
- "caseId": 123,
- "morId": 123,
- "vorId": 123,
- "animalId": "this",
- "doAt": "2020-01-10T10:30:37Z",
- "executor": 123,
- "status": "REQUIRED"
}
], - "doses": [
- {
- "product": "Calcium gluconate 23%",
- "route": "IV",
- "dose": {
- "quantity": {
- "dimension": "Mass",
- "value": 3,
- "symbol": "oz"
}
}, - "_type": "models.Ptask",
- "id": 123,
- "caseId": 123,
- "morId": 123,
- "vorId": 123,
- "animalId": "this",
- "doAt": "2020-01-10T10:30:37Z",
- "executor": 123,
- "status": "REQUIRED"
}
], - "withhold": {
- "id": 0,
- "caseId": 0,
- "animalId": "Bossie",
- "initiated": "2019-08-24T14:15:22Z",
- "wtMeatUntil": "2019-08-24T14:15:22Z",
- "wtMilkUntil": "2019-08-24T14:15:22Z",
- "wtNote": "not for dairy animals",
- "note": "string"
}
}
}Case plus tasks generated for the Case plus any data returned on task execution
| caseId required | integer ID number of Case |
{- "caseHx": {
- "doseTasks": [
- {
- "product": "Calcium gluconate 23%",
- "route": "IV",
- "dose": {
- "quantity": {
- "dimension": "Mass",
- "value": 3,
- "symbol": "oz"
}
}, - "_type": "models.Ptask",
- "id": 123,
- "caseId": 123,
- "morId": 123,
- "vorId": 123,
- "animalId": "this",
- "doAt": "2020-01-10T10:30:37Z",
- "executor": 123,
- "status": "REQUIRED"
}
], - "promiseTasks": [
- {
- "promId": 123,
- "data": {
- "_type": "models.PdataNone",
- "promiseId": 123
}, - "_type": "models.Ptask",
- "id": 123,
- "caseId": 123,
- "morId": 123,
- "vorId": 123,
- "animalId": "this",
- "doAt": "2020-01-10T10:30:37Z",
- "executor": 123,
- "status": "REQUIRED"
}
], - "Withhold": {
- "id": 0,
- "caseId": 0,
- "animalId": "Bossie",
- "initiated": "2019-08-24T14:15:22Z",
- "wtMeatUntil": "2019-08-24T14:15:22Z",
- "wtMilkUntil": "2019-08-24T14:15:22Z",
- "wtNote": "not for dairy animals",
- "note": "string"
}, - "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}
}A filtered list of Prescriptions with Cases enrolled to each.
| vorId | integer ID number of prescribing VOR |
| morId | integer ID number of MOR prescribed to |
| protocolId | integer ID number of protocol prescribed |
| enrolledBefore | string <date-time> Example: enrolledBefore=2020-01-10T22:20:39Z last date limit for Case enrollment |
| enrolledAfter | string <date-time> Example: enrolledAfter=2019-01-10T22:20:39Z earliest date limit for Case enrollment |
| offset | integer Default: 0 page start |
| limit | integer Default: 20 maximum page length |
{- "rxesWithCases": [
- {
- "cases": [
- {
- "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}
], - "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "mor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "vor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "rxId": "gG3pBCR1GCMKm89c",
- "protocol": {
- "id": 12345,
- "ownerId": 1,
- "ownerName": 1,
- "name": "wip",
- "shortname": "wip",
- "created": "2020-01-10T10:30:37Z",
- "edited": "2020-02-10T10:30:37Z",
- "status": "PRESCRIBED",
- "vetNote": "consider prescribing protocol x instead",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "instructions": {
- "considerations": "<p>This is just an example, not a real protocol.</p>",
- "restrictions": "<p>Not for use on real animals.</p>",
- "dothis": "<h3>Examinations to perform</h3>",
- "recordthis": "<p>record every step in your notebook.</p>",
- "success": "<p>All problems are gone</p>",
- "failure": "<p>One or more problems remain</p>",
- "references": "<a href=\"https://en.wikipedia.org/wiki/Rickrolling\">Wikipedia</a>"
}, - "shareAll": true,
- "shareClonable": true,
- "caseDefinition": {
- "pxId": 0,
- "requireID": false,
- "requireMOR": false,
- "contraindications": "<p>prohibited in animals older than than 24 months</p>",
- "medical": "if fever is present, consider Protocol 12345 instead.",
- "economic": "culling should be considered as an alternative, as milk production is unlikely to return to normal after treatment",
- "note": "<p>overcrowding may be contributing to issues</p>"
}, - "treatments": [
- {
- "id": "B-123",
- "ownerId": 0,
- "labelId": 0,
- "description": "3.0 ml per kg repeat",
- "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "product": "MiracleMed",
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "dosage": {
- "doseId": "wip"
}, - "route": "wip",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "wtNote": "string",
- "wtMeatHrs": "wip",
- "wtMilkHrs": "wip",
- "ndc": "wip",
- "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "note": "<p>a free-form note</p>",
- "amduca": "ONLABEL"
}
], - "tags": [
- {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
], - "diagnoses": [
- {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
], - "eligibilities": [
- {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
], - "promises": [
- {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
], - "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
]
}, - "vorId": 1,
- "morId": 2,
- "refills": 0,
- "expiration": "2021-01-10T10:30:37Z",
- "created": "2021-08-10T10:30:37Z",
- "metadata": [
- {
- "key": "popularity",
- "value": "good 1.2"
}
], - "status": "PRESCRIBED"
}
], - "of": 0
}Mark task status as completed
| promId required | integer <int64> ID of Promise |
any (PData) a task | |
| _type required | string identifies the task subtype as shown in the AnimalTask discriminator mapping, like |
| id required | integer <int64> PTask ID number |
| caseId required | integer <int64> ID number of Case that includes this task |
| morId required | integer <int64> ID of MOR user responsible for execution of this task |
| vorId required | integer <int64> ID of VOR prescribing the task |
| animalId | string ID of animal to which the task applies |
| doAt required | string <date-time> ISO-8601-formatted datetime when the task should be executed |
| executor | integer <int64> ID of Person who should execute the task |
| status required | string (TaskStatus) Enum: "REQUIRED" "SUGGESTED" "DUE" "OPTIONAL" "OVERDUE" "CANCELLED" "REJECTED" "RECALLED" "EXECUTED" "UNKNOWN" task status |
{- "promId": 123,
- "data": {
- "_type": "models.PdataNone",
- "promiseId": 123
}, - "_type": "models.PTask",
- "id": 123,
- "caseId": 123,
- "morId": 123,
- "vorId": 123,
- "animalId": "this",
- "doAt": "2020-01-10T10:30:37Z",
- "executor": 123,
- "status": "REQUIRED"
}{- "case": {
- "id": 123,
- "rxId": "gG3pBCR1GCMKm89c",
- "animalId": "Bossie34",
- "initiationTime": "2019-08-24T14:15:22Z",
- "note": "string",
- "morId": 0,
- "caseData": {
- "_type": "models.NoData"
}
}
}| ndc required | string Example: 0061-4321-03 unique 10-digit, 3-segment number. labelerCode-productCode-packageCode |
{- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}REcords link for loading an image.
| id required | integer |
| link required | string |
| thumbnail | string |
| keywords | Array of strings |
| name required | string <= 80 characters description of image |
required | object (ImageStore) An online source for images |
{- "id": 888,
- "link": "string",
- "thumbnail": "string",
- "keywords": [
- "string"
], - "name": "string",
- "store": {
- "id": 888,
- "uri": "string",
- "name": "string",
- "headers": [
- {
- "key": "X-Auth-Token",
- "value": "string"
}
]
}
}{- "case": {
- "id": 0,
- "promises": 0,
- "doses": 0,
- "withhold": 0
}
}Users may update their own data. A VOR may also update User data of a User in a CLIENT relationship with that VOR. A SAOR may update data of any User.
object (User) a User of a |
{- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}
}{- "updated-records": 0
}Authenticate a User and the app requesting a token, returning a token for use in future secured requests.
| apikey required | string An API key assigned to an application for access to this API. To request a free API key please contact the system administrator. |
| identifier required | string
|
| password required | string >= 8 characters User password |
{- "apikey": "t0CGzpQ4cgu1OBy44sBt",
- "identifier": "someUser",
- "password": "somePassword"
}{- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzMmFXUmxja2xFSWpvaVkzSmxaR1Z1ZEdsp3Y205MmFXUmxja3RsZVNJNkluUmxjM1JXVDFJaWZRPT0iLCJpc3MiOiJwbGF5LXNpbGhvdWV0dGUiLCJle***...",
- "filePolicy": "3da8c83495cb00d21690d00de5611d9a",
- "fileSignature": "eyJleHBpcnkiOjE1Nzg3NTY2MDIsIm1MDAwMDAwfQ==",
- "wsTicket": "eyJleHBpcnkiOjE2MDIsIm1heFNpemUiOjEwMDAwMDAwfQ=="
}Renews the User's access token for use in future secured requests.
{- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}, - "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzMmFXUmxja2xFSWpvaVkzSmxaR1Z1ZEdsp3Y205MmFXUmxja3RsZVNJNkluUmxjM1JXVDFJaWZRPT0iLCJpc3MiOiJwbGF5LXNpbGhvdWV0dGUiLCJle***...",
- "filePolicy": "3da8c83495cb00d21690d00de5611d9a",
- "fileSignature": "eyJleHBpcnkiOjE1Nzg3NTY2MDIsIm1MDAwMDAwfQ==",
- "wsTicket": "eyJleHBpcnkiOjE2MDIsIm1heFNpemUiOjEwMDAwMDAwfQ=="
}Returns User data as specified by User id. Any User may get their own data. A VOR may get User data of Users in a CLIENT relationship with that VOR. A SAOR may get data of any User.
| id required | integer Example: 2 User ID key |
{- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}
}A User may update their own address.
object (User) a User of a |
{- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}
}{- "updated-records": 0
}Address of user specified by id.
| id required | integer Example: 2 User ID key |
{- "user": {
- "userId": 0,
- "busName": "testVOR Clinic",
- "address1": "123 Main St.",
- "address2": "123 Main St.",
- "town": "Anytown",
- "state": "Any State",
- "zip": "12345-abcd",
- "country": "USA"
}
}A User may update their own profile.
object (Profile) User data including Address and preferences |
{- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string",
- "userId": 0,
- "busName": "testVOR Clinic",
- "address1": "123 Main St.",
- "address2": "123 Main St.",
- "town": "Anytown",
- "state": "Any State",
- "zip": "12345-abcd",
- "country": "USA",
- "sandboxName": "string",
- "emailTips": true,
- "emailNews": true,
- "rxHeader": "string"
}
}{- "profile": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string",
- "userId": 0,
- "busName": "testVOR Clinic",
- "address1": "123 Main St.",
- "address2": "123 Main St.",
- "town": "Anytown",
- "state": "Any State",
- "zip": "12345-abcd",
- "country": "USA",
- "sandboxName": "string",
- "emailTips": true,
- "emailNews": true,
- "rxHeader": "string"
}
}Profile of user specified by id.
| id required | integer Example: 2 User ID key |
{- "user": {
- "userId": 0,
- "busName": "testVOR Clinic",
- "address1": "123 Main St.",
- "address2": "123 Main St.",
- "town": "Anytown",
- "state": "Any State",
- "zip": "12345-abcd",
- "country": "USA"
}
}used for clickable link to confirm a token sent in email.
| token required | string Example: 2frfgjty single-use token required for authentication |
{- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}Records a User comment to the database and emails admin. It supports privacy controls.
| userId | integer Default: null set null or zero if User wishes to be anonymous |
| public | boolean Default: false if false, comment is private to site managers |
| comment required | string user's comment |
{- "userId": 1,
- "public": false,
- "comment": "some comment"
}{- "recorded": 0
}Respond to a message according to the content in the message, secured by a token that links the response to a UserMessage. Typically token expires in 48 hr.
| token required | string a token supplied in a message asking for a response. Token typically expires in 48 hr. |
| response | boolean Default: false A message may include a question requiring a yes-or-no response. For example, an email message could include links for "confirm" or decline" with only the first setting the response parameter to true. |
{- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}| sendEmail | boolean Default: true |
{- "vor": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string"
}
}| keywords | Array of strings |
| productId | integer |
| dx | integer |
| ex | integer |
{- "image": {
- "id": 888,
- "link": "string",
- "thumbnail": "string",
- "keywords": [
- "string"
], - "name": "string",
- "store": {
- "id": 888,
- "uri": "string",
- "name": "string",
- "headers": [
- {
- "key": "X-Auth-Token",
- "value": "string"
}
]
}
}
}{- "image": {
- "id": 888,
- "link": "string",
- "thumbnail": "string",
- "keywords": [
- "string"
], - "name": "string",
- "store": {
- "id": 888,
- "uri": "string",
- "name": "string",
- "headers": [
- {
- "key": "X-Auth-Token",
- "value": "string"
}
]
}
}
}{- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}{- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}{- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}This endpoint supports the (reversible) "delete" of a User by setting user.status to REMOVED. Removed Users are not visible in normal queries.
| id required | integer Example: 5 User ID key |
{- "deleted": 0
}Create a Tag.
| id required | integer Tag ID number |
| color required | string color code |
| name required | string <= 15 characters keyword code identifying tag |
Array of any (Remedy) |
{- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}{- "tag": {
- "id": 8,
- "color": "#516cc6",
- "name": "string",
- "fixes": [
- {
- "_type": "models.RestrictionRemedy",
- "title": "exCode",
- "message": "exMessage",
- "detail": "exDetail"
}
]
}
}REcord a Promise type that will be public (available to all VORs)
| _type required | string Enum: "models.AffirmationPromise" "models.BooleanPromise" "models.StringPromise" "models.NumberPromise" "models.MassPromise" "models.CategoryPromise" Class of Promise |
| id | integer database primary key |
| ownerId | integer Default: null id of VOR user with exclusive access to this Promise. If null, Promise is available to all users. |
| name required | string >= 8 characters a short name |
| descrip | string <html> html description describing in detail what must be done to complete the Promise |
| when required | string <duration> Default: "PT0H" ISO-8601 duration from initiation when promise must be fulfilled |
| query required | string <html> A question the user must answer. |
{- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}{- "promise": {
- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}
}send a message to another user
| modes | Array of strings (MessageMode) Items Value: "EMAIL" Example: modes=EMAIL Mode(s) or channel(s) to use in messaging, defaulting to EMAIL |
| _type required | string identifies the UserMessage subtype |
| from required | integer (UserNumber) Long integer key to a User |
| to required | integer (UserNumber) Long integer key to a User |
| subject required | string subject line for the message |
| message required | string <html> the message |
| detail | string <html> |
{- "_type": "models.SimpleMessage",
- "from": 99,
- "to": 99,
- "subject": "string",
- "message": "Hello <b>world</b>",
- "detail": "string"
}{- "message": {
- "_type": "models.SimpleMessage",
- "subject": "message from your vet",
- "message": "Hello world",
- "detail": "do not reply"
}
}Creation a Eligibility.
| id | integer Eligibility ID number |
| name required | string A type of animal which is eligible to be treated using a protocol having this Eligibility |
| fdaSpecies required | string (FDASpecies) a class of animals recognized by the FDA. In FDA literature this is called a "species", which conflicts with the typical usage of that word. "fdaSpecies" in the labeling domain usually corresponds with "Eligibility" in the Protocol domain. |
{- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}{- "protocol": {
- "id": 1,
- "name": "Beef Cattle",
- "fdaSpecies": "string"
}
}Create a Diagnosis.
| id | integer Diagnosis ID number |
| name | string <= 255 characters free-form text description of the Diagnosis |
{- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}{- "protocol": {
- "id": 8,
- "name": "Pain/inflammation (musculoskeletal), treatment"
}
}Creation a help screen.
| key required | string help screen key |
| key required | string |
| msg required | string <html> the html message to display |
| lang | string language code |
{- "key": "string",
- "msg": "string",
- "lang": "string"
}{- "protocol": {
- "key": "string",
- "msg": "string",
- "lang": "string"
}
}Creation a labelclaim.
| id required | integer unique identifier for label |
| fdaSpecies required | Array of strings (FDAspecies) Items Enum: "BeefCattle" "Calves" "CalvesNotVeal" "Cats" "Chickens" "ChickensBroilers" "ChickensNotLaying" "ChickensReplacements" "DairyCalves" "DairyHeifers" "DairyCattle" "DairyCattleNonLactating" "Dogs" "Fish" "Goats" "Horses" "Sheep" "Swine" "SwineBreeding" "Turkeys" "TurkeysGrowing" "TurkeysMeatProducing" "TurkeysNotLaying" "Catfish" "Gamebirds" "Llamas" "Salmon" "Emus" "Bison" "Other" "Unidentified" a class of animals recognized by the FDA. In FDA literature this is called a "species", which conflicts with the typical usage of that word. "fdaSpecies" in the labeling domain usually corresponds with "Eligibility" in the Protocol domain. |
| diagnosis required | string label diagnosis |
| dxId required | integer id of label diagnosis |
| product required | string product trade name |
| productId | integer unique identifier for the product described |
| _dose | string free-form text note on dosage |
| route required | string route of administration |
any (SequenceFunction) function to calculate times for a series of doses | |
any (SizeFunction) function to calculate dose size | |
| doseNote | string <html> test note about dose |
| wtMeatHrs required | integer meat withholding in hours |
| wtMilkHrs required | integer milk withholding in hours |
| wtNote | string note on withholding |
| ndc | string FDA NADA or ANADA number |
| generic | string generic name for product |
| isRx required | boolean Default: true Is this a prescription drug? |
{- "id": 1,
- "fdaSpecies": [
- "ChickensBroilers"
], - "diagnosis": "pain (colic), symptomatic treatment",
- "dxId": 2002,
- "product": "Prevail™ Flunixin Meglumine Injection",
- "productId": 1315018,
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "route": "intr-corporeal",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "doseNote": "THis can contain <b>html</b> tags",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "wtNote": "not for dairy animals",
- "ndc": "200-308",
- "generic": "OXYTETRACYCLINE",
- "isRx": true
}{- "protocol": {
- "id": 1,
- "fdaSpecies": [
- "ChickensBroilers"
], - "diagnosis": "pain (colic), symptomatic treatment",
- "dxId": 2002,
- "product": "Prevail™ Flunixin Meglumine Injection",
- "productId": 1315018,
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "route": "intr-corporeal",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "doseNote": "THis can contain <b>html</b> tags",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "wtNote": "not for dairy animals",
- "ndc": "200-308",
- "generic": "OXYTETRACYCLINE",
- "isRx": true
}
}update a labelclaim.
| id required | integer unique identifier for label |
| fdaSpecies required | Array of strings (FDAspecies) Items Enum: "BeefCattle" "Calves" "CalvesNotVeal" "Cats" "Chickens" "ChickensBroilers" "ChickensNotLaying" "ChickensReplacements" "DairyCalves" "DairyHeifers" "DairyCattle" "DairyCattleNonLactating" "Dogs" "Fish" "Goats" "Horses" "Sheep" "Swine" "SwineBreeding" "Turkeys" "TurkeysGrowing" "TurkeysMeatProducing" "TurkeysNotLaying" "Catfish" "Gamebirds" "Llamas" "Salmon" "Emus" "Bison" "Other" "Unidentified" a class of animals recognized by the FDA. In FDA literature this is called a "species", which conflicts with the typical usage of that word. "fdaSpecies" in the labeling domain usually corresponds with "Eligibility" in the Protocol domain. |
| diagnosis required | string label diagnosis |
| dxId required | integer id of label diagnosis |
| product required | string product trade name |
| productId | integer unique identifier for the product described |
| _dose | string free-form text note on dosage |
| route required | string route of administration |
any (SequenceFunction) function to calculate times for a series of doses | |
any (SizeFunction) function to calculate dose size | |
| doseNote | string <html> test note about dose |
| wtMeatHrs required | integer meat withholding in hours |
| wtMilkHrs required | integer milk withholding in hours |
| wtNote | string note on withholding |
| ndc | string FDA NADA or ANADA number |
| generic | string generic name for product |
| isRx required | boolean Default: true Is this a prescription drug? |
{- "id": 1,
- "fdaSpecies": [
- "ChickensBroilers"
], - "diagnosis": "pain (colic), symptomatic treatment",
- "dxId": 2002,
- "product": "Prevail™ Flunixin Meglumine Injection",
- "productId": 1315018,
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "route": "intr-corporeal",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "doseNote": "THis can contain <b>html</b> tags",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "wtNote": "not for dairy animals",
- "ndc": "200-308",
- "generic": "OXYTETRACYCLINE",
- "isRx": true
}{- "protocol": {
- "id": 1,
- "fdaSpecies": [
- "ChickensBroilers"
], - "diagnosis": "pain (colic), symptomatic treatment",
- "dxId": 2002,
- "product": "Prevail™ Flunixin Meglumine Injection",
- "productId": 1315018,
- "_dose": "3.0 ml per kg repeat in 6 hours and again in 24 hours",
- "route": "intr-corporeal",
- "sequenceFunction": {
- "_type": "models.SeqSingleDose"
}, - "sizeFunction": {
- "dose": {
- "quantity": {
- "dimension": "Volume",
- "value": 3,
- "symbol": "ml"
}
}, - "_type": "models.FixedDoseFunction"
}, - "doseNote": "THis can contain <b>html</b> tags",
- "wtMeatHrs": 22,
- "wtMilkHrs": 5,
- "wtNote": "not for dairy animals",
- "ndc": "200-308",
- "generic": "OXYTETRACYCLINE",
- "isRx": true
}
}| ndc required | string Example: 0061-4321-03 unique 10-digit, 3-segment number. labelerCode-productCode-packageCode |
{- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}Return GBDs.
| ndcProd | integer first section labeler code of a NDC |
| ndcLabeler | integer mid section product code of a NDC |
| ndcBrand | integer starting row number in GBD table |
| offset | integer maximum number of rows to return |
| eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJleUp3Y205MmFXUmxja2xFSWpvaVkzSmxaR1Z1ZEdsaGJITWlMQ0p3Y205MmFXUmxja3RsZVNJNkluUmxjM1JXVDFJaWZRPT0iLCJpc3MiOiJwbGF5LXNpbGhvdWV0dGUiLCJle***... | integer end section package code of a NDC |
[- {
- "ndc": "0010-3495",
- "proprietary": "Bio-Mycin 200",
- "nonProp": "OXYTETRACYCLINE",
- "ingredients": "OXYTETRACYCLINE",
- "labeler": "Boehringer Ingelheim Vetmedica, Inc.",
- "productType": "OTC ANIMAL DRUG",
- "marketCat": "ANADA",
- "appNumber": "ANADA200008",
- "status": 0,
- "lastChanged": "2020-05-16T16:19:12Z"
}
]M
| ndc required | string FDA NDC number |
| proprietary required | string proprietary name |
| nonProp required | string generic name |
| ingredients required | string ingredient or ingredients |
| labeler required | string name of labeler |
| productType required | string type of product |
| marketCat required | string market category |
| appNumber required | string application number |
| link required | string public link to fda label |
| status required | integer FDA status |
| lastChanged required | string <date-time> date of last label change |
{- "ndc": "0010-3495",
- "proprietary": "Bio-Mycin 200",
- "nonProp": "OXYTETRACYCLINE",
- "ingredients": "OXYTETRACYCLINE",
- "labeler": "Boehringer Ingelheim Vetmedica, Inc.",
- "productType": "OTC ANIMAL DRUG",
- "marketCat": "ANADA",
- "appNumber": "ANADA200008",
- "status": 0,
- "lastChanged": "2020-05-16T16:19:12Z"
}{- "case": {
- "ndc": "0010-3495",
- "proprietary": "Bio-Mycin 200",
- "nonProp": "OXYTETRACYCLINE",
- "ingredients": "OXYTETRACYCLINE",
- "labeler": "Boehringer Ingelheim Vetmedica, Inc.",
- "productType": "OTC ANIMAL DRUG",
- "marketCat": "ANADA",
- "appNumber": "ANADA200008",
- "status": 0,
- "lastChanged": "2020-05-16T16:19:12Z"
}
}| ndc required | string Example: 0061-4321-03 unique 10-digit, 3-segment number. labelerCode-productCode-packageCode |
{- "errorType": "Duplicate entry 'testVOR2' for key 'userid.uname_idx'",
- "title": "Processing Error",
- "status": 400,
- "detail": "java.sql.SQLIntegrityConstraintViolationException",
- "instance": "/login/log/abc123"
}get a Promise
| id required | integer Example: 32 promise ID |
{- "_type": "models.AffirmationPromise",
- "id": 2345,
- "ownerId": 123,
- "name": "ID promise",
- "descrip": "You must give ID for each case enrolled",
- "when": "PT24H",
- "query": "What is the animal's name or ID?"
}Create a User with Address, and UserPrefs.
object (Profile) User data including Address and preferences |
{- "user": {
- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string",
- "userId": 0,
- "busName": "testVOR Clinic",
- "address1": "123 Main St.",
- "address2": "123 Main St.",
- "town": "Anytown",
- "state": "Any State",
- "zip": "12345-abcd",
- "country": "USA",
- "sandboxName": "string",
- "emailTips": true,
- "emailNews": true,
- "rxHeader": "string"
}
}{- "id": 99,
- "uname": "exampleUser",
- "userType": "VOR",
- "email": "exampleUser@email.com",
- "firstname": "Example",
- "lastname": "User",
- "suffix": "DVM",
- "phone": "string",
- "userId": 0,
- "busName": "testVOR Clinic",
- "address1": "123 Main St.",
- "address2": "123 Main St.",
- "town": "Anytown",
- "state": "Any State",
- "zip": "12345-abcd",
- "country": "USA",
- "sandboxName": "string",
- "emailTips": true,
- "emailNews": true,
- "rxHeader": "string"
}adds a timestamped entry to server logs
| severity | string Default: "INFO" Enum: "INFO" "ERROR" "DEBUG" "WARN" logging level severity, defaulting to INFO |
{- "logged": "string"
}