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