{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pillwise-dev/json-schema/pillwise-dev-member-view-schema.json",
  "title": "MemberView",
  "description": "The drug in members' words, worked out when the catalog is built.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pillwise-dev-openapi.json#/components/schemas/MemberView",
  "type": "object",
  "required": [
    "display_name"
  ],
  "properties": {
    "display_name": {
      "type": "string"
    },
    "form": {
      "type": "string"
    },
    "form_label": {
      "type": "string"
    },
    "form_group": {
      "type": "string"
    },
    "dose_unit": {
      "type": "string"
    },
    "dose_form": {
      "type": "string",
      "description": "The standard dose form the member-facing form came from."
    },
    "strength": {
      "type": "string"
    },
    "strength_label": {
      "type": "string"
    },
    "route": {
      "type": "string"
    },
    "route_label": {
      "type": "string"
    },
    "volume_ml": {
      "type": "number",
      "description": "A syringe's fill; the same strength in another fill is another dose."
    },
    "labels_version": {
      "type": "integer",
      "description": "The wording rules this view was worked out with."
    }
  }
}