{
  "resourceType": "OperationDefinition",
  "id": "op-coverage-application-labels",
  "url": "https://bpcs.exchange/fhir/OperationDefinition/op-coverage-application-labels",
  "name": "CoverageApplicationLabels",
  "title": "Generate Family Coverage Application Labels",
  "status": "active",
  "kind": "operation",
  "experimental": false,
  "description": "Assigns a batch of application numbers to a particular client and provides a PDF of labels for those applications",
  "affectsState": true,
  "code": "applicationLabels",
  "resource": [
    "Coverage"
  ],
  "system": false,
  "type": false,
  "instance": true,
  "inputProfile": "https://bpcs.exchange/fhir/StructureDefinition/profile-Parameters-coverage-application-labels-request",
  "outputProfile": "https://bpcs.exchange/fhir/StructureDefinition/profile-Parameters-coverage-application-labels",
  "parameter": [
    {
      "name": "program",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "The insurance program to create application numbers for",
      "type": "code",
      "binding": {
        "strength": "required",
        "valueSet": "https://bpcs.exchange/fhir/ValueSet/vs-Program-family"
      }
    },
    {
      "name": "year",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "The benefit year to create application numbers for",
      "type": "date"
    },
    {
      "name": "count",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "The number of application numbers (and labels) to produce",
      "type": "positiveInt"
    },
    {
      "name": "startNum",
      "use": "out",
      "min": 1,
      "max": "1",
      "documentation": "The numeric portion of the first application number in the assigned batch (the remaining application numbers will be sequential)",
      "type": "positiveInt"
    },
    {
      "name": "startLabel",
      "use": "out",
      "min": 1,
      "max": "1",
      "documentation": "The first full application number including prefix and suffix in the assigned batch.  This is the value to use as the Coverage.id",
      "type": "string"
    },
    {
      "name": "labels",
      "use": "out",
      "min": 1,
      "max": "1",
      "documentation": "A PDF containing the application labels to print",
      "type": "Binary"
    }
  ]
}