Tags

    API - Authenticate

    Description

    The Authenticate message opens access to the VistA system for the permissions associated with the Access Code, Verify Code, and Site Code provided in the Authenticate parameters.

    Upon successful authentication, a block of json detailing the permissions / data access provided to the account as well as a cookie that is used to verify the session for subsequent calls. See related section at bottom for related message references.


    Message


    Request URL

    https://ehmp.vaftl.us:443/resource/authentication

    Headers

    Content-Type = application/json

    Body Parameters

    Name

    Type

    Range

    Notes

    accessCode Text usually combination of letters and numbers acting as a username
    verifyCode Text usually combination of letters and numbers acting as a password
    siteCode Text normally numeric in VistA, VistA Exchange takes alphanumeric

    Sample Data

    User

    Access Code

    Verify Code

    Notes

    Margaret Xiu mx1234 mx1234!! Role : Clinician, Provider
    Permissions: read
    Vihaan Khan vk1234 vk1234!! Role : Clinician, Provider
    Permissions : add, cosign, discontinue, edit, exe, read, release, remove, sign
    Tracey Keeley tk1234 tk1234!! Role : Pharmacist, Non-Provider
    Permissions : add, edit (limited), eie (limited), read, release (only for med order)
    Michael Day md1234 md1234!! Role : Lab Tech, Provider
    Permissions : add, cosign (lab order only), edit, read

    Site Code

    Notes

    9E7A Panorama
    C877 Kodak
    808D Polaroid


    Examples

    Raw Request Example

    POST /resource/authentication?Content-Type=application%2Fjson HTTP/1.1
    Content-Type: application/json
    Cookie: rdk.sid=s%3AXGTkDySNJSR_v7EYoEAbv6GSFWjF5eVW.3z56A67mFzcIhEsSwCzNW4MuMxfdCiOgpoZJOPFmKzI
    Host: ehmp.vaftl.us
    Connection: close
    User-Agent: Paw/2.2.9 (Macintosh; OS X/10.11.3) GCDHTTPRequest
    Content-Length: 74
    {
    "accessCode": "md1234",
    "verifyCode": "md1234!!",
    "site": "9E7A"
    }

    Objective C Example - Read


    Objective C Example - Write


    Related

    Comments

    /groups/ehmp/search/index.rss?tag=hotlist/groups/ehmp/search/?tag=hotWhat’s HotHotListHot!?tag=hot2/groups/ehmp/sidebar/HotListvaphscreaneEdward Crean2016-09-15 14:50:09+00:002016-09-15 14:50:09updated30vaphscreaneEdward Crean2016-09-09 14:46:46+00:002016-09-09 14:46:46updated29vaphscreaneEdward Crean2016-09-02 20:43:12+00:002016-09-02 20:43:12updated28vaphscreaneEdward Crean2016-07-06 15:45:20+00:002016-07-06 15:45:20updated27vaphscreaneEdward Crean2016-07-01 20:26:48+00:002016-07-01 20:26:48updated26vaphscreaneEdward Crean2016-07-01 19:16:57+00:002016-07-01 19:16:57updated25vaphscreaneEdward Crean2016-07-01 19:15:32+00:002016-07-01 19:15:32updated24vaphscreaneEdward Crean2016-07-01 19:14:46+00:002016-07-01 19:14:46updated23vaphscreaneEdward Crean2016-07-01 19:02:06+00:002016-07-01 19:02:06updated22vaphscreaneEdward Crean2016-07-01 19:01:43+00:002016-07-01 19:01:43updated21vaphscreaneEdward Crean2016-07-01 19:01:06+00:002016-07-01 19:01:06updated20vaphscreaneEdward Crean2016-07-01 18:58:31+00:002016-07-01 18:58:31updated19vaphscreaneEdward Crean2016-07-01 18:58:13+00:002016-07-01 18:58:13updated18vaphscreaneEdward Crean2016-07-01 18:57:09+00:002016-07-01 18:57:09updated17vaphscreaneEdward Crean2016-07-01 18:56:42+00:002016-07-01 18:56:42updated16vaphscreaneEdward Crean2016-07-01 18:54:24+00:002016-07-01 18:54:24updated15madminmadmin2016-01-11 21:48:12+00:002016-01-11 21:48:12updated14madminmadmin2016-01-11 21:47:40+00:002016-01-11 21:47:40updated13madminmadmin2016-01-11 21:46:15+00:002016-01-11 21:46:15updated12madminmadmin2015-12-23 17:19:07+00:002015-12-23 17:19:07updated11madminmadmin2015-10-08 16:46:45+00:002015-10-08 16:46:45updated10madminmadmin2015-10-07 20:20:32+00:002015-10-07 20:20:32updated9madminmadmin2015-10-07 20:20:07+00:002015-10-07 20:20:07updated8Added tag - hotmadminmadmin2015-10-07 20:20:06+00:002015-10-07 20:20:06addTag7madminmadmin2015-10-07 20:20:01+00:002015-10-07 20:20:01updated6vaphsadmwcadmCollins2015-10-07 20:10:41+00:002015-10-07 20:10:41updated5Added tag - developmentvaphscollibBc Collins2015-04-07 19:38:20+00:002015-04-07 19:38:20addTag4Added tag - vista evolutionvaphscollibBc Collins2015-04-07 19:38:11+00:002015-04-07 19:38:11addTag3Added tag - ehmpvaphscollibBc Collins2015-04-07 19:38:04+00:002015-04-07 19:38:04addTag2First createdvaphscollibBc Collins2015-04-07 19:37:37+00:002015-04-07 19:37:37created1wiki2016-09-15T14:50:09+00:00groups/ehmp/wiki/welcomeFalseeHMP /groups/ehmp/wiki/welcome/eHMP_.htmlEdward Crean30 updateseHMP This page provides: Welcome to eHMP Wiki Contents and Links to Pages Where to go next Welcome to eHMP ...Falsevaphscreane2016-09-15T14:50:09+00:00vaphsadmwcadmCollins2016-07-05 15:28:15+00:002016-07-05 15:28:15updated4Added tag - hotvaphsadmwcadmCollins2016-07-05 15:28:11+00:002016-07-05 15:28:11addTag3vaphsadmwcadmCollins2016-07-05 15:12:06+00:002016-07-05 15:12:06updated2First createdvaphsadmwcadmCollins2016-07-05 15:10:51+00:002016-07-05 15:10:51created1wiki2016-07-05T15:28:15+00:00groups/ehmp/wiki/9b773FalseeHMP v1.2 Viewer Edition Demo/groups/ehmp/wiki/9b773/eHMP_v12_Viewer_Edition_Demo.htmladmCollins4 updateseHMP v1.2 Viewer Edition Demo To edit this page, click the Edit (pencil) button. To delete this page, click the Delete (–) button. [Download file "eHMP_v1.2_June_2016.mp4...Falsevaphsadmwc2016-07-05T15:28:15+00:00hot/groups/ehmp/search/index.rss?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcomelist/groups/ehmp/search/?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcomeRecent ChangesRecentChangesListUpdates?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcome0/groups/ehmp/sidebar/RecentChangesListmodifiedDateallRecent ChangesRecentChangesListUpdateswiki/welcomeNo recent changes.reverse5search