NextGen Healthcare · Schema

EncounterBundled

HealthcareUnited StatesElectronic Health RecordsFHIRHL7InteroperabilitySMART on FHIRUSCDIBulk FHIRPatient Access21st Century Cures

Properties

Name Type Description
resourceType string
id string The id of the resource.
meta object
type string Type of Search
total integer Number of encounter in entry field
link array
entry array
View JSON Schema on GitHub

JSON Schema

nextgen-healthcare-encounter-bundled-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nextgen-healthcare/main/json-schema/nextgen-healthcare-encounter-bundled-schema.json",
  "title": "EncounterBundled",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nextgen-healthcare-encounter-api-openapi.yml#/components/schemas/EncounterBundled",
  "type": "object",
  "properties": {
    "resourceType": {
      "type": "string",
      "minLength": 1
    },
    "id": {
      "type": "string",
      "description": "The id of the resource."
    },
    "meta": {
      "type": "object",
      "properties": {
        "lastUpdated": {
          "type": "string",
          "description": "Date in format - YYYY-MM-DDThh:mm:ss+zz"
        }
      }
    },
    "type": {
      "type": "string",
      "minLength": 1,
      "description": "Type of Search"
    },
    "total": {
      "type": "integer",
      "description": "Number of encounter in entry field"
    },
    "link": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "relation": {
            "type": "string",
            "minLength": 1,
            "description": "relation of the resource with link provided in url"
          },
          "url": {
            "type": "string",
            "minLength": 1,
            "description": "FHIR URI of the request"
          }
        }
      },
      "required": [
        "relation",
        "url"
      ]
    },
    "entry": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fullUrl": {
            "type": "string",
            "minLength": 1,
            "description": "FHIR URI of respective encounter resource in entry"
          },
          "resource": {
            "$ref": "#/$defs/Encounter"
          }
        }
      }
    }
  },
  "required": [
    "id",
    "resourceType",
    "meta",
    "type"
  ],
  "$defs": {
    "Encounter": {
      "type": "object",
      "properties": {
        "resourceType": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "description": "The id of the resource."
        },
        "meta": {
          "type": "object",
          "description": "Metadata about the resource",
          "properties": {
            "profile": {
              "type": "array",
              "description": "Profiles this resource claims to conform to",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "profile"
          ]
        },
        "identifier": {
          "type": "array",
          "description": "Identifier(s) by which this encounter is known",
          "items": {
            "type": "object",
            "properties": {
              "use": {
                "type": "string",
                "description": "usual | official | temp | secondary | old"
              },
              "system": {
                "type": "string",
                "description": "the namespace for the identifier value"
              },
              "value": {
                "type": "string",
                "description": "The value that is unique"
              }
            },
            "required": [
              "use"
            ]
          }
        },
        "status": {
          "type": "string",
          "description": "describe the encounter status."
        },
        "class": {
          "type": "object",
          "description": "Classification of patient encounte",
          "properties": {
            "system": {
              "type": "string",
              "description": "Identity of the terminology system"
            },
            "code": {
              "type": "string",
              "description": "Symbol in syntax defined by the system"
            },
            "display": {
              "type": "string",
              "description": "Representation defined by the system"
            }
          }
        },
        "type": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "coding": {
                "type": "array",
                "description": "Specific type of encounter",
                "items": {
                  "type": "object",
                  "properties": {
                    "system": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "display": {
                      "type": "string"
                    }
                  }
                }
              },
              "text": {
                "type": "string"
              }
            }
          }
        },
        "subject": {
          "type": "object",
          "properties": {
            "reference": {
              "type": "string"
            }
          }
        },
        "participant": {
          "type": "array",
          "description": "List of participants involved in the encounter",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "coding": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "system": {
                            "type": "string"
                          },
                          "code": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "text": {
                      "type": "string"
                    }
                  }
                }
              },
              "period": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string"
                  }
                }
              },
              "individual": {
                "type": "object",
                "properties": {
                  "reference": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "period": {
          "type": "object",
          "properties": {
            "start": {
              "type": "string"
            },
            "end": {
              "type": "string"
            }
          }
        },
        "reasoncode": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string"
              }
            }
          }
        },
        "hospitalization": {
          "type": "object",
          "properties": {
            "dischargeDisposition": {
              "type": "object",
              "properties": {
                "coding": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "system": {
                        "type": "string"
                      },
                      "code": {
                        "type": "string"
                      },
                      "display": {
                        "type": "string"
                      }
                    }
                  }
                },
                "text": {
                  "type": "string"
                }
              }
            }
          }
        },
        "location": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "location": {
                "type": "object",
                "properties": {
                  "reference": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "required": [
        "status",
        "class",
        "location",
        "subject",
        "resourceType",
        "id",
        "meta"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/nextgen-healthcare-encounter-bundled"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.