# Bulk Bill Claim - Specialist

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

## Specialist services claim

This is including Allied Health & Diagnostic services claim

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

- If referral is set and referral>Type Code is set to S or ‘D’ perform validation checks and continue processing. If referral is set and referral>Type Code is not set to S or D, an error will be returned and processing will stop.
    
- If Referral Override Code is set to either H, L, E or N, perform validation checks and continue processing. If Referral Override Code is not set to either H, L, E or N, an error will be returned and processing will stop.
    
- If Self Deemed Code is set to either SD or SS for at least one service per medical event, perform validation checks and continue processing. If Self Deemed Code is not set to either SD or SS for at least one service per medical event, 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-specialist

## OpenAPI Specification

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


        This is including Allied Health & Diagnostic services claim


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


        - If referral is set and referral>Type Code is set to S or ‘D’ perform
        validation checks and continue processing. If referral is set and
        referral>Type Code is not set to S or D, an error will be returned and
        processing will stop.
            
        - If Referral Override Code is set to either H, L, E or N, perform
        validation checks and continue processing. If Referral Override Code is
        not set to either H, L, E or N, an error will be returned and processing
        will stop.
            
        - If Self Deemed Code is set to either SD or SS for at least one service
        per medical event, perform validation checks and continue processing. If
        Self Deemed Code is not set to either SD or SS for at least one service
        per medical event, 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 - Specialist_Response_200
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                claim:
                  $ref: >-
                    #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaim
              required:
                - claim
servers:
  - url: https:/
components:
  schemas:
    MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity:
      type: object
      properties:
        givenName:
          type: string
        familyName:
          type: string
        dateOfBirth:
          type: string
          format: date
      required:
        - givenName
        - familyName
        - dateOfBirth
      title: >-
        MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity
    MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare:
      type: object
      properties:
        memberNumber:
          type: string
        memberRefNumber:
          type: string
      required:
        - memberNumber
        - memberRefNumber
      title: >-
        MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare
    MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient:
      type: object
      properties:
        identity:
          $ref: >-
            #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity
        medicare:
          $ref: >-
            #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare
      required:
        - identity
        - medicare
      title: >-
        MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient
    MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems:
      type: object
      properties:
        id:
          type: string
        text:
          type: string
        itemNumber:
          type: string
        chargeAmount:
          type: string
      required:
        - id
        - text
        - itemNumber
        - chargeAmount
      title: >-
        MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems
    MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider:
      type: object
      properties:
        providerNumber:
          type: string
      required:
        - providerNumber
      title: >-
        MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider
    MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral:
      type: object
      properties:
        provider:
          $ref: >-
            #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider
        typeCode:
          type: string
        issueDate:
          type: string
          format: date
        periodCode:
          type: string
      required:
        - provider
        - typeCode
        - issueDate
        - periodCode
      title: >-
        MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral
    MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems:
      type: object
      properties:
        id:
          type: string
        patient:
          $ref: >-
            #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient
        service:
          type: array
          items:
            $ref: >-
              #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems
        referral:
          $ref: >-
            #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral
        createDateTime:
          type: string
          format: date-time
        medicalEventDate:
          type: string
          format: date
        medicalEventTime:
          type: string
        authorisationDate:
          type: string
          format: date
        submissionAuthorityInd:
          type: string
      required:
        - id
        - patient
        - service
        - referral
        - createDateTime
        - medicalEventDate
        - medicalEventTime
        - authorisationDate
        - submissionAuthorityInd
      title: >-
        MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems
    MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider:
      type: object
      properties:
        providerNumber:
          type: string
      required:
        - providerNumber
      title: >-
        MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider
    MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaim:
      type: object
      properties:
        medicalEvent:
          type: array
          items:
            $ref: >-
              #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems
        serviceProvider:
          $ref: >-
            #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider
        serviceTypeCode:
          type: string
      required:
        - medicalEvent
        - serviceProvider
        - serviceTypeCode
      title: >-
        MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaim
    Advanced_Claiming_Bulk Bill Claim_Bulk Bill Claim - Specialist_Response_200:
      type: object
      properties:
        status:
          type: string
        claimId:
          type: string
        correlationId:
          type: string
      required:
        - status
        - claimId
        - correlationId
      title: >-
        Advanced_Claiming_Bulk Bill Claim_Bulk Bill Claim -
        Specialist_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

