Surveys

Get all surveys of organization

get

Retrieve all surveys for the organization

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Query parameters
idstring[]Optional

Array of IDs

Default: []Example: ["id1","id2"]
surveyIdstring[]Optional

Array of survey IDs

Default: []Example: ["survey1","survey2"]
isConsentbooleanOptional

surveys consent status

Example: true
namestring[]Optional

Array of names

Default: []Example: ["name1","name2"]
orderBystringOptional

Order by field

Example: name
organizationIdnumberOptional
orderDirectionstringOptional

Order direction

Default: ascExample: asc
Responses
get
/api/surveys
200Success

Create a survey

post

Create a new survey

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Body
idstringOptional

The unique identifier of the survey

Example: 12345
isConsentbooleanOptional

Indicates if its consent

Example: true
resourceTypestringOptional
userTypestring · enumOptional

Who can fill in the survey

Example: CONSUMERPossible values:
organizationIdnumberOptional

The ID of the organization

Example: 1
urlstringOptional

The URL of the survey

Example: http://example.com
versionstringOptional

The version of the survey

Example: 1.0
namestringOptional

The name of the survey

Example: Customer Satisfaction Survey
titlestringOptional
publisherstringOptional

The publisher of the survey

Example: Survey Publisher
descriptionstringOptional

The description of the survey

Example: This survey is about customer satisfaction.
purposestringOptional

The purpose of the survey

Example: To gather customer feedback
copyRightstringOptional

The copyright information of the survey

Example: © 2023 Survey Publisher
implicitRulesstringOptional

The implicit rules of the survey

Example: Some rules
languagestringOptional

The language of the survey

Example: en
statusstring · enumRequired

The status of the survey

Default: draftExample: draftPossible values:
experimentalbooleanOptional

Indicates if the survey is experimental

Example: true
approvalDateone ofOptional

The approval date of the survey

Example: 2023-01-01
string · dateOptional
or
string · date-timeOptional
lastReviewDateone ofOptional

The last review date of the survey

Example: 2023-01-01
string · dateOptional
or
string · date-timeOptional
dateone ofOptional

The date of the survey

Example: 2023-01-01
string · dateOptional
or
string · date-timeOptional
derivedFromstring[]Optional

The derived from information

Default: []Example: ["source1","source2"]
subjectTypestring[]Optional

The subject type of the survey

Default: []Example: ["Patient","Practitioner"]
effectivePeriodanyOptional

The effective period of the survey

Default: {}Example: {"start":"2023-01-01","end":"2023-12-31"}
textanyOptional

The text of the survey

Example: Some text
metaanyOptional

The meta information of the survey

Default: {}Example: {"versionId":"1","lastUpdated":"2023-01-01"}
attributesobjectOptional

The attributes of the survey

Default: {}Example: {"attribute1":"value1"}
Responses
post
/api/surveys
200Success

Get a survey

get

Retrieve a specific survey by ID

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
surveyIdstringRequiredPattern: [^\/#\?]+?
Responses
get
/api/surveys/{surveyId}
200Success

Update a survey

put

Update an existing survey

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
surveyIdstringRequiredPattern: [^\/#\?]+?
Body
idstringOptional

The unique identifier of the survey

Example: 12345
isConsentbooleanOptional

Indicates if its consent

Example: true
resourceTypestringOptional
userTypestring · enumOptional

Who can fill in the survey

Example: CONSUMERPossible values:
organizationIdnumberOptional

The ID of the organization

Example: 1
urlstringOptional

The URL of the survey

Example: http://example.com
versionstringOptional

The version of the survey

Example: 1.0
namestringOptional

The name of the survey

Example: Customer Satisfaction Survey
titlestringOptional
publisherstringOptional

The publisher of the survey

Example: Survey Publisher
descriptionstringOptional

The description of the survey

Example: This survey is about customer satisfaction.
purposestringOptional

The purpose of the survey

Example: To gather customer feedback
copyRightstringOptional

The copyright information of the survey

Example: © 2023 Survey Publisher
implicitRulesstringOptional

The implicit rules of the survey

Example: Some rules
languagestringOptional

The language of the survey

Example: en
statusstring · enumRequired

The status of the survey

Default: draftExample: draftPossible values:
experimentalbooleanOptional

Indicates if the survey is experimental

Example: true
approvalDateone ofOptional

The approval date of the survey

Example: 2023-01-01
string · dateOptional
or
string · date-timeOptional
lastReviewDateone ofOptional

The last review date of the survey

Example: 2023-01-01
string · dateOptional
or
string · date-timeOptional
dateone ofOptional

The date of the survey

Example: 2023-01-01
string · dateOptional
or
string · date-timeOptional
derivedFromstring[]Optional

The derived from information

Default: []Example: ["source1","source2"]
subjectTypestring[]Optional

The subject type of the survey

Default: []Example: ["Patient","Practitioner"]
effectivePeriodanyOptional

The effective period of the survey

Default: {}Example: {"start":"2023-01-01","end":"2023-12-31"}
textanyOptional

The text of the survey

Example: Some text
metaanyOptional

The meta information of the survey

Default: {}Example: {"versionId":"1","lastUpdated":"2023-01-01"}
attributesobjectOptional

The attributes of the survey

Default: {}Example: {"attribute1":"value1"}
Responses
put
/api/surveys/{surveyId}
200Success

Delete a survey

delete

Delete an existing survey

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
surveyIdstringRequiredPattern: [^\/#\?]+?
Responses
delete
/api/surveys/{surveyId}
200Success