Tedavisi tamamlanmış kişinin geri ödemesinin yapılabilmesi için belgelendirilmesini sağlayan iş olurturma metodu.
HealthFacilityServiceClient serviceClient = new HealthFacilityServiceClient();
HealthFacilityInvoiceAddRequest request = new HealthFacilityInvoiceAddRequest
{
ApplicationId = new Guid("5FE6D7E1-8F17-4D42-B58B-D35850EC12B0"),
SessionId = new Guid("C81D9601-4A46-44F8-97BE-743835861C34"),
MachineName = "TESTPC01",
RequestIP = "82.222.173.2",
ServiceRequestType = ServiceRequestTypes.ExternalApplications,
InvoiceDateTime = new DateTime(2015, 12, 1),
EpisodeReferenceNumber = "B_9999",
InvoiceReferenceNumber = "A123456789",
InvoiceFollowUpDischargeModels = new[] { new InvoiceFollowUpDischargeModel
{
FollowUpNumber = "T_9999",
DischargeCode = "0",
ProtocolNumber = "123456789"
} },
HealthFacilityDocumentAddModels = new[] { new HealthFacilityDocumentAddModel
{
UploadPath = "C:\Documents\Fatura.pdf",
DocumentTypeCode = "F",
BinaryData = File.ReadAllBytes("C:\Documents\Fatura.pdf")
Description = "",
} }
};
UserJobSaveResult userJobSaveResult = serviceClient.AddAsynchronousHealthFacilityInvoice(request);
serviceClient.Close();
| Veri Alanı | Veri Tipi | Zorunluluk | Açıklama |
|---|---|---|---|
| ApplicationId | Guid | Zorunlu | Medigap Ayaktan, Yatan Hasta Provizyon Sistemi için gönderilecek tanımlayıcıdır. Sabittir, Sağlık Tesisine göre değişmez. |
| SessionId | Guid | Zorunlu | Oturum biletidir. |
| MachineName | string | Zorunlu | İsteğin yapıldığı sunucu ya da istemci adıdır. İz kaydı yapılırken kullanılacaktır. |
| RequestIP | String | Zorunlu | Sağlık Tesisinin internet çıkış IP adresidir. Gelen istek gönderilen IP adresi uyuşmaz ise istek kabul edilmeyecektir. |
| ServiceRequestType | ServiceRequestTypes | Zorunlu | Yapılan isteğin tipini belirtir. Gönderilecek değer aşağıdaki gibi olmalıdır. ServiceRequestTypes.ExternalApplications |
| InvoiceDateTime | DateTime | Zorunlu | Fatura Tarihi |
| InvoiceReferenceNumber | String | Zorunlu | Fatura Referans Numarası |
| EpisodeReferenceNumber | String | Zorunlu | Başvuru Numarası |
| RequestedTotalPrice | Decimal | Opsiyonel | Gönderilen faturanın hesaplanan Toplam Tutarı ile eşit değilse eklenmesini engeller. KDV dahildir. |
| InvoiceFollowUpDischargeModels | InvoiceFollowUpDischargeModel[] | Zorunlu | Takiplere ait taburcu bilgileri gönderilir. bkz. InvoiceFollowUpDischargeModel |
| HealthFacilityDocumentAddModels | HealthFacilityDocumentAddModel[] | Zorunlu | Dokümanlar bkz. HealthFacilityDocumentAddModel |
| Veri Alanı | Veri Tipi | Zorunluluk | Açıklama |
|---|---|---|---|
| Code | Int32 | Zorunlu | Sonuç Kodu bkz. Sonuç Kodları Tablosu |
| Message | String | Zorunlu | Sonuç Mesajı bkz. Sonuç Kodları Tablosu |
| UserJobId | Guid | Zorunlu | Hizmet Kartı Ekleme işine ait üretilen Id. İşin durumu bu Id ile kontrol edilecektir. |
| Veri Alanı | Veri Tipi | Zorunluluk | Açıklama |
|---|---|---|---|
| FollowUpNumber | String | Zorunlu | Takip Numarası |
| ProtocolNumber | String | Zorunlu | Hastane Protokol Numarası |
| DischargeCode | String | Zorunlu |
Taburcu Kodu. Değerleri aşağıdaki gibidir.
|
| DischargeDescription | String | Zorunlu | Taburcu Açıklaması |