```

## SDK Code Examples

```python 5.1.2.1
import requests

url = "https://https/Medicare/bulkbillstoreforward/specialist/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.2.1
const url = 'https://https/Medicare/bulkbillstoreforward/specialist/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.2.1
package main

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

func main() {

	url := "https://https/Medicare/bulkbillstoreforward/specialist/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.2.1
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/bulkbillstoreforward/specialist/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.2.1
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp 5.1.2.1
using RestSharp;

var client = new RestClient("https://https/Medicare/bulkbillstoreforward/specialist/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.2.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/specialist/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 Success
import requests

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

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

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

print(response.json())
```

```javascript Success
const url = 'https://https/Medicare/bulkbillstoreforward/specialist/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 Success
package main

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

func main() {

	url := "https://https/Medicare/bulkbillstoreforward/specialist/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 Success
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/bulkbillstoreforward/specialist/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 Success
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp Success
using RestSharp;

var client = new RestClient("https://https/Medicare/bulkbillstoreforward/specialist/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 Success
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/specialist/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/specialist/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/specialist/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/specialist/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/specialist/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/specialist/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/specialist/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/specialist/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/specialist/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 2. Sepcialist
import requests

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

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

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

print(response.json())
```

```javascript 2. Sepcialist
const url = 'https://https/Medicare/bulkbillstoreforward/specialist/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 2. Sepcialist
package main

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

func main() {

	url := "https://https/Medicare/bulkbillstoreforward/specialist/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 2. Sepcialist
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/bulkbillstoreforward/specialist/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 2. Sepcialist
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp 2. Sepcialist
using RestSharp;

var client = new RestClient("https://https/Medicare/bulkbillstoreforward/specialist/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 2. Sepcialist
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/specialist/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 - Specialist_example
import requests

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

payload = { "claim": {
        "medicalEvent": [
            {
                "id": "01",
                "patient": {
                    "identity": {
                        "givenName": "John",
                        "familyName": "Smith",
                        "dateOfBirth": "1985-04-20"
                    },
                    "medicare": {
                        "memberNumber": "4951525561",
                        "memberRefNumber": "1"
                    }
                },
                "service": [
                    {
                        "id": "0001",
                        "text": "General Consultation",
                        "itemNumber": "64994",
                        "chargeAmount": "15075"
                    }
                ],
                "referral": {
                    "provider": { "providerNumber": "5458413W" },
                    "typeCode": "S",
                    "issueDate": "2025-05-15",
                    "periodCode": "S"
                },
                "createDateTime": "2025-06-01T08:30:00+10:00",
                "medicalEventDate": "2025-06-01",
                "medicalEventTime": "08:30:00+10:00",
                "authorisationDate": "2025-06-01",
                "submissionAuthorityInd": "Y"
            }
        ],
        "serviceProvider": { "providerNumber": "2447781L" },
        "serviceTypeCode": "S"
    } }
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 - Specialist_example
const url = 'https://https/Medicare/bulkbillstoreforward/specialist/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: '{"claim":{"medicalEvent":[{"id":"01","patient":{"identity":{"givenName":"John","familyName":"Smith","dateOfBirth":"1985-04-20"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"1"}},"service":[{"id":"0001","text":"General Consultation","itemNumber":"64994","chargeAmount":"15075"}],"referral":{"provider":{"providerNumber":"5458413W"},"typeCode":"S","issueDate":"2025-05-15","periodCode":"S"},"createDateTime":"2025-06-01T08:30:00+10:00","medicalEventDate":"2025-06-01","medicalEventTime":"08:30:00+10:00","authorisationDate":"2025-06-01","submissionAuthorityInd":"Y"}],"serviceProvider":{"providerNumber":"2447781L"},"serviceTypeCode":"S"}}'
};

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 - Specialist_example
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"claim\": {\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"patient\": {\n          \"identity\": {\n            \"givenName\": \"John\",\n            \"familyName\": \"Smith\",\n            \"dateOfBirth\": \"1985-04-20\"\n          },\n          \"medicare\": {\n            \"memberNumber\": \"4951525561\",\n            \"memberRefNumber\": \"1\"\n          }\n        },\n        \"service\": [\n          {\n            \"id\": \"0001\",\n            \"text\": \"General Consultation\",\n            \"itemNumber\": \"64994\",\n            \"chargeAmount\": \"15075\"\n          }\n        ],\n        \"referral\": {\n          \"provider\": {\n            \"providerNumber\": \"5458413W\"\n          },\n          \"typeCode\": \"S\",\n          \"issueDate\": \"2025-05-15\",\n          \"periodCode\": \"S\"\n        },\n        \"createDateTime\": \"2025-06-01T08:30:00+10:00\",\n        \"medicalEventDate\": \"2025-06-01\",\n        \"medicalEventTime\": \"08:30:00+10:00\",\n        \"authorisationDate\": \"2025-06-01\",\n        \"submissionAuthorityInd\": \"Y\"\n      }\n    ],\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"serviceTypeCode\": \"S\"\n  }\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 - Specialist_example
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/bulkbillstoreforward/specialist/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 = "{\n  \"claim\": {\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"patient\": {\n          \"identity\": {\n            \"givenName\": \"John\",\n            \"familyName\": \"Smith\",\n            \"dateOfBirth\": \"1985-04-20\"\n          },\n          \"medicare\": {\n            \"memberNumber\": \"4951525561\",\n            \"memberRefNumber\": \"1\"\n          }\n        },\n        \"service\": [\n          {\n            \"id\": \"0001\",\n            \"text\": \"General Consultation\",\n            \"itemNumber\": \"64994\",\n            \"chargeAmount\": \"15075\"\n          }\n        ],\n        \"referral\": {\n          \"provider\": {\n            \"providerNumber\": \"5458413W\"\n          },\n          \"typeCode\": \"S\",\n          \"issueDate\": \"2025-05-15\",\n          \"periodCode\": \"S\"\n        },\n        \"createDateTime\": \"2025-06-01T08:30:00+10:00\",\n        \"medicalEventDate\": \"2025-06-01\",\n        \"medicalEventTime\": \"08:30:00+10:00\",\n        \"authorisationDate\": \"2025-06-01\",\n        \"submissionAuthorityInd\": \"Y\"\n      }\n    ],\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"serviceTypeCode\": \"S\"\n  }\n}"

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

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

HttpResponse<String> response = Unirest.post("https://https/Medicare/bulkbillstoreforward/specialist/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"claim\": {\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"patient\": {\n          \"identity\": {\n            \"givenName\": \"John\",\n            \"familyName\": \"Smith\",\n            \"dateOfBirth\": \"1985-04-20\"\n          },\n          \"medicare\": {\n            \"memberNumber\": \"4951525561\",\n            \"memberRefNumber\": \"1\"\n          }\n        },\n        \"service\": [\n          {\n            \"id\": \"0001\",\n            \"text\": \"General Consultation\",\n            \"itemNumber\": \"64994\",\n            \"chargeAmount\": \"15075\"\n          }\n        ],\n        \"referral\": {\n          \"provider\": {\n            \"providerNumber\": \"5458413W\"\n          },\n          \"typeCode\": \"S\",\n          \"issueDate\": \"2025-05-15\",\n          \"periodCode\": \"S\"\n        },\n        \"createDateTime\": \"2025-06-01T08:30:00+10:00\",\n        \"medicalEventDate\": \"2025-06-01\",\n        \"medicalEventTime\": \"08:30:00+10:00\",\n        \"authorisationDate\": \"2025-06-01\",\n        \"submissionAuthorityInd\": \"Y\"\n      }\n    ],\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"serviceTypeCode\": \"S\"\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/bulkbillstoreforward/specialist/v1', [
  'body' => '{
  "claim": {
    "medicalEvent": [
      {
        "id": "01",
        "patient": {
          "identity": {
            "givenName": "John",
            "familyName": "Smith",
            "dateOfBirth": "1985-04-20"
          },
          "medicare": {
            "memberNumber": "4951525561",
            "memberRefNumber": "1"
          }
        },
        "service": [
          {
            "id": "0001",
            "text": "General Consultation",
            "itemNumber": "64994",
            "chargeAmount": "15075"
          }
        ],
        "referral": {
          "provider": {
            "providerNumber": "5458413W"
          },
          "typeCode": "S",
          "issueDate": "2025-05-15",
          "periodCode": "S"
        },
        "createDateTime": "2025-06-01T08:30:00+10:00",
        "medicalEventDate": "2025-06-01",
        "medicalEventTime": "08:30:00+10:00",
        "authorisationDate": "2025-06-01",
        "submissionAuthorityInd": "Y"
      }
    ],
    "serviceProvider": {
      "providerNumber": "2447781L"
    },
    "serviceTypeCode": "S"
  }
}',
  '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 - Specialist_example
using RestSharp;

var client = new RestClient("https://https/Medicare/bulkbillstoreforward/specialist/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", "{\n  \"claim\": {\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"patient\": {\n          \"identity\": {\n            \"givenName\": \"John\",\n            \"familyName\": \"Smith\",\n            \"dateOfBirth\": \"1985-04-20\"\n          },\n          \"medicare\": {\n            \"memberNumber\": \"4951525561\",\n            \"memberRefNumber\": \"1\"\n          }\n        },\n        \"service\": [\n          {\n            \"id\": \"0001\",\n            \"text\": \"General Consultation\",\n            \"itemNumber\": \"64994\",\n            \"chargeAmount\": \"15075\"\n          }\n        ],\n        \"referral\": {\n          \"provider\": {\n            \"providerNumber\": \"5458413W\"\n          },\n          \"typeCode\": \"S\",\n          \"issueDate\": \"2025-05-15\",\n          \"periodCode\": \"S\"\n        },\n        \"createDateTime\": \"2025-06-01T08:30:00+10:00\",\n        \"medicalEventDate\": \"2025-06-01\",\n        \"medicalEventTime\": \"08:30:00+10:00\",\n        \"authorisationDate\": \"2025-06-01\",\n        \"submissionAuthorityInd\": \"Y\"\n      }\n    ],\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"serviceTypeCode\": \"S\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

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

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["claim": [
    "medicalEvent": [
      [
        "id": "01",
        "patient": [
          "identity": [
            "givenName": "John",
            "familyName": "Smith",
            "dateOfBirth": "1985-04-20"
          ],
          "medicare": [
            "memberNumber": "4951525561",
            "memberRefNumber": "1"
          ]
        ],
        "service": [
          [
            "id": "0001",
            "text": "General Consultation",
            "itemNumber": "64994",
            "chargeAmount": "15075"
          ]
        ],
        "referral": [
          "provider": ["providerNumber": "5458413W"],
          "typeCode": "S",
          "issueDate": "2025-05-15",
          "periodCode": "S"
        ],
        "createDateTime": "2025-06-01T08:30:00+10:00",
        "medicalEventDate": "2025-06-01",
        "medicalEventTime": "08:30:00+10:00",
        "authorisationDate": "2025-06-01",
        "submissionAuthorityInd": "Y"
      ]
    ],
    "serviceProvider": ["providerNumber": "2447781L"],
    "serviceTypeCode": "S"
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/bulkbillstoreforward/specialist/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()
```