{
  "resourceType": "OperationDefinition",
  "id": "op-claim-receipt-details",
  "url": "https://bpcs.exchange/fhir/OperationDefinition/op-claim-receipt-details",
  "name": "ClaimReceiptDetails",
  "title": "Claim Receipt Details",
  "status": "active",
  "kind": "operation",
  "experimental": false,
  "description": "Generates an ExplanationOfBenefit that contains receipt details for a patient, possibly filtered to only include a particular subset for the specified patient or application",
  "affectsState": true,
  "code": "receiptDetails",
  "resource": [
    "Patient",
    "ExplanationOfBenefit"
  ],
  "system": false,
  "type": false,
  "instance": true,
  "inputProfile": "https://bpcs.exchange/fhir/StructureDefinition/profile-Parameters-receipt-details",
  "outputProfile": "https://bpcs.exchange/fhir/StructureDefinition/profile-ExplanationOfBenefit-receipt-details-search",
  "parameter": [
    {
      "name": "date",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "This parameter is extension:claim",
      "type": "date"
    },
    {
      "name": "duplicateVersion",
      "use": "in",
      "min": 0,
      "max": "1",
      "documentation": "This parameter is extension:duplicateVersion",
      "type": "positiveInt"
    },
    {
      "name": "itemSource",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "This parameter is extension:itemSource",
      "type": "string",
      "searchType": "token"
    },
    {
      "name": "partitionNumber",
      "use": "in",
      "min": 0,
      "max": "1",
      "documentation": "Indicates the The partition number associated with a record on the claim history table. The column will contain a value that is used to distribute the data over all the available disk volumes on the system.",
      "type": "positiveInt"
    },
    {
      "name": "product",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "This parameter is productOrService.coding:claimDinPin",
      "type": "Coding",
      "binding": {
        "strength": "required",
        "valueSet": "https://bpcs.exchange/fhir/ValueSet/vs-DinPin"
      }
    },
    {
      "name": "sequenceNumber",
      "use": "in",
      "min": 0,
      "max": "1",
      "documentation": "Indicates the sequential number incremented by the programs which load claim history with the transactions. This field was created to guarantee a unique primary key.",
      "type": "positiveInt"
    },
    {
      "name": "transactionCode",
      "use": "in",
      "min": 0,
      "max": "1",
      "documentation": "This parameter is extension:transactionCode",
      "type": "Coding",
      "binding": {
        "strength": "required",
        "valueSet": "https://bpcs.exchange/fhir/ValueSet/vs-TransactionCode"
      }
    },
    {
      "name": "result",
      "use": "out",
      "min": 1,
      "max": "1",
      "documentation": "Indicates if transaction is an adjustment or payment.",
      "type": "ExplanationOfBenefit"
    }
  ]
}