You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*CandidatesApi* | [**createCandidate**](docs/Api/CandidatesApi.md#createcandidate) | **POST** /candidates | Create a new candidate
79
79
*CandidatesApi* | [**getCandidate**](docs/Api/CandidatesApi.md#getcandidate) | **GET** /candidates/{candid} | Get candidate details
80
80
*CandidatesApi* | [**getCandidates**](docs/Api/CandidatesApi.md#getcandidates) | **GET** /candidates | Get list of candidates
81
-
*InstrumentManagerApi* | [**createInstrument**](docs/Api/InstrumentManagerApi.md#createinstrument) | **POST** /instrument_manager | Create instrument from LINST or REDCap data dictionary
82
-
*InstrumentManagerApi* | [**getInstrumentDataHeaders**](docs/Api/InstrumentManagerApi.md#getinstrumentdataheaders) | **GET** /instrument_manager/instrument_data | Get expected CSV headers for instrument data
83
-
*InstrumentManagerApi* | [**uploadInstrumentData**](docs/Api/InstrumentManagerApi.md#uploadinstrumentdata) | **POST** /instrument_manager/instrument_data | Bulk insert instrument data from CSV
81
+
*InstrumentManagerApi* | [**getInstrumentDataHeaders**](docs/Api/InstrumentManagerApi.md#getinstrumentdataheaders) | **GET** /instrument_manager/instrument_data | Get expected CSV headers for instrument data ingestion
82
+
*InstrumentManagerApi* | [**installInstrument**](docs/Api/InstrumentManagerApi.md#installinstrument) | **POST** /instrument_manager | Install instrument from LINST file or REDCap data dictionary
83
+
*InstrumentManagerApi* | [**uploadInstrumentData**](docs/Api/InstrumentManagerApi.md#uploadinstrumentdata) | **POST** /instrument_manager/instrument_data | Bulk insert instrument data from CSV file
84
84
*InstrumentsApi* | [**getInstrumentData**](docs/Api/InstrumentsApi.md#getinstrumentdata) | **GET** /candidates/{candid}/{visit}/instruments/{instrument} | Get instrument data for a candidate/visit
85
85
*InstrumentsApi* | [**getVisitInstruments**](docs/Api/InstrumentsApi.md#getvisitinstruments) | **GET** /candidates/{candid}/{visit}/instruments | Get instruments for a visit
86
-
*InstrumentsApi* | [**patchInstrumentData**](docs/Api/InstrumentsApi.md#patchinstrumentdata) | **PATCH** /candidates/{candid}/{visit}/instruments/{instrument} | Update instrument data
87
-
*InstrumentsApi* | [**putInstrumentData**](docs/Api/InstrumentsApi.md#putinstrumentdata) | **PUT** /candidates/{candid}/{visit}/instruments/{instrument} | Replace instrument data
*ProjectsApi* | [**getProject**](docs/Api/ProjectsApi.md#getproject) | **GET** /projects/{project} | Get project details including instruments
89
89
*ProjectsApi* | [**getProjectInstruments**](docs/Api/ProjectsApi.md#getprojectinstruments) | **GET** /projects/{project}/instruments | Get instruments for a project
90
90
*ProjectsApi* | [**getProjects**](docs/Api/ProjectsApi.md#getprojects) | **GET** /projects | Get list of projects
91
91
*SitesApi* | [**getSites**](docs/Api/SitesApi.md#getsites) | **GET** /sites | Get list of sites
92
-
*VisitsApi* | [**createVisit**](docs/Api/VisitsApi.md#createvisit) | **PUT** /candidates/{candid}/{visit} | Create a new visit
92
+
*VisitsApi* | [**createVisit**](docs/Api/VisitsApi.md#createvisit) | **PUT** /candidates/{candid}/{visit} | Create a new visit/timepoint
93
93
*VisitsApi* | [**getVisit**](docs/Api/VisitsApi.md#getvisit) | **GET** /candidates/{candid}/{visit} | Get visit details
Copy file name to clipboardExpand all lines: docs/Api/InstrumentManagerApi.md
+39-37Lines changed: 39 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,25 @@
1
1
# LORISClient\InstrumentManagerApi
2
2
3
-
Bulk CSV upload (used by ClinicalPipeline)
3
+
Instrument installation and bulk data operations: - Install instruments from LINST/REDCap files - Bulk upload instrument data via CSV - Get expected CSV headers
4
4
5
5
All URIs are relative to https://demo.loris.ca/api/v0.0.4-dev, except if the operation defines another base path.
6
6
7
7
| Method | HTTP request | Description |
8
8
| ------------- | ------------- | ------------- |
9
-
|[**createInstrument()**](InstrumentManagerApi.md#createInstrument)|**POST** /instrument_manager |Create instrument from LINST or REDCap data dictionary|
10
-
|[**getInstrumentDataHeaders()**](InstrumentManagerApi.md#getInstrumentDataHeaders)|**GET** /instrument_manager/instrument_data|Get expected CSV headers for instrument data |
11
-
|[**uploadInstrumentData()**](InstrumentManagerApi.md#uploadInstrumentData)|**POST** /instrument_manager/instrument_data | Bulk insert instrument data from CSV |
9
+
|[**getInstrumentDataHeaders()**](InstrumentManagerApi.md#getInstrumentDataHeaders)|**GET** /instrument_manager/instrument_data|Get expected CSV headers for instrument data ingestion|
10
+
|[**installInstrument()**](InstrumentManagerApi.md#installInstrument)|**POST** /instrument_manager |Install instrument from LINST file or REDCap data dictionary|
11
+
|[**uploadInstrumentData()**](InstrumentManagerApi.md#uploadInstrumentData)|**POST** /instrument_manager/instrument_data | Bulk insert instrument data from CSV file |
Create instrument from LINST or REDCap data dictionary
20
+
Get expected CSV headers for instrument data ingestion
21
+
22
+
Generates and returns a CSV file with the expected headers for the specified instrument(s). Either \"instrument\" OR \"instruments\" must be set, not both.
21
23
22
24
### Example
23
25
@@ -36,48 +38,52 @@ $apiInstance = new LORISClient\Api\InstrumentManagerApi(
$action = 'action_example'; // string | - CREATE_SESSIONS: For when sessions may need to be created - VALIDATE_SESSIONS: For when all sessions must already exist
42
+
$instrument = 'instrument_example'; // string | Single instrument name (mutually exclusive with instruments)
Upload CSV file to insert data for one or more instruments. CREATE_SESSIONS mode will create candidates/sessions if they don't exist. VALIDATE_SESSIONS mode requires all sessions to already exist.
146
+
Uploads a CSV file to insert data for one or more instruments. Actions: - CREATE_SESSIONS: Creates candidates and sessions if they don't exist - VALIDATE_SESSIONS: Requires all candidates/sessions to already exist CSV must have columns: PSCID, Visit_label, plus instrument fields.
145
147
146
148
### Example
147
149
@@ -160,10 +162,10 @@ $apiInstance = new LORISClient\Api\InstrumentManagerApi(
|**dataFile**|**\SplFileObject****\SplFileObject**| CSV with instrument data (headers must match) ||
182
+
|**action**|**string**|- CREATE_SESSIONS: Creates candidates/sessions if missing - VALIDATE_SESSIONS: Fails if any candidate/session doesn't exist||
183
+
|**dataFile**|**\SplFileObject****\SplFileObject**| CSV file with instrument data (must include PSCID, Visit_label columns) ||
182
184
|**instrument**|**string**| Single instrument name |[optional]|
Copy file name to clipboardExpand all lines: docs/Api/InstrumentsApi.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
# LORISClient\InstrumentsApi
2
2
3
-
Individual instrument data operations
3
+
Individual instrument data operations (per candidate/visit)
4
4
5
5
All URIs are relative to https://demo.loris.ca/api/v0.0.4-dev, except if the operation defines another base path.
6
6
7
7
| Method | HTTP request | Description |
8
8
| ------------- | ------------- | ------------- |
9
9
|[**getInstrumentData()**](InstrumentsApi.md#getInstrumentData)|**GET** /candidates/{candid}/{visit}/instruments/{instrument} | Get instrument data for a candidate/visit |
10
10
|[**getVisitInstruments()**](InstrumentsApi.md#getVisitInstruments)|**GET** /candidates/{candid}/{visit}/instruments | Get instruments for a visit |
11
-
|[**patchInstrumentData()**](InstrumentsApi.md#patchInstrumentData)|**PATCH** /candidates/{candid}/{visit}/instruments/{instrument} | Update instrument data |
12
-
|[**putInstrumentData()**](InstrumentsApi.md#putInstrumentData)|**PUT** /candidates/{candid}/{visit}/instruments/{instrument} | Replace instrument data |
11
+
|[**patchInstrumentData()**](InstrumentsApi.md#patchInstrumentData)|**PATCH** /candidates/{candid}/{visit}/instruments/{instrument} | Update instrument data (preserves unspecified fields) |
12
+
|[**putInstrumentData()**](InstrumentsApi.md#putInstrumentData)|**PUT** /candidates/{candid}/{visit}/instruments/{instrument} | Replace instrument data (nulls unspecified fields) |
0 commit comments