{
 "openapi": "3.1.0",
 "info": {
  "title": "notavik open data",
  "version": "1.0.0",
  "summary": "Clinical scores, recording-consent laws, visit-time codes, where AI scribes process audio, and the facts of the notavik app.",
  "description": "Static JSON, keyless, CORS-open, no rate limit, rebuilt with the site. Every payload carries its licence (CC BY 4.0, credit notavik with a link), its scope limits, the date its sources were read and a `not_published` block naming what is deliberately absent.\n\nNothing here is medical, legal or billing advice: scores, statutes and codes are quoted from the primary source named on each row.",
  "license": {
   "name": "Creative Commons Attribution 4.0 International",
   "identifier": "CC-BY-4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  },
  "contact": {
   "name": "notavik",
   "url": "https://notavik.com/api/",
   "email": "support@notavik.com"
  }
 },
 "servers": [
  {
   "url": "https://notavik.com"
  }
 ],
 "paths": {
  "/api/v1/index.json": {
   "get": {
    "operationId": "get_index",
    "summary": "Entry point",
    "description": "Every dataset with its row count, page and source dates.",
    "responses": {
     "200": {
      "description": "The dataset with its licence, scope limits and sources in the same document.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/status.json": {
   "get": {
    "operationId": "get_status",
    "summary": "Build status",
    "description": "Build date and source-read date of each dataset.",
    "responses": {
     "200": {
      "description": "The dataset with its licence, scope limits and sources in the same document.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/app.json": {
   "get": {
    "operationId": "get_app",
    "summary": "The app",
    "description": "Platforms, languages, note formats, the privacy promise, network destinations, free tier, plans and prices, accuracy test.",
    "responses": {
     "200": {
      "description": "The dataset with its licence, scope limits and sources in the same document.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/scores.json": {
   "get": {
    "operationId": "get_scores",
    "summary": "Clinical scores",
    "description": "Items, scoring, bands, cut points and DOIs of the 8 scores on /calculators/.",
    "responses": {
     "200": {
      "description": "The dataset with its licence, scope limits and sources in the same document.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/consent-laws.json": {
   "get": {
    "operationId": "get_consent_laws",
    "summary": "Recording-consent laws",
    "description": "51 US jurisdictions, in person and by phone, plus US laws on AI in clinical care and the German rules, each row sourced and dated.",
    "responses": {
     "200": {
      "description": "The dataset with its licence, scope limits and sources in the same document.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/ai-scribes.json": {
   "get": {
    "operationId": "get_ai_scribes",
    "summary": "AI scribes: where the audio goes",
    "description": "Where each scribe processes visit audio and its cheapest published plan, quoted from the vendor with the date read.",
    "responses": {
     "200": {
      "description": "The dataset with its licence, scope limits and sources in the same document.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/templates.json": {
   "get": {
    "operationId": "get_templates",
    "summary": "Note templates",
    "description": "SOAP note, DAP note, BIRP note, Progress note, History and physical (H&P), Arztbrief, SOAP‑Schema, Anamnesebogen, Epikrise, Befundbericht: sections, prompts, the blank and illustrative examples.",
    "responses": {
     "200": {
      "description": "The dataset with its licence, scope limits and sources in the same document.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/codes.json": {
   "get": {
    "operationId": "get_codes",
    "summary": "Visit-time codes",
    "description": "E/M and psychotherapy codes by minutes, the GOÄ factor limits and the Do Not Use abbreviations.",
    "responses": {
     "200": {
      "description": "The dataset with its licence, scope limits and sources in the same document.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "Envelope": {
    "type": "object",
    "required": [
     "id",
     "title",
     "url",
     "generated",
     "publisher",
     "licence",
     "scope_limits",
     "count",
     "data"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "documentation": {
      "type": "string",
      "format": "uri"
     },
     "page": {
      "type": "string",
      "format": "uri"
     },
     "generated": {
      "type": "string",
      "format": "date"
     },
     "sources_read": {
      "type": "object",
      "additionalProperties": {
       "type": "string",
       "format": "date"
      }
     },
     "publisher": {
      "type": "object"
     },
     "licence": {
      "type": "object",
      "required": [
       "id",
       "url",
       "attribution"
      ],
      "properties": {
       "id": {
        "const": "CC-BY-4.0"
       },
       "url": {
        "type": "string"
       },
       "attribution": {
        "type": "string"
       }
      }
     },
     "scope_limits": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "not_published": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "count": {
      "type": "integer"
     },
     "data": {}
    }
   }
  }
 },
 "externalDocs": {
  "description": "Human documentation",
  "url": "https://notavik.com/api/"
 }
}