{
  "openapi": "3.0.3",
  "info": {
    "title": "WHO PreQual Product Packaging API",
    "description": "Logical model for product packaging details\nfrom the WHO PreQual API (ProductPackaging).",
    "version": "1.0.0"
  },
  "paths": {
    "/StructureDefinition-PreQualProductPackaging.schema.json": {
      "get": {
        "summary": "JSON Schema definition for the Logical Model StructureDefinition-PreQualProductPackaging",
        "description": "This endpoint serves the JSON Schema definition for the Logical Model StructureDefinition-PreQualProductPackaging.",
        "responses": {
          "200": {
            "description": "The JSON Schema for StructureDefinition-PreQualProductPackaging",
            "content": {
              "application/schema+json": {
                "schema": {
                  "$ref": "./StructureDefinition-PreQualProductPackaging.schema.json"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "StructureDefinition-PreQualProductPackaging": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "http://smart.who.int/base/StructureDefinition-PreQualProductPackaging.schema.json",
        "title": "WHO PreQual Product Packaging",
        "description": "Logical model for product packaging details\nfrom the WHO PreQual API (ProductPackaging).",
        "type": "object",
        "properties": {
          "resourceType": {
            "type": "string",
            "const": "PreQualProductPackaging",
            "description": "Resource type identifier for PreQualProductPackaging logical model"
          },
          "packagingId": {
            "type": "object",
            "description": "Packaging record ID"
          },
          "packagingType": {
            "type": "string",
            "description": "Packaging type code from PreQualDatabaseMetadata (e.g. Secondary, Tertiary, ShippingContainer)"
          },
          "componentPacked": {
            "type": "string",
            "description": "Component packed code from PreQualDatabaseMetadata (e.g. ActiveVaccine, Diluent)"
          },
          "coldChainVolume": {
            "type": "string",
            "description": "Cold chain volume per dose"
          },
          "description": {
            "type": "string",
            "description": "Packaging description"
          },
          "volume": {
            "type": "string",
            "description": "Packaging volume/dimensions"
          },
          "totalDoses": {
            "type": "string",
            "description": "Total doses in packaging"
          },
          "totalContainers": {
            "type": "string",
            "description": "Total containers in packaging"
          },
          "height": {
            "type": "string",
            "description": "Height"
          },
          "length": {
            "type": "string",
            "description": "Length"
          },
          "width": {
            "type": "string",
            "description": "Width"
          },
          "primaryContainers": {
            "type": "string",
            "description": "Number of primary containers"
          }
        },
        "required": [
          "resourceType",
          "packagingId"
        ],
        "resourceDefinition": "http://smart.who.int/pcmt-vaxprequal/StructureDefinition/PreQualProductPackaging",
        "fhir:parent": "http://hl7.org/fhir/StructureDefinition/Base"
      }
    }
  }
}