# Bulk Bill Claim - Pathology

POST https://Medicare/bulkbillstoreforward/pathology/v1
Content-Type: application/json

## Pathology services claim

One of the below conditions must be satisfied for each medical event within a Pathology claim. If one of the below conditions is not met for each medical event within a Pathology claim, an error will be returned and no further processing will occur.

- If referral is set and referral>Type Code is set to P perform validation checks and continue processing. If referral is set and referral>Type Code is not set to P, an error will be returned and processing will stop.

- If Referral Override Code is set to N, perform validation checks and continue processing. If Referral Override Code is not set to N, an error will be returned and processing will stop.

- If Self Deemed Code is set to SD for at least one service per medical event and no service has Self Deemed Code set to SS, perform validation checks and continue processing. If Self Deemed Code is not set to SD for at least one service per medical event, or service has Self Deemed Code set to SS, an error will be returned and processing will stop.

Reference: https://developers.rebateright.com.au/rebate-right/advanced/claiming/bulk-bill-claim/bulk-bill-claim-pathology

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /Medicare/bulkbillstoreforward/pathology/v1:
    post:
      operationId: bulk-bill-claim-pathology
      summary: Bulk Bill Claim - Pathology
      description: >-
        ## Pathology services claim


        One of the below conditions must be satisfied for each medical event
        within a Pathology claim. If one of the below conditions is not met for
        each medical event within a Pathology claim, an error will be returned
        and no further processing will occur.


        - If referral is set and referral>Type Code is set to P perform
        validation checks and continue processing. If referral is set and
        referral>Type Code is not set to P, an error will be returned and
        processing will stop.


        - If Referral Override Code is set to N, perform validation checks and
        continue processing. If Referral Override Code is not set to N, an error
        will be returned and processing will stop.


        - If Self Deemed Code is set to SD for at least one service per medical
        event and no service has Self Deemed Code set to SS, perform validation
        checks and continue processing. If Self Deemed Code is not set to SD for
        at least one service per medical event, or service has Self Deemed Code
        set to SS, an error will be returned and processing will stop.
      tags:
        - >-
          subpackage_advanced.subpackage_advanced/claiming.subpackage_advanced/claiming/bulkBillClaim
      parameters:
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
        - name: x-minor-id
          in: header
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Advanced_Claiming_Bulk Bill Claim_Bulk
                  Bill Claim - Pathology_Response_200
      requestBody:
        content:
          application/json:
            schema:
              type: string
servers:
  - url: https:/
components:
  schemas:
    Advanced_Claiming_Bulk Bill Claim_Bulk Bill Claim - Pathology_Response_200:
      type: object
      properties:
        status:
          type: string
        claimId:
          type: string
      required:
        - status
        - claimId
      title: >-
        Advanced_Claiming_Bulk Bill Claim_Bulk Bill Claim -
        Pathology_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

```

## SDK Code Examples

```python 5.1.3.1
import requests

url = "https://https/Medicare/bulkbillstoreforward/pathology/v1"

headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript 5.1.3.1
const url = 'https://https/Medicare/bulkbillstoreforward/pathology/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: undefined
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go 5.1.3.1
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://https/Medicare/bulkbillstoreforward/pathology/v1"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("x-minor-id", "{{MinorId}}")
	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby 5.1.3.1
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/bulkbillstoreforward/pathology/v1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'

response = http.request(request)
puts response.read_body
```

```java 5.1.3.1
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/Medicare/bulkbillstoreforward/pathology/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

```php 5.1.3.1
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/bulkbillstoreforward/pathology/v1', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

echo $response->getBody();
```

```csharp 5.1.3.1
using RestSharp;

var client = new RestClient("https://https/Medicare/bulkbillstoreforward/pathology/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift 5.1.3.1
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/bulkbillstoreforward/pathology/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

```python Pathology
import requests

url = "https://https/Medicare/bulkbillstoreforward/pathology/v1"

headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Pathology
const url = 'https://https/Medicare/bulkbillstoreforward/pathology/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: undefined
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Pathology
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://https/Medicare/bulkbillstoreforward/pathology/v1"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("x-minor-id", "{{MinorId}}")
	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Pathology
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/bulkbillstoreforward/pathology/v1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'

response = http.request(request)
puts response.read_body
```

```java Pathology
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/Medicare/bulkbillstoreforward/pathology/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

```php Pathology
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/bulkbillstoreforward/pathology/v1', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

echo $response->getBody();
```

```csharp Pathology
using RestSharp;

var client = new RestClient("https://https/Medicare/bulkbillstoreforward/pathology/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift Pathology
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/bulkbillstoreforward/pathology/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

```python All Fields
import requests

url = "https://https/Medicare/bulkbillstoreforward/pathology/v1"

headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript All Fields
const url = 'https://https/Medicare/bulkbillstoreforward/pathology/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: undefined
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go All Fields
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://https/Medicare/bulkbillstoreforward/pathology/v1"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("x-minor-id", "{{MinorId}}")
	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby All Fields
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/bulkbillstoreforward/pathology/v1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'

response = http.request(request)
puts response.read_body
```

```java All Fields
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/Medicare/bulkbillstoreforward/pathology/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

```php All Fields
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/bulkbillstoreforward/pathology/v1', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

echo $response->getBody();
```

```csharp All Fields
using RestSharp;

var client = new RestClient("https://https/Medicare/bulkbillstoreforward/pathology/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift All Fields
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/bulkbillstoreforward/pathology/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

```python 3. Pathology
import requests

url = "https://https/Medicare/bulkbillstoreforward/pathology/v1"

headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript 3. Pathology
const url = 'https://https/Medicare/bulkbillstoreforward/pathology/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: undefined
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go 3. Pathology
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://https/Medicare/bulkbillstoreforward/pathology/v1"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("x-minor-id", "{{MinorId}}")
	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby 3. Pathology
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/bulkbillstoreforward/pathology/v1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'

response = http.request(request)
puts response.read_body
```

```java 3. Pathology
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/Medicare/bulkbillstoreforward/pathology/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

```php 3. Pathology
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/bulkbillstoreforward/pathology/v1', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

echo $response->getBody();
```

```csharp 3. Pathology
using RestSharp;

var client = new RestClient("https://https/Medicare/bulkbillstoreforward/pathology/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift 3. Pathology
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/bulkbillstoreforward/pathology/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

```python Advanced_Claiming_Bulk Bill Claim_Bulk Bill Claim - Pathology_example
import requests

url = "https://https/Medicare/bulkbillstoreforward/pathology/v1"

payload = "{
    \"claim\": {
        \"serviceTypeCode\": \"P\",
        \"facilityId\": \"9988770W\",
        \"hospitalInd\": \"Y\",
        \"serviceProvider\": {
            \"providerNumber\": \"2447781L\"
        },
        \"medicalEvent\": [
            {
                \"id\": \"01\",
                \"authorisationDate\": \"2025-06-01\",
                \"createDateTime\": \"2025-06-01T08:30:00+10:00\",
                \"medicalEventDate\": \"2025-06-01\",
                \"medicalEventTime\": \"08:30:00+10:00\",
                \"submissionAuthorityInd\": \"Y\",
                //\"referralOverrideCode\": \"N\",
                \"referral\": {
                    \"issueDate\": \"2025-05-01\",
                    \"typeCode\": \"P\",
                    \"provider\": {
                        \"providerNumber\": \"2447781L\"
                    }
                },
                \"patient\": {
                    \"identity\": {
                        \"dateOfBirth\": \"1985-04-20\",
                        \"familyName\": \"Smith\",
                        \"givenName\": \"John\"
                    },
                    \"medicare\": {
                        \"memberNumber\": \"4951525561\",
                        \"memberRefNumber\": \"1\"
                    }
                },
                \"service\": [
                    {
                        \"id\": \"0001\",
                        \"itemNumber\": \"65120\",
                        \"chargeAmount\": \"15075\"
                        ,\"collectionDateTime\":\"2025-05-01T08:30:00+10:00\"
                        ,\"accessionDateTime\":\"2025-05-02T08:30:00+10:00\"
                        //,\"selfDeemedCode\": \"SD\",
                        //\"aftercareOverrideInd\": \"Y\",
                        //\"duplicateServiceOverrideInd\": \"Y\",
                        //\"multipleProcedureOverrideInd\": \"Y\",
                        //\"numberOfPatientsSeen\": \"2\",
                        //\"restrictiveOverrideCode\": \"NR\",
                        //\"timeDuration\":\"100\",
                        //\"lspNumber\":\"000014\",
                        ,\"scpId\": \"00001\"
                       // \"text\": \"text\",
                       ,\"rule3ExemptInd\":\"Y\"
                       //,\"s4b3ExemptInd\":\"Y\"
                       
                    },
                    {
                        \"id\": \"0002\",
                        \"itemNumber\": \"11704\",
                        \"chargeAmount\": \"15075\"
                        //,\"selfDeemedCode\": \"SD\"
                       //,\"rule3ExemptInd\":\"Y\"
                       //,\"s4b3ExemptInd\":\"Y\"
                       //,\"collectionDateTime\":\"2025-05-01T08:30:00+10:00\"
                       //,\"accessionDateTime\":\"2025-05-02T08:30:00+10:00\"
                        //,\"aftercareOverrideInd\": \"Y\",
                        //\"duplicateServiceOverrideInd\": \"Y\",
                        //\"multipleProcedureOverrideInd\": \"Y\",
                        //\"numberOfPatientsSeen\": \"2\",
                        //\"restrictiveOverrideCode\": \"NR\",
                        //\"timeDuration\":\"100\",
                        //\"lspNumber\":\"000014\",
                        //,\"scpId\":\"00001\"
                        //\"text\": \"text\"
                    }
                ]
            }
        ]
    }
}"
headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Advanced_Claiming_Bulk Bill Claim_Bulk Bill Claim - Pathology_example
const url = 'https://https/Medicare/bulkbillstoreforward/pathology/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: '"{\r\n    \"claim\": {\r\n        \"serviceTypeCode\": \"P\",\r\n        \"facilityId\": \"9988770W\",\r\n        \"hospitalInd\": \"Y\",\r\n        \"serviceProvider\": {\r\n            \"providerNumber\": \"2447781L\"\r\n        },\r\n        \"medicalEvent\": [\r\n            {\r\n                \"id\": \"01\",\r\n                \"authorisationDate\": \"2025-06-01\",\r\n                \"createDateTime\": \"2025-06-01T08:30:00+10:00\",\r\n                \"medicalEventDate\": \"2025-06-01\",\r\n                \"medicalEventTime\": \"08:30:00+10:00\",\r\n                \"submissionAuthorityInd\": \"Y\",\r\n                //\"referralOverrideCode\": \"N\",\r\n                \"referral\": {\r\n                    \"issueDate\": \"2025-05-01\",\r\n                    \"typeCode\": \"P\",\r\n                    \"provider\": {\r\n                        \"providerNumber\": \"2447781L\"\r\n                    }\r\n                },\r\n                \"patient\": {\r\n                    \"identity\": {\r\n                        \"dateOfBirth\": \"1985-04-20\",\r\n                        \"familyName\": \"Smith\",\r\n                        \"givenName\": \"John\"\r\n                    },\r\n                    \"medicare\": {\r\n                        \"memberNumber\": \"4951525561\",\r\n                        \"memberRefNumber\": \"1\"\r\n                    }\r\n                },\r\n                \"service\": [\r\n                    {\r\n                        \"id\": \"0001\",\r\n                        \"itemNumber\": \"65120\",\r\n                        \"chargeAmount\": \"15075\"\r\n                        ,\"collectionDateTime\":\"2025-05-01T08:30:00+10:00\"\r\n                        ,\"accessionDateTime\":\"2025-05-02T08:30:00+10:00\"\r\n                        //,\"selfDeemedCode\": \"SD\",\r\n                        //\"aftercareOverrideInd\": \"Y\",\r\n                        //\"duplicateServiceOverrideInd\": \"Y\",\r\n                        //\"multipleProcedureOverrideInd\": \"Y\",\r\n                        //\"numberOfPatientsSeen\": \"2\",\r\n                        //\"restrictiveOverrideCode\": \"NR\",\r\n                        //\"timeDuration\":\"100\",\r\n                        //\"lspNumber\":\"000014\",\r\n                        ,\"scpId\": \"00001\"\r\n                       // \"text\": \"text\",\r\n                       ,\"rule3ExemptInd\":\"Y\"\r\n                       //,\"s4b3ExemptInd\":\"Y\"\r\n                       \r\n                    },\r\n                    {\r\n                        \"id\": \"0002\",\r\n                        \"itemNumber\": \"11704\",\r\n                        \"chargeAmount\": \"15075\"\r\n                        //,\"selfDeemedCode\": \"SD\"\r\n                       //,\"rule3ExemptInd\":\"Y\"\r\n                       //,\"s4b3ExemptInd\":\"Y\"\r\n                       //,\"collectionDateTime\":\"2025-05-01T08:30:00+10:00\"\r\n                       //,\"accessionDateTime\":\"2025-05-02T08:30:00+10:00\"\r\n                        //,\"aftercareOverrideInd\": \"Y\",\r\n                        //\"duplicateServiceOverrideInd\": \"Y\",\r\n                        //\"multipleProcedureOverrideInd\": \"Y\",\r\n                        //\"numberOfPatientsSeen\": \"2\",\r\n                        //\"restrictiveOverrideCode\": \"NR\",\r\n                        //\"timeDuration\":\"100\",\r\n                        //\"lspNumber\":\"000014\",\r\n                        //,\"scpId\":\"00001\"\r\n                        //\"text\": \"text\"\r\n                    }\r\n                ]\r\n            }\r\n        ]\r\n    }\r\n}"'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Advanced_Claiming_Bulk Bill Claim_Bulk Bill Claim - Pathology_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/Medicare/bulkbillstoreforward/pathology/v1"

	payload := strings.NewReader("\"{\\r\\n    \\\"claim\\\": {\\r\\n        \\\"serviceTypeCode\\\": \\\"P\\\",\\r\\n        \\\"facilityId\\\": \\\"9988770W\\\",\\r\\n        \\\"hospitalInd\\\": \\\"Y\\\",\\r\\n        \\\"serviceProvider\\\": {\\r\\n            \\\"providerNumber\\\": \\\"2447781L\\\"\\r\\n        },\\r\\n        \\\"medicalEvent\\\": [\\r\\n            {\\r\\n                \\\"id\\\": \\\"01\\\",\\r\\n                \\\"authorisationDate\\\": \\\"2025-06-01\\\",\\r\\n                \\\"createDateTime\\\": \\\"2025-06-01T08:30:00+10:00\\\",\\r\\n                \\\"medicalEventDate\\\": \\\"2025-06-01\\\",\\r\\n                \\\"medicalEventTime\\\": \\\"08:30:00+10:00\\\",\\r\\n                \\\"submissionAuthorityInd\\\": \\\"Y\\\",\\r\\n                //\\\"referralOverrideCode\\\": \\\"N\\\",\\r\\n                \\\"referral\\\": {\\r\\n                    \\\"issueDate\\\": \\\"2025-05-01\\\",\\r\\n                    \\\"typeCode\\\": \\\"P\\\",\\r\\n                    \\\"provider\\\": {\\r\\n                        \\\"providerNumber\\\": \\\"2447781L\\\"\\r\\n                    }\\r\\n                },\\r\\n                \\\"patient\\\": {\\r\\n                    \\\"identity\\\": {\\r\\n                        \\\"dateOfBirth\\\": \\\"1985-04-20\\\",\\r\\n                        \\\"familyName\\\": \\\"Smith\\\",\\r\\n                        \\\"givenName\\\": \\\"John\\\"\\r\\n                    },\\r\\n                    \\\"medicare\\\": {\\r\\n                        \\\"memberNumber\\\": \\\"4951525561\\\",\\r\\n                        \\\"memberRefNumber\\\": \\\"1\\\"\\r\\n                    }\\r\\n                },\\r\\n                \\\"service\\\": [\\r\\n                    {\\r\\n                        \\\"id\\\": \\\"0001\\\",\\r\\n                        \\\"itemNumber\\\": \\\"65120\\\",\\r\\n                        \\\"chargeAmount\\\": \\\"15075\\\"\\r\\n                        ,\\\"collectionDateTime\\\":\\\"2025-05-01T08:30:00+10:00\\\"\\r\\n                        ,\\\"accessionDateTime\\\":\\\"2025-05-02T08:30:00+10:00\\\"\\r\\n                        //,\\\"selfDeemedCode\\\": \\\"SD\\\",\\r\\n                        //\\\"aftercareOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"duplicateServiceOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"multipleProcedureOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"numberOfPatientsSeen\\\": \\\"2\\\",\\r\\n                        //\\\"restrictiveOverrideCode\\\": \\\"NR\\\",\\r\\n                        //\\\"timeDuration\\\":\\\"100\\\",\\r\\n                        //\\\"lspNumber\\\":\\\"000014\\\",\\r\\n                        ,\\\"scpId\\\": \\\"00001\\\"\\r\\n                       // \\\"text\\\": \\\"text\\\",\\r\\n                       ,\\\"rule3ExemptInd\\\":\\\"Y\\\"\\r\\n                       //,\\\"s4b3ExemptInd\\\":\\\"Y\\\"\\r\\n                       \\r\\n                    },\\r\\n                    {\\r\\n                        \\\"id\\\": \\\"0002\\\",\\r\\n                        \\\"itemNumber\\\": \\\"11704\\\",\\r\\n                        \\\"chargeAmount\\\": \\\"15075\\\"\\r\\n                        //,\\\"selfDeemedCode\\\": \\\"SD\\\"\\r\\n                       //,\\\"rule3ExemptInd\\\":\\\"Y\\\"\\r\\n                       //,\\\"s4b3ExemptInd\\\":\\\"Y\\\"\\r\\n                       //,\\\"collectionDateTime\\\":\\\"2025-05-01T08:30:00+10:00\\\"\\r\\n                       //,\\\"accessionDateTime\\\":\\\"2025-05-02T08:30:00+10:00\\\"\\r\\n                        //,\\\"aftercareOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"duplicateServiceOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"multipleProcedureOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"numberOfPatientsSeen\\\": \\\"2\\\",\\r\\n                        //\\\"restrictiveOverrideCode\\\": \\\"NR\\\",\\r\\n                        //\\\"timeDuration\\\":\\\"100\\\",\\r\\n                        //\\\"lspNumber\\\":\\\"000014\\\",\\r\\n                        //,\\\"scpId\\\":\\\"00001\\\"\\r\\n                        //\\\"text\\\": \\\"text\\\"\\r\\n                    }\\r\\n                ]\\r\\n            }\\r\\n        ]\\r\\n    }\\r\\n}\"")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-minor-id", "{{MinorId}}")
	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Advanced_Claiming_Bulk Bill Claim_Bulk Bill Claim - Pathology_example
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/bulkbillstoreforward/pathology/v1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "\"{\\r\\n    \\\"claim\\\": {\\r\\n        \\\"serviceTypeCode\\\": \\\"P\\\",\\r\\n        \\\"facilityId\\\": \\\"9988770W\\\",\\r\\n        \\\"hospitalInd\\\": \\\"Y\\\",\\r\\n        \\\"serviceProvider\\\": {\\r\\n            \\\"providerNumber\\\": \\\"2447781L\\\"\\r\\n        },\\r\\n        \\\"medicalEvent\\\": [\\r\\n            {\\r\\n                \\\"id\\\": \\\"01\\\",\\r\\n                \\\"authorisationDate\\\": \\\"2025-06-01\\\",\\r\\n                \\\"createDateTime\\\": \\\"2025-06-01T08:30:00+10:00\\\",\\r\\n                \\\"medicalEventDate\\\": \\\"2025-06-01\\\",\\r\\n                \\\"medicalEventTime\\\": \\\"08:30:00+10:00\\\",\\r\\n                \\\"submissionAuthorityInd\\\": \\\"Y\\\",\\r\\n                //\\\"referralOverrideCode\\\": \\\"N\\\",\\r\\n                \\\"referral\\\": {\\r\\n                    \\\"issueDate\\\": \\\"2025-05-01\\\",\\r\\n                    \\\"typeCode\\\": \\\"P\\\",\\r\\n                    \\\"provider\\\": {\\r\\n                        \\\"providerNumber\\\": \\\"2447781L\\\"\\r\\n                    }\\r\\n                },\\r\\n                \\\"patient\\\": {\\r\\n                    \\\"identity\\\": {\\r\\n                        \\\"dateOfBirth\\\": \\\"1985-04-20\\\",\\r\\n                        \\\"familyName\\\": \\\"Smith\\\",\\r\\n                        \\\"givenName\\\": \\\"John\\\"\\r\\n                    },\\r\\n                    \\\"medicare\\\": {\\r\\n                        \\\"memberNumber\\\": \\\"4951525561\\\",\\r\\n                        \\\"memberRefNumber\\\": \\\"1\\\"\\r\\n                    }\\r\\n                },\\r\\n                \\\"service\\\": [\\r\\n                    {\\r\\n                        \\\"id\\\": \\\"0001\\\",\\r\\n                        \\\"itemNumber\\\": \\\"65120\\\",\\r\\n                        \\\"chargeAmount\\\": \\\"15075\\\"\\r\\n                        ,\\\"collectionDateTime\\\":\\\"2025-05-01T08:30:00+10:00\\\"\\r\\n                        ,\\\"accessionDateTime\\\":\\\"2025-05-02T08:30:00+10:00\\\"\\r\\n                        //,\\\"selfDeemedCode\\\": \\\"SD\\\",\\r\\n                        //\\\"aftercareOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"duplicateServiceOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"multipleProcedureOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"numberOfPatientsSeen\\\": \\\"2\\\",\\r\\n                        //\\\"restrictiveOverrideCode\\\": \\\"NR\\\",\\r\\n                        //\\\"timeDuration\\\":\\\"100\\\",\\r\\n                        //\\\"lspNumber\\\":\\\"000014\\\",\\r\\n                        ,\\\"scpId\\\": \\\"00001\\\"\\r\\n                       // \\\"text\\\": \\\"text\\\",\\r\\n                       ,\\\"rule3ExemptInd\\\":\\\"Y\\\"\\r\\n                       //,\\\"s4b3ExemptInd\\\":\\\"Y\\\"\\r\\n                       \\r\\n                    },\\r\\n                    {\\r\\n                        \\\"id\\\": \\\"0002\\\",\\r\\n                        \\\"itemNumber\\\": \\\"11704\\\",\\r\\n                        \\\"chargeAmount\\\": \\\"15075\\\"\\r\\n                        //,\\\"selfDeemedCode\\\": \\\"SD\\\"\\r\\n                       //,\\\"rule3ExemptInd\\\":\\\"Y\\\"\\r\\n                       //,\\\"s4b3ExemptInd\\\":\\\"Y\\\"\\r\\n                       //,\\\"collectionDateTime\\\":\\\"2025-05-01T08:30:00+10:00\\\"\\r\\n                       //,\\\"accessionDateTime\\\":\\\"2025-05-02T08:30:00+10:00\\\"\\r\\n                        //,\\\"aftercareOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"duplicateServiceOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"multipleProcedureOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"numberOfPatientsSeen\\\": \\\"2\\\",\\r\\n                        //\\\"restrictiveOverrideCode\\\": \\\"NR\\\",\\r\\n                        //\\\"timeDuration\\\":\\\"100\\\",\\r\\n                        //\\\"lspNumber\\\":\\\"000014\\\",\\r\\n                        //,\\\"scpId\\\":\\\"00001\\\"\\r\\n                        //\\\"text\\\": \\\"text\\\"\\r\\n                    }\\r\\n                ]\\r\\n            }\\r\\n        ]\\r\\n    }\\r\\n}\""

response = http.request(request)
puts response.read_body
```

```java Advanced_Claiming_Bulk Bill Claim_Bulk Bill Claim - Pathology_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/Medicare/bulkbillstoreforward/pathology/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("\"{\\r\\n    \\\"claim\\\": {\\r\\n        \\\"serviceTypeCode\\\": \\\"P\\\",\\r\\n        \\\"facilityId\\\": \\\"9988770W\\\",\\r\\n        \\\"hospitalInd\\\": \\\"Y\\\",\\r\\n        \\\"serviceProvider\\\": {\\r\\n            \\\"providerNumber\\\": \\\"2447781L\\\"\\r\\n        },\\r\\n        \\\"medicalEvent\\\": [\\r\\n            {\\r\\n                \\\"id\\\": \\\"01\\\",\\r\\n                \\\"authorisationDate\\\": \\\"2025-06-01\\\",\\r\\n                \\\"createDateTime\\\": \\\"2025-06-01T08:30:00+10:00\\\",\\r\\n                \\\"medicalEventDate\\\": \\\"2025-06-01\\\",\\r\\n                \\\"medicalEventTime\\\": \\\"08:30:00+10:00\\\",\\r\\n                \\\"submissionAuthorityInd\\\": \\\"Y\\\",\\r\\n                //\\\"referralOverrideCode\\\": \\\"N\\\",\\r\\n                \\\"referral\\\": {\\r\\n                    \\\"issueDate\\\": \\\"2025-05-01\\\",\\r\\n                    \\\"typeCode\\\": \\\"P\\\",\\r\\n                    \\\"provider\\\": {\\r\\n                        \\\"providerNumber\\\": \\\"2447781L\\\"\\r\\n                    }\\r\\n                },\\r\\n                \\\"patient\\\": {\\r\\n                    \\\"identity\\\": {\\r\\n                        \\\"dateOfBirth\\\": \\\"1985-04-20\\\",\\r\\n                        \\\"familyName\\\": \\\"Smith\\\",\\r\\n                        \\\"givenName\\\": \\\"John\\\"\\r\\n                    },\\r\\n                    \\\"medicare\\\": {\\r\\n                        \\\"memberNumber\\\": \\\"4951525561\\\",\\r\\n                        \\\"memberRefNumber\\\": \\\"1\\\"\\r\\n                    }\\r\\n                },\\r\\n                \\\"service\\\": [\\r\\n                    {\\r\\n                        \\\"id\\\": \\\"0001\\\",\\r\\n                        \\\"itemNumber\\\": \\\"65120\\\",\\r\\n                        \\\"chargeAmount\\\": \\\"15075\\\"\\r\\n                        ,\\\"collectionDateTime\\\":\\\"2025-05-01T08:30:00+10:00\\\"\\r\\n                        ,\\\"accessionDateTime\\\":\\\"2025-05-02T08:30:00+10:00\\\"\\r\\n                        //,\\\"selfDeemedCode\\\": \\\"SD\\\",\\r\\n                        //\\\"aftercareOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"duplicateServiceOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"multipleProcedureOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"numberOfPatientsSeen\\\": \\\"2\\\",\\r\\n                        //\\\"restrictiveOverrideCode\\\": \\\"NR\\\",\\r\\n                        //\\\"timeDuration\\\":\\\"100\\\",\\r\\n                        //\\\"lspNumber\\\":\\\"000014\\\",\\r\\n                        ,\\\"scpId\\\": \\\"00001\\\"\\r\\n                       // \\\"text\\\": \\\"text\\\",\\r\\n                       ,\\\"rule3ExemptInd\\\":\\\"Y\\\"\\r\\n                       //,\\\"s4b3ExemptInd\\\":\\\"Y\\\"\\r\\n                       \\r\\n                    },\\r\\n                    {\\r\\n                        \\\"id\\\": \\\"0002\\\",\\r\\n                        \\\"itemNumber\\\": \\\"11704\\\",\\r\\n                        \\\"chargeAmount\\\": \\\"15075\\\"\\r\\n                        //,\\\"selfDeemedCode\\\": \\\"SD\\\"\\r\\n                       //,\\\"rule3ExemptInd\\\":\\\"Y\\\"\\r\\n                       //,\\\"s4b3ExemptInd\\\":\\\"Y\\\"\\r\\n                       //,\\\"collectionDateTime\\\":\\\"2025-05-01T08:30:00+10:00\\\"\\r\\n                       //,\\\"accessionDateTime\\\":\\\"2025-05-02T08:30:00+10:00\\\"\\r\\n                        //,\\\"aftercareOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"duplicateServiceOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"multipleProcedureOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"numberOfPatientsSeen\\\": \\\"2\\\",\\r\\n                        //\\\"restrictiveOverrideCode\\\": \\\"NR\\\",\\r\\n                        //\\\"timeDuration\\\":\\\"100\\\",\\r\\n                        //\\\"lspNumber\\\":\\\"000014\\\",\\r\\n                        //,\\\"scpId\\\":\\\"00001\\\"\\r\\n                        //\\\"text\\\": \\\"text\\\"\\r\\n                    }\\r\\n                ]\\r\\n            }\\r\\n        ]\\r\\n    }\\r\\n}\"")
  .asString();
```

```php Advanced_Claiming_Bulk Bill Claim_Bulk Bill Claim - Pathology_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/bulkbillstoreforward/pathology/v1', [
  'body' => '"{\\r\\n    \\"claim\\": {\\r\\n        \\"serviceTypeCode\\": \\"P\\",\\r\\n        \\"facilityId\\": \\"9988770W\\",\\r\\n        \\"hospitalInd\\": \\"Y\\",\\r\\n        \\"serviceProvider\\": {\\r\\n            \\"providerNumber\\": \\"2447781L\\"\\r\\n        },\\r\\n        \\"medicalEvent\\": [\\r\\n            {\\r\\n                \\"id\\": \\"01\\",\\r\\n                \\"authorisationDate\\": \\"2025-06-01\\",\\r\\n                \\"createDateTime\\": \\"2025-06-01T08:30:00+10:00\\",\\r\\n                \\"medicalEventDate\\": \\"2025-06-01\\",\\r\\n                \\"medicalEventTime\\": \\"08:30:00+10:00\\",\\r\\n                \\"submissionAuthorityInd\\": \\"Y\\",\\r\\n                //\\"referralOverrideCode\\": \\"N\\",\\r\\n                \\"referral\\": {\\r\\n                    \\"issueDate\\": \\"2025-05-01\\",\\r\\n                    \\"typeCode\\": \\"P\\",\\r\\n                    \\"provider\\": {\\r\\n                        \\"providerNumber\\": \\"2447781L\\"\\r\\n                    }\\r\\n                },\\r\\n                \\"patient\\": {\\r\\n                    \\"identity\\": {\\r\\n                        \\"dateOfBirth\\": \\"1985-04-20\\",\\r\\n                        \\"familyName\\": \\"Smith\\",\\r\\n                        \\"givenName\\": \\"John\\"\\r\\n                    },\\r\\n                    \\"medicare\\": {\\r\\n                        \\"memberNumber\\": \\"4951525561\\",\\r\\n                        \\"memberRefNumber\\": \\"1\\"\\r\\n                    }\\r\\n                },\\r\\n                \\"service\\": [\\r\\n                    {\\r\\n                        \\"id\\": \\"0001\\",\\r\\n                        \\"itemNumber\\": \\"65120\\",\\r\\n                        \\"chargeAmount\\": \\"15075\\"\\r\\n                        ,\\"collectionDateTime\\":\\"2025-05-01T08:30:00+10:00\\"\\r\\n                        ,\\"accessionDateTime\\":\\"2025-05-02T08:30:00+10:00\\"\\r\\n                        //,\\"selfDeemedCode\\": \\"SD\\",\\r\\n                        //\\"aftercareOverrideInd\\": \\"Y\\",\\r\\n                        //\\"duplicateServiceOverrideInd\\": \\"Y\\",\\r\\n                        //\\"multipleProcedureOverrideInd\\": \\"Y\\",\\r\\n                        //\\"numberOfPatientsSeen\\": \\"2\\",\\r\\n                        //\\"restrictiveOverrideCode\\": \\"NR\\",\\r\\n                        //\\"timeDuration\\":\\"100\\",\\r\\n                        //\\"lspNumber\\":\\"000014\\",\\r\\n                        ,\\"scpId\\": \\"00001\\"\\r\\n                       // \\"text\\": \\"text\\",\\r\\n                       ,\\"rule3ExemptInd\\":\\"Y\\"\\r\\n                       //,\\"s4b3ExemptInd\\":\\"Y\\"\\r\\n                       \\r\\n                    },\\r\\n                    {\\r\\n                        \\"id\\": \\"0002\\",\\r\\n                        \\"itemNumber\\": \\"11704\\",\\r\\n                        \\"chargeAmount\\": \\"15075\\"\\r\\n                        //,\\"selfDeemedCode\\": \\"SD\\"\\r\\n                       //,\\"rule3ExemptInd\\":\\"Y\\"\\r\\n                       //,\\"s4b3ExemptInd\\":\\"Y\\"\\r\\n                       //,\\"collectionDateTime\\":\\"2025-05-01T08:30:00+10:00\\"\\r\\n                       //,\\"accessionDateTime\\":\\"2025-05-02T08:30:00+10:00\\"\\r\\n                        //,\\"aftercareOverrideInd\\": \\"Y\\",\\r\\n                        //\\"duplicateServiceOverrideInd\\": \\"Y\\",\\r\\n                        //\\"multipleProcedureOverrideInd\\": \\"Y\\",\\r\\n                        //\\"numberOfPatientsSeen\\": \\"2\\",\\r\\n                        //\\"restrictiveOverrideCode\\": \\"NR\\",\\r\\n                        //\\"timeDuration\\":\\"100\\",\\r\\n                        //\\"lspNumber\\":\\"000014\\",\\r\\n                        //,\\"scpId\\":\\"00001\\"\\r\\n                        //\\"text\\": \\"text\\"\\r\\n                    }\\r\\n                ]\\r\\n            }\\r\\n        ]\\r\\n    }\\r\\n}"',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

echo $response->getBody();
```

```csharp Advanced_Claiming_Bulk Bill Claim_Bulk Bill Claim - Pathology_example
using RestSharp;

var client = new RestClient("https://https/Medicare/bulkbillstoreforward/pathology/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "\"{\\r\\n    \\\"claim\\\": {\\r\\n        \\\"serviceTypeCode\\\": \\\"P\\\",\\r\\n        \\\"facilityId\\\": \\\"9988770W\\\",\\r\\n        \\\"hospitalInd\\\": \\\"Y\\\",\\r\\n        \\\"serviceProvider\\\": {\\r\\n            \\\"providerNumber\\\": \\\"2447781L\\\"\\r\\n        },\\r\\n        \\\"medicalEvent\\\": [\\r\\n            {\\r\\n                \\\"id\\\": \\\"01\\\",\\r\\n                \\\"authorisationDate\\\": \\\"2025-06-01\\\",\\r\\n                \\\"createDateTime\\\": \\\"2025-06-01T08:30:00+10:00\\\",\\r\\n                \\\"medicalEventDate\\\": \\\"2025-06-01\\\",\\r\\n                \\\"medicalEventTime\\\": \\\"08:30:00+10:00\\\",\\r\\n                \\\"submissionAuthorityInd\\\": \\\"Y\\\",\\r\\n                //\\\"referralOverrideCode\\\": \\\"N\\\",\\r\\n                \\\"referral\\\": {\\r\\n                    \\\"issueDate\\\": \\\"2025-05-01\\\",\\r\\n                    \\\"typeCode\\\": \\\"P\\\",\\r\\n                    \\\"provider\\\": {\\r\\n                        \\\"providerNumber\\\": \\\"2447781L\\\"\\r\\n                    }\\r\\n                },\\r\\n                \\\"patient\\\": {\\r\\n                    \\\"identity\\\": {\\r\\n                        \\\"dateOfBirth\\\": \\\"1985-04-20\\\",\\r\\n                        \\\"familyName\\\": \\\"Smith\\\",\\r\\n                        \\\"givenName\\\": \\\"John\\\"\\r\\n                    },\\r\\n                    \\\"medicare\\\": {\\r\\n                        \\\"memberNumber\\\": \\\"4951525561\\\",\\r\\n                        \\\"memberRefNumber\\\": \\\"1\\\"\\r\\n                    }\\r\\n                },\\r\\n                \\\"service\\\": [\\r\\n                    {\\r\\n                        \\\"id\\\": \\\"0001\\\",\\r\\n                        \\\"itemNumber\\\": \\\"65120\\\",\\r\\n                        \\\"chargeAmount\\\": \\\"15075\\\"\\r\\n                        ,\\\"collectionDateTime\\\":\\\"2025-05-01T08:30:00+10:00\\\"\\r\\n                        ,\\\"accessionDateTime\\\":\\\"2025-05-02T08:30:00+10:00\\\"\\r\\n                        //,\\\"selfDeemedCode\\\": \\\"SD\\\",\\r\\n                        //\\\"aftercareOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"duplicateServiceOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"multipleProcedureOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"numberOfPatientsSeen\\\": \\\"2\\\",\\r\\n                        //\\\"restrictiveOverrideCode\\\": \\\"NR\\\",\\r\\n                        //\\\"timeDuration\\\":\\\"100\\\",\\r\\n                        //\\\"lspNumber\\\":\\\"000014\\\",\\r\\n                        ,\\\"scpId\\\": \\\"00001\\\"\\r\\n                       // \\\"text\\\": \\\"text\\\",\\r\\n                       ,\\\"rule3ExemptInd\\\":\\\"Y\\\"\\r\\n                       //,\\\"s4b3ExemptInd\\\":\\\"Y\\\"\\r\\n                       \\r\\n                    },\\r\\n                    {\\r\\n                        \\\"id\\\": \\\"0002\\\",\\r\\n                        \\\"itemNumber\\\": \\\"11704\\\",\\r\\n                        \\\"chargeAmount\\\": \\\"15075\\\"\\r\\n                        //,\\\"selfDeemedCode\\\": \\\"SD\\\"\\r\\n                       //,\\\"rule3ExemptInd\\\":\\\"Y\\\"\\r\\n                       //,\\\"s4b3ExemptInd\\\":\\\"Y\\\"\\r\\n                       //,\\\"collectionDateTime\\\":\\\"2025-05-01T08:30:00+10:00\\\"\\r\\n                       //,\\\"accessionDateTime\\\":\\\"2025-05-02T08:30:00+10:00\\\"\\r\\n                        //,\\\"aftercareOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"duplicateServiceOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"multipleProcedureOverrideInd\\\": \\\"Y\\\",\\r\\n                        //\\\"numberOfPatientsSeen\\\": \\\"2\\\",\\r\\n                        //\\\"restrictiveOverrideCode\\\": \\\"NR\\\",\\r\\n                        //\\\"timeDuration\\\":\\\"100\\\",\\r\\n                        //\\\"lspNumber\\\":\\\"000014\\\",\\r\\n                        //,\\\"scpId\\\":\\\"00001\\\"\\r\\n                        //\\\"text\\\": \\\"text\\\"\\r\\n                    }\\r\\n                ]\\r\\n            }\\r\\n        ]\\r\\n    }\\r\\n}\"", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Advanced_Claiming_Bulk Bill Claim_Bulk Bill Claim - Pathology_example
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = "{
    \"claim\": {
        \"serviceTypeCode\": \"P\",
        \"facilityId\": \"9988770W\",
        \"hospitalInd\": \"Y\",
        \"serviceProvider\": {
            \"providerNumber\": \"2447781L\"
        },
        \"medicalEvent\": [
            {
                \"id\": \"01\",
                \"authorisationDate\": \"2025-06-01\",
                \"createDateTime\": \"2025-06-01T08:30:00+10:00\",
                \"medicalEventDate\": \"2025-06-01\",
                \"medicalEventTime\": \"08:30:00+10:00\",
                \"submissionAuthorityInd\": \"Y\",
                //\"referralOverrideCode\": \"N\",
                \"referral\": {
                    \"issueDate\": \"2025-05-01\",
                    \"typeCode\": \"P\",
                    \"provider\": {
                        \"providerNumber\": \"2447781L\"
                    }
                },
                \"patient\": {
                    \"identity\": {
                        \"dateOfBirth\": \"1985-04-20\",
                        \"familyName\": \"Smith\",
                        \"givenName\": \"John\"
                    },
                    \"medicare\": {
                        \"memberNumber\": \"4951525561\",
                        \"memberRefNumber\": \"1\"
                    }
                },
                \"service\": [
                    {
                        \"id\": \"0001\",
                        \"itemNumber\": \"65120\",
                        \"chargeAmount\": \"15075\"
                        ,\"collectionDateTime\":\"2025-05-01T08:30:00+10:00\"
                        ,\"accessionDateTime\":\"2025-05-02T08:30:00+10:00\"
                        //,\"selfDeemedCode\": \"SD\",
                        //\"aftercareOverrideInd\": \"Y\",
                        //\"duplicateServiceOverrideInd\": \"Y\",
                        //\"multipleProcedureOverrideInd\": \"Y\",
                        //\"numberOfPatientsSeen\": \"2\",
                        //\"restrictiveOverrideCode\": \"NR\",
                        //\"timeDuration\":\"100\",
                        //\"lspNumber\":\"000014\",
                        ,\"scpId\": \"00001\"
                       // \"text\": \"text\",
                       ,\"rule3ExemptInd\":\"Y\"
                       //,\"s4b3ExemptInd\":\"Y\"
                       
                    },
                    {
                        \"id\": \"0002\",
                        \"itemNumber\": \"11704\",
                        \"chargeAmount\": \"15075\"
                        //,\"selfDeemedCode\": \"SD\"
                       //,\"rule3ExemptInd\":\"Y\"
                       //,\"s4b3ExemptInd\":\"Y\"
                       //,\"collectionDateTime\":\"2025-05-01T08:30:00+10:00\"
                       //,\"accessionDateTime\":\"2025-05-02T08:30:00+10:00\"
                        //,\"aftercareOverrideInd\": \"Y\",
                        //\"duplicateServiceOverrideInd\": \"Y\",
                        //\"multipleProcedureOverrideInd\": \"Y\",
                        //\"numberOfPatientsSeen\": \"2\",
                        //\"restrictiveOverrideCode\": \"NR\",
                        //\"timeDuration\":\"100\",
                        //\"lspNumber\":\"000014\",
                        //,\"scpId\":\"00001\"
                        //\"text\": \"text\"
                    }
                ]
            }
        ]
    }
}" as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/bulkbillstoreforward/pathology/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```