GraphQL API

GraphQL Playground

Interactive GraphQL API explorer with real-time query testing

Type-Safe Queries

Full TypeScript support with auto-completion

FHIR Integration

Query FHIR resources via GraphQL

Live Testing

Test queries in real-time

Query Editor

Write and execute GraphQL queries

Response

Query results appear here

Execute a query to see results

GraphQL Schema

Complete type definitions and available operations

type Query {
  apps(
    limit: Int
    category: String
    verified: Boolean
  ): [App!]!
  
  app(id: ID!): App
  
  patients(limit: Int): [Patient!]!
  
  complianceScans(appId: ID!): [ComplianceScan!]!
}

type Mutation {
  publishApp(input: PublishAppInput!): PublishAppResult!
  
  purchaseTokens(input: PurchaseTokensInput!): TokenTransaction!
}

type App {
  id: ID!
  name: String!
  description: String!
  publisher: Publisher!
  category: String!
  rating: Float
  verified: Boolean!
  pricing: Pricing!
  fhirResources: [String!]!
  totalCalls: Int
  createdAt: DateTime!
}

type Publisher {
  id: ID!
  name: String!
  organization: String
  verified: Boolean!
}

type Pricing {
  type: PricingType!
  monthlyPrice: Float
  pricePerCall: Float
}

enum PricingType {
  FREE
  SUBSCRIPTION
  USAGE
}

type Patient {
  id: ID!
  name: Name!
  gender: String
  birthDate: String
  observations(code: String): [Observation!]!
}

type Name {
  family: String!
  given: [String!]!
}

type Observation {
  id: ID!
  status: String!
  code: CodeableConcept!
  valueQuantity: Quantity
}

type CodeableConcept {
  coding: [Coding!]!
}

type Coding {
  system: String!
  code: String!
  display: String!
}

type Quantity {
  value: Float!
  unit: String!
}