{"info":{"_postman_id":"97f4da54-4f7a-432d-807b-80966c346651","name":"RealTime CTMS Referral API","description":"<html><head></head><body><p>The RealTime CTMS Referral APIs allow 3rd party clients to submit referrals to a CTMS system via a RESTful API request.</p>\n<h2 id=\"baseurl\">BaseURL</h2>\n<p>The <code>baseUrl</code> used with API endpoints is determined based on the RealTime server your system is hosted on and your site ID. For assistance with this URL please contact RealTime Support at <a href=\"mailto:support@realtime-ctms.com\">support@realtime-ctms.com</a>.</p>\n<p>baseUrls look similar to https://{domain-here}/{site-ID}/web/v1/{endpoint path}</p>\n<h2 id=\"authenticationauthorization\">Authentication/Authorization</h2>\n<p>All requests made to the various endpoints must include an Authorization header for a Bearer token (the publishable API key). An example Authorization header in a request would look like <code>Authorization: Bearer &lt;publishable key here&gt;</code></p>\n<p>Your publishable key is provided by RealTime. This key is publishable, which means it's safe for embedding in client web and mobile applications.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"26272660","collectionId":"97f4da54-4f7a-432d-807b-80966c346651","publishedId":"2s93JrvPf6","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-03-09T16:33:43.000Z"},"item":[{"name":"/studies/apply","id":"e19788f6-2efd-45cf-8b28-dec97c6f96f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"publishable key/token"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"StudyID","value":"","description":"<p>Required. The ID of the study the subject is applying to.</p>\n","type":"text"},{"key":"FirstName","value":"","description":"<p>Required. Subject's first name</p>\n","type":"text"},{"key":"LastName","value":"","description":"<p>Required. Subject's last name</p>\n","type":"text"},{"key":"EMail","value":"","description":"<p>Required. Email address</p>\n","type":"text"},{"key":"Phone","value":"","description":"<p>Required. Primary phone number. If phone verification is enabled then there will be a verification attempt. If RealTime TEXT is enabled the subject will be opted into appointment texts.</p>\n","type":"text"},{"key":"ReferrerID","value":"","description":"<p>Required. Referral source selected by subject.</p>\n","type":"text"},{"key":"_ContactTime[]","value":"","description":"<p>Best time of day to contact subject. Typical options are:</p>\n<ul>\n<li>Morning (8-11AM)</li>\n<li>Lunchtime (11AM-1PM)</li>\n<li>Afternoon (1-5PM)</li>\n<li>Evening (After 5PM)</li>\n</ul>\n","type":"text"},{"key":"_ContactMethod","value":"","description":"<p>Best contact method for subject, e.g. txt, phone, etc.</p>\n","type":"text"},{"key":"Gender","value":"","description":"<p>Gender as M or F</p>\n","type":"text"},{"key":"DOB","value":"","description":"<p>Date of birth formatted as YYYY-MM-DD</p>\n","type":"text"},{"key":"ZipCode","value":"","description":"<p>ZIP or postal code. May be required based on system configuration.</p>\n","type":"text"},{"key":"medicalhistory[]","value":"","description":"<p>List of medical conditions for subject.</p>\n","type":"text"},{"key":"socialhistory[]","value":"","description":"<p>List of social conditions for subject.</p>\n","type":"text"},{"key":"medications[]","value":"","description":"<p>List of medications taken by subject.</p>\n","type":"text"},{"key":"questions[]","value":"","description":"<p>Requires Question ID. Question ID and Answer value pairing for Global and Study specific questions. 0: No, 1: Yes, 2: N/A, 3: unanswered -.</p>\n","type":"text"}]},"url":"/studies/apply","description":"<p>Sends a subject referral to the CTMS system to be added. Duplicate checks are performed to determine whether the subject is already in the system. If phone number verification is enabled a verification check will be performed. If RealTime Text is enabled, subjects with a phone number determined to be a mobile number will be opted in to receive text messages for appointment reminders and optionally marketing texts (based on system configuration).</p>\n<p>Note regarding <code>questions[]</code>: The question ID is not exposed via this endpoint and requires an additional API. Contact <a href=\"https://mailto:support@realtime-ctms.com\">support@realtime-ctms.com</a> for more information.</p>\n<h2 id=\"required-fields\">Required fields</h2>\n<p>By defualt the following 6 fields are required.</p>\n<ul>\n<li><p>StudyID</p>\n</li>\n<li><p>FirstName</p>\n</li>\n<li><p>LastName</p>\n</li>\n<li><p>EMail</p>\n</li>\n<li><p>Phone</p>\n</li>\n<li><p>ReferrerID</p>\n</li>\n</ul>\n<p>Additional fields can be made to be required by the configurations options for the Web Integration located in the CTMS under Administration &gt; Configurations &gt; Web Integration &gt; Display Advanced Web Application Form.</p>\n<h2 id=\"url-encoding\">URL Encoding</h2>\n<p>For the best success in the <code>POST</code>, make sure to url encode the data when making the <code>POST</code>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"97f4da54-4f7a-432d-807b-80966c346651","id":"97f4da54-4f7a-432d-807b-80966c346651","name":"RealTime CTMS Referral API","type":"collection"}},"urlObject":{"path":["studies","apply"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"fd350058-4b11-4bff-b14d-4fb0189f64b7","name":"/studies/apply","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"publishable key/token"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"StudyID","value":"58","description":"Required. The ID of the study the subject is applying to.","type":"text"},{"key":"FirstName","value":"Firstname","description":"Required. Subject's first name","type":"text"},{"key":"LastName","value":"Lastname","description":"Required. Subject's last name","type":"text"},{"key":"EMail","value":"email@domain.com","description":"Required. Email address","type":"text"},{"key":"Phone","value":"5335335335","description":"Required. Primary phone number. If phone verification is enabled then there will be a verification attempt. If RealTime TEXT is enabled the subject will be opted into appointment texts.","type":"text"},{"key":"ReferrerID","value":"4","description":"Required. Referral source selected by subject.","type":"text"},{"key":"_ContactTime[]","value":"","description":"Best time of day to contact subject. Typical options are:\n - Morning (8-11AM)\n - Lunchtime (11AM-1PM)\n - Afternoon (1-5PM)\n - Evening (After 5PM)","type":"text"},{"key":"_ContactMethod","value":"","description":"Best contact method for subject, e.g. txt, phone, etc.","type":"text"},{"key":"Gender","value":"","description":"Gender as M or F","type":"text"},{"key":"DOB","value":"","description":"Date of birth formatted as YYYY-MM-DD","type":"text"},{"key":"ZipCode","value":"","description":"ZIP or postal code. May be required based on system configuration.","type":"text"},{"key":"medicalhistory[]","value":"","description":"List of medical conditions for subject.","type":"text"},{"key":"socialhistory[]","value":"","description":"List of social conditions for subject.","type":"text"},{"key":"medications[]","value":"","description":"List of medications taken by subject.","type":"text"},{"key":"questions[]","value":"","description":"Requires Question ID. Question ID and Answer value pairing for Global and Study specific questions. 0: No, 1: Yes, 2: N/A, 3: unanswered -.","type":"text"}]},"url":"/studies/apply"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Aug 2024 16:20:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx"},{"key":"Content-Security-Policy","value":"frame-ancestors 'self'"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":""},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=63072000"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 0,\n    \"PatientID\": 185,\n    \"message\": \"Referral has been added to study.\"\n}"}],"_postman_id":"e19788f6-2efd-45cf-8b28-dec97c6f96f6"},{"name":"/lists/conditions","id":"2876b3f7-971a-4d20-9a5b-6c3ae4dc94dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"publishable key/token"}],"url":"/lists/conditions","description":"<p>Returns a list of medical history conditions enabled for web referral use.</p>\n<p><strong>Response data fields:</strong></p>\n<p><code>\"Name\":</code> The name of the Medical History condition.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"97f4da54-4f7a-432d-807b-80966c346651","id":"97f4da54-4f7a-432d-807b-80966c346651","name":"RealTime CTMS Referral API","type":"collection"}},"urlObject":{"path":["lists","conditions"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"2876b3f7-971a-4d20-9a5b-6c3ae4dc94dc"},{"name":"/lists/social-conditions","id":"8acffed9-0669-4993-a8e6-3148d733ec90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"/lists/social-conditions","description":"<p>Returns a list of social history conditions enabled for web referral use.</p>\n<p><strong>Response data fields:</strong></p>\n<p><code>\"Name\":</code> The name of the Social History condition.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"97f4da54-4f7a-432d-807b-80966c346651","id":"97f4da54-4f7a-432d-807b-80966c346651","name":"RealTime CTMS Referral API","type":"collection"}},"urlObject":{"path":["lists","social-conditions"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"8acffed9-0669-4993-a8e6-3148d733ec90"},{"name":"/lists/medications","id":"911f30a5-0809-40e2-b1a0-6d0102c45078","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"/lists/medications","description":"<p>Returns a list of medications.</p>\n<p><strong>Response data fields:</strong></p>\n<p><code>\"Name\":</code> The name of the medication.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"97f4da54-4f7a-432d-807b-80966c346651","id":"97f4da54-4f7a-432d-807b-80966c346651","name":"RealTime CTMS Referral API","type":"collection"}},"urlObject":{"path":["lists","medications"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"911f30a5-0809-40e2-b1a0-6d0102c45078"},{"name":"/lists/studies","id":"f32ce16a-6e9a-47af-a697-81085d441aaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"/lists/studies","description":"<p>Returns a list of studies within the CTMS that have a web-enabled status.</p>\n<p><strong>Response data fields:</strong></p>\n<p><code>StudyID</code>: The Study's ID<br /><code>Sponsor</code>: Sponsor name<br /><code>Protocol</code>: The Protocol text<br /><code>CompleteProtocol</code>: The Protocol title<br /><code>Description</code>: The clinical description<br /><code>Title</code>: Website title, found under Website Information<br /><code>Comment</code>: Website Description, found under Website Information<br /><code>PrimaryIndication</code>: Study's indication<br /><code>Thumb</code>: Thumbnail image from Image 1, found under Website Information<br /><code>Image1</code>: Image 1, found under Website Information<br /><code>Image2</code>: Optional Image 2, found under Website Information<br /><code>Flyer</code>: Flyer image, found under Website Information<br /><code>Keyword</code>: Website Keywords, found under Website Information<br /><code>WebStory</code>: Study Landing Page Information, found under Website Information<br /><code>RecruitmentNote</code>: Recruitment Notes<br /><code>EnterpriseID</code>: Enterprise ID if attached to an Enterprise system. Defaults to 0<br /><code>UniqueID</code>: Combination of CTMS name and study ID<br /><code>Status</code>: Study's status<br /><code>EnrollmentCloseDate</code>: Enrollment End date<br /><code>PrincipalInvestigator</code>: Principal Investigator's First and Last Name</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"97f4da54-4f7a-432d-807b-80966c346651","id":"97f4da54-4f7a-432d-807b-80966c346651","name":"RealTime CTMS Referral API","type":"collection"}},"urlObject":{"path":["lists","studies"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"f32ce16a-6e9a-47af-a697-81085d441aaf"},{"name":"/lists/referral-sources","id":"e26adae7-5bbf-4e4e-bc7d-cc4c6f1e88ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"/lists/referral-sources","description":"<p>Returns a list of referral sources present in the system and configured for use during application.</p>\n<p>Append ?RemoveFilter to the request to show more results (non-campaign sources).</p>\n<p><strong>Response data fields:</strong></p>\n<p><code>ReferrerID</code>: Referral source's ID<br /><code>Referrer</code>: The Referral source's name</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"97f4da54-4f7a-432d-807b-80966c346651","id":"97f4da54-4f7a-432d-807b-80966c346651","name":"RealTime CTMS Referral API","type":"collection"}},"urlObject":{"path":["lists","referral-sources"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>(Optional) When present (any value), will remove filtering from result set.</p>\n","type":"text/plain"},"key":"RemoveFilter","value":null}],"variable":[]}},"response":[],"_postman_id":"e26adae7-5bbf-4e4e-bc7d-cc4c6f1e88ad"},{"name":"/referral-source","id":"3707e185-a65a-49ab-8e1c-1bbf057297d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"Referrer","value":"","description":"<p>Required. Name of new Referral Source, 200 character limit.</p>\n","type":"text"},{"key":"publishableApiKey","value":"","description":"<p>Required. API token/key</p>\n","type":"text"}]},"url":"/referral-source","description":"<p>Add a new Referral Source to the system. The return message provides the newly created ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"97f4da54-4f7a-432d-807b-80966c346651","id":"97f4da54-4f7a-432d-807b-80966c346651","name":"RealTime CTMS Referral API","type":"collection"}},"urlObject":{"path":["referral-source"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"3707e185-a65a-49ab-8e1c-1bbf057297d2"},{"name":"/reports/patient-statuses","id":"d27dd358-b1a1-402b-81fb-28a07d52462d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/patient-statuses","description":"<p>List of patients by each Recruitment and Enrollment Status.</p>\n<p><strong>Response data fields:</strong></p>\n<p><code>MRN</code>: The Subject's MRN and ID number<br /><code>PatientCustomID</code>: Returns <code>null</code><br /><code>EnterpriseStudyID</code>: Enterprise ID if attached to an Enterprise system. Defaults to 0<br /><code>UniqueStudyID</code>: Combination of CTMS name and Study ID. The Study ID will be the number after the \"-\"<br /><code>RecruitmentStatus</code>: Subject's recruitment status<br /><code>EnrollmentStatus</code>: Subject's enrollment status<br /><code>Referrer</code>: Referral source's name<br /><code>ReferrerID</code>: Referral source's ID<br /><code>FirstName</code>: Subject's first name<br /><code>LastName</code>: Subject's last name<br /><code>DOB</code>: Subject's date of birth in the YYYY-MM-DD format</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"97f4da54-4f7a-432d-807b-80966c346651","id":"97f4da54-4f7a-432d-807b-80966c346651","name":"RealTime CTMS Referral API","type":"collection"}},"urlObject":{"path":["reports","patient-statuses"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d27dd358-b1a1-402b-81fb-28a07d52462d"},{"name":"/reports/patient-statuses/by-id","id":"4661409e-13de-4736-ac3d-0c276b690cb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/patient-statuses/{patientID}","description":"<p>List of patients by each Recruitment and Enrollment Status</p>\n<p><strong>Response data fields:</strong></p>\n<p><code>SubjectID</code>: The Subject’s MRN number<br /><code>StudyID</code>: The numerical identifier for the Study, created and used by the CTMS<br /><code>RecruitmentStatus</code>: Subject’s recruitment status<br /><code>EnrollmentStatus</code>: Subject’s enrollment status<br /><code>Referrer</code>: Subject’s referrer<br /><code>ReferrerID</code>: Referrer’s numerical ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"97f4da54-4f7a-432d-807b-80966c346651","id":"97f4da54-4f7a-432d-807b-80966c346651","name":"RealTime CTMS Referral API","type":"collection"}},"urlObject":{"path":["reports","patient-statuses","{patientID}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"4661409e-13de-4736-ac3d-0c276b690cb6"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"bbc4ad66-6f04-4a38-ae03-4a08907b42c8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"077a3b9a-a28c-4646-918b-f1249e7f8a26","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":""}]}