@welshare/sdk
Preparing search index...
PatientSchema
mapToNillionSchema
Function mapToNillionSchema
mapToNillionSchema
(
formData
:
Omit
<
{
birthDate
?:
string
;
extensions
?:
Record
<
string
,
any
>
;
gender
:
"other"
|
"male"
|
"female"
|
"unknown"
;
id
:
string
;
meta
?:
{
lastUpdated
?:
string
;
profile
?:
string
[]
;
versionId
?:
string
}
;
name
?:
{
family
?:
string
;
given
?:
string
[]
;
prefix
?:
string
[]
;
suffix
?:
string
[]
;
}
[]
;
resourceType
:
"Patient"
;
telecom
?:
{
rank
?:
number
;
system
?:
"url"
|
"phone"
|
"fax"
|
"email"
|
"sms"
|
"other"
;
use
?:
"home"
|
"work"
|
"temp"
|
"old"
|
"mobile"
;
value
?:
string
;
}
[]
;
}
,
"_id"
|
"resourceType"
|
"id"
,
>
&
{
controllerDID
:
string
}
,
)
:
{
_id
:
string
;
birthDate
?:
string
;
controllerDID
:
string
;
extensions
?:
Record
<
string
,
any
>
;
gender
:
"other"
|
"male"
|
"female"
|
"unknown"
;
id
:
string
;
meta
?:
{
lastUpdated
?:
string
;
profile
?:
string
[]
;
versionId
?:
string
}
;
name
?:
{
family
?:
{
"%allot"
:
string
}
;
given
?:
{
"%allot"
:
string
}
[]
;
prefix
?:
string
[]
;
suffix
?:
string
[]
;
}
[]
;
resourceType
:
"Patient"
;
telecom
?:
{
rank
?:
number
;
system
?:
"url"
|
"phone"
|
"fax"
|
"email"
|
"sms"
|
"other"
;
use
?:
"home"
|
"work"
|
"temp"
|
"old"
|
"mobile"
;
value
?:
{
"%allot"
:
string
}
;
}
[]
;
}
[]
Parameters
formData
:
Omit
<
{
birthDate
?:
string
;
extensions
?:
Record
<
string
,
any
>
;
gender
:
"other"
|
"male"
|
"female"
|
"unknown"
;
id
:
string
;
meta
?:
{
lastUpdated
?:
string
;
profile
?:
string
[]
;
versionId
?:
string
}
;
name
?:
{
family
?:
string
;
given
?:
string
[]
;
prefix
?:
string
[]
;
suffix
?:
string
[]
;
}
[]
;
resourceType
:
"Patient"
;
telecom
?:
{
rank
?:
number
;
system
?:
"url"
|
"phone"
|
"fax"
|
"email"
|
"sms"
|
"other"
;
use
?:
"home"
|
"work"
|
"temp"
|
"old"
|
"mobile"
;
value
?:
string
;
}
[]
;
}
,
"_id"
|
"resourceType"
|
"id"
,
>
&
{
controllerDID
:
string
}
Returns
{
_id
:
string
;
birthDate
?:
string
;
controllerDID
:
string
;
extensions
?:
Record
<
string
,
any
>
;
gender
:
"other"
|
"male"
|
"female"
|
"unknown"
;
id
:
string
;
meta
?:
{
lastUpdated
?:
string
;
profile
?:
string
[]
;
versionId
?:
string
}
;
name
?:
{
family
?:
{
"%allot"
:
string
}
;
given
?:
{
"%allot"
:
string
}
[]
;
prefix
?:
string
[]
;
suffix
?:
string
[]
;
}
[]
;
resourceType
:
"Patient"
;
telecom
?:
{
rank
?:
number
;
system
?:
"url"
|
"phone"
|
"fax"
|
"email"
|
"sms"
|
"other"
;
use
?:
"home"
|
"work"
|
"temp"
|
"old"
|
"mobile"
;
value
?:
{
"%allot"
:
string
}
;
}
[]
;
}
[]
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
@welshare/sdk
Loading...