# Extensions using FHIRSchema When Aidbox is configured with [FHIRSchema mode](../../../modules/profiling-and-validation/fhir-schema-validator/), it is possible to define Extension in [FHIRSchema format](https://fhir-schema.github.io/fhir-schema/). See also [Extensions using StructureDefinition](extensions-using-structuredefinition.md). ## Example To create the extension, use `POST /fhir/FHIRSchema` endpoint. ``` POST /fhir/FHIRSchema url: http://my-extension/insurance-plan-reference id: insurance-plan-reference base: Extension name: insurance-plan-reference kind: complex-type type: Extension version: 0.0.1 resourceType: FHIRSchema elements: url: fixed: http://my-extension/insurance-plan-reference value: choices: - valueReference valueReference: type: Reference refers: - InsurancePlan choiceOf: value derivation: constraint ``` When the extension is created, you can inspect it in "FHIR Packages" Aidbox UI page.
FHIR Packages page showing insurance-plan-reference extension
Usage of the extension:
PUT /fhir/Coverage/my-coverage

extension:
- url: http://my-extension/insurance-plan-reference
  valueReference: 
    reference: InsurancePlan/ip1
payor: 
- reference: Patient/pt1
beneficiary:
  reference: Patient/pt1
status: active