@welshare/sdk
Preparing search index...
QuestionnaireResponseSchema
validateSubmission
Function validateSubmission
validateSubmission
(
submission
:
{
_id
:
string
;
author
:
{
display
?:
string
;
id
?:
string
;
identifier
?:
{
system
?:
string
;
value
?:
string
}
;
reference
?:
string
;
type
?:
string
;
}
;
authored
:
string
;
id
?:
string
;
item
:
{
answer
?:
any
[]
;
definition
?:
string
;
id
?:
string
;
item
?:
any
[]
;
linkId
:
string
;
text
?:
string
;
}
[]
;
meta
?:
{
profile
?:
string
[]
;
tag
?:
{
code
?:
string
;
system
?:
string
}
[]
}
;
questionnaire
:
string
;
resourceType
:
"QuestionnaireResponse"
;
source
:
{
display
?:
string
;
id
?:
string
;
identifier
?:
{
system
?:
string
;
value
?:
string
}
;
reference
?:
string
;
type
?:
string
;
}
;
status
:
|
"entered-in-error"
|
"in-progress"
|
"completed"
|
"amended"
|
"stopped"
;
subject
:
{
display
?:
string
;
id
?:
string
;
identifier
?:
{
system
?:
string
;
value
?:
string
}
;
reference
?:
string
;
type
?:
string
;
}
;
}
,
)
:
{
_id
:
string
;
author
:
{
display
?:
string
;
id
?:
string
;
identifier
?:
{
system
?:
string
;
value
?:
string
}
;
reference
?:
string
;
type
?:
string
;
}
;
authored
:
string
;
id
?:
string
;
item
:
{
answer
?:
any
[]
;
definition
?:
string
;
id
?:
string
;
item
?:
any
[]
;
linkId
:
string
;
text
?:
string
;
}
[]
;
meta
?:
{
profile
?:
string
[]
;
tag
?:
{
code
?:
string
;
system
?:
string
}
[]
}
;
questionnaire
:
string
;
resourceType
:
"QuestionnaireResponse"
;
source
:
{
display
?:
string
;
id
?:
string
;
identifier
?:
{
system
?:
string
;
value
?:
string
}
;
reference
?:
string
;
type
?:
string
;
}
;
status
:
|
"entered-in-error"
|
"in-progress"
|
"completed"
|
"amended"
|
"stopped"
;
subject
:
{
display
?:
string
;
id
?:
string
;
identifier
?:
{
system
?:
string
;
value
?:
string
}
;
reference
?:
string
;
type
?:
string
;
}
;
}
Parameters
submission
:
{
_id
:
string
;
author
:
{
display
?:
string
;
id
?:
string
;
identifier
?:
{
system
?:
string
;
value
?:
string
}
;
reference
?:
string
;
type
?:
string
;
}
;
authored
:
string
;
id
?:
string
;
item
:
{
answer
?:
any
[]
;
definition
?:
string
;
id
?:
string
;
item
?:
any
[]
;
linkId
:
string
;
text
?:
string
;
}
[]
;
meta
?:
{
profile
?:
string
[]
;
tag
?:
{
code
?:
string
;
system
?:
string
}
[]
}
;
questionnaire
:
string
;
resourceType
:
"QuestionnaireResponse"
;
source
:
{
display
?:
string
;
id
?:
string
;
identifier
?:
{
system
?:
string
;
value
?:
string
}
;
reference
?:
string
;
type
?:
string
;
}
;
status
:
|
"entered-in-error"
|
"in-progress"
|
"completed"
|
"amended"
|
"stopped"
;
subject
:
{
display
?:
string
;
id
?:
string
;
identifier
?:
{
system
?:
string
;
value
?:
string
}
;
reference
?:
string
;
type
?:
string
;
}
;
}
Returns
{
_id
:
string
;
author
:
{
display
?:
string
;
id
?:
string
;
identifier
?:
{
system
?:
string
;
value
?:
string
}
;
reference
?:
string
;
type
?:
string
;
}
;
authored
:
string
;
id
?:
string
;
item
:
{
answer
?:
any
[]
;
definition
?:
string
;
id
?:
string
;
item
?:
any
[]
;
linkId
:
string
;
text
?:
string
;
}
[]
;
meta
?:
{
profile
?:
string
[]
;
tag
?:
{
code
?:
string
;
system
?:
string
}
[]
}
;
questionnaire
:
string
;
resourceType
:
"QuestionnaireResponse"
;
source
:
{
display
?:
string
;
id
?:
string
;
identifier
?:
{
system
?:
string
;
value
?:
string
}
;
reference
?:
string
;
type
?:
string
;
}
;
status
:
|
"entered-in-error"
|
"in-progress"
|
"completed"
|
"amended"
|
"stopped"
;
subject
:
{
display
?:
string
;
id
?:
string
;
identifier
?:
{
system
?:
string
;
value
?:
string
}
;
reference
?:
string
;
type
?:
string
;
}
;
}
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
@welshare/sdk
Loading...