Jefferson Health · API Governance Rules
Jefferson Health API Rules
Spectral linting rules defining API design standards and conventions for Jefferson Health.
8 Rules
error 5
warn 3
Rule Categories
jefferson
Rules
error
jefferson-fhir-r4-base-url
Server URL must be the canonical Jefferson Health FHIR R4 endpoint.
$.servers[*].url
error
jefferson-fhir-r4-fhir-version-tag
API version must report FHIR R4 (4.0.1).
$.info.version
warn
jefferson-fhir-r4-fhir-media-type
All FHIR responses must use the application/fhir+json media type.
$.paths[*][*].responses[*].content
warn
jefferson-fhir-r4-summary-title-case
Operation summaries must use Title Case.
$.paths[*][*].summary
error
jefferson-fhir-r4-smart-on-fhir-security
API must declare SMART on FHIR / OAuth 2.0 security.
$.components.securitySchemes
error
jefferson-fhir-r4-smart-authorization-url
Authorization URL must be Jefferson's OAuth 2.0 authorize endpoint.
$.components.securitySchemes.smartOnFhir.flows.authorizationCode.authorizationUrl
error
jefferson-fhir-r4-smart-token-url
Token URL must be Jefferson's OAuth 2.0 token endpoint.
$.components.securitySchemes.smartOnFhir.flows.authorizationCode.tokenUrl
warn
jefferson-fhir-r4-uscdi-resources
API should document core USCDI FHIR resources (Patient, Observation, Condition, Encounter, MedicationRequest, AllergyIntolerance, DocumentReference).
$.paths