Rdvms Queries

These queries allow you to interact with rdvms data.

contacts

Returns: [RdvmContact!]!

Lookup an rdvms contacts

Arguments

ArgumentTypeDescription
rdvmIdIDID of the rdvm
Example Query
query($rdvmId: ID) {
contacts(rdvmId: $rdvmId) {
id
# Add other fields you need
}
}
Variables
{
"rdvmId": "1"
}

getRdvmRecentPatients

Arguments

ArgumentTypeDescription
limitIntMaximum number of results to return
rdvmIdrequiredID!ID of the rdvm
Example Query
query(
$limit: Int,
$rdvmId: ID!
) {
getRdvmRecentPatients(
limit: $limit,
rdvmId: $rdvmId
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"rdvmId": "1"
}

rdvm

Returns: Rdvm

Arguments

ArgumentTypeDescription
idIDUnique identifier
Example Query
query($id: ID) {
rdvm(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

rdvmContact

Returns: RdvmContact

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
rdvmContact(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

rdvmDocument

Returns: RdvmDocument

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
rdvmDocument(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

rdvms

Returns: [Rdvm!]!

Arguments

ArgumentTypeDescription
limitIntMaximum number of results to return
offsetIntNumber of results to skip for pagination
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$limit: Int,
$offset: Int,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
rdvms(
limit: $limit,
offset: $offset,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"offset": 1,
"updatedAtEnd": {},
"updatedAtStart": {}
}

rdvmsCount

Returns: Int

Arguments

ArgumentTypeDescription
includeLocationsUnassignedBooleanInclude locations unassigned
locationIds[ID]List of location IDs
primaryLocationIdIDID of the primarylocation
termStringTerm
Example Query
query(
$includeLocationsUnassigned: Boolean,
$locationIds: [ID],
$primaryLocationId: ID,
$term: String
) {
rdvmsCount(
includeLocationsUnassigned: $includeLocationsUnassigned,
locationIds: $locationIds,
primaryLocationId: $primaryLocationId,
term: $term
) {
id
# Add other fields you need
}
}
Variables
{
"includeLocationsUnassigned": true,
"locationIds": "1",
"primaryLocationId": "1",
"term": "example"
}

searchRdvms

Returns: [Rdvm!]!

Arguments

ArgumentTypeDescription
includeLocationsUnassignedBooleanInclude locations unassigned
isActiveBooleanIs active
limitIntMaximum number of results to return
locationIds[ID]List of location IDs
offsetIntNumber of results to skip for pagination
primaryLocationIdIDID of the primarylocation
termStringTerm
Example Query
query(
$includeLocationsUnassigned: Boolean,
$isActive: Boolean,
$limit: Int,
$locationIds: [ID],
$offset: Int,
$primaryLocationId: ID,
$term: String
) {
searchRdvms(
includeLocationsUnassigned: $includeLocationsUnassigned,
isActive: $isActive,
limit: $limit,
locationIds: $locationIds,
offset: $offset,
primaryLocationId: $primaryLocationId,
term: $term
) {
id
# Add other fields you need
}
}
Variables
{
"includeLocationsUnassigned": true,
"isActive": true,
"limit": 1,
"locationIds": "1",
"offset": 1,
"primaryLocationId": "1",
"term": "example"
}

visits

Returns: [RdvmVisit!]!

Arguments

ArgumentTypeDescription
limitIntLimit the number of results, defaults to no limit
offsetIntPagination offset, defaults to 0
rdvmIdIDID of the rdvm
Example Query
query(
$limit: Int,
$offset: Int,
$rdvmId: ID
) {
visits(
limit: $limit,
offset: $offset,
rdvmId: $rdvmId
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"offset": 1,
"rdvmId": "1"
}

visitsCount

Returns: Int

Counts total visits for this rDVM

Arguments

ArgumentTypeDescription
rdvmIdIDID of the rdvm
Example Query
query($rdvmId: ID) {
visitsCount(rdvmId: $rdvmId) {
id
# Add other fields you need
}
}
Variables
{
"rdvmId": "1"
}