API browser of generalInvoiceRequest500 COM module


/images/arrow_right.png IGeneralInvoiceResult::GetXtraHospital method space
Gets the additional treatment parameters requested if eRoleType=enRoleHospital and/or ePlaceType=enPlaceHospital.
 
VARIANT_FALSE is returned if the data are not defined.
space
/images/arrow_right.png Restful webservice calling syntax
[POST] /baseURL/IGeneralInvoiceResult/GetXtraHospital
[JSON input data] pIGeneralInvoiceResult: longValue,    //interface address
[JSON result data] peTreatmentType:
pdDateHospitalization:
plTreatmentDays:
peHospitalizationType:
peHospitalizationMode:
peHospitalizationClass:
peHospitalAdmissionType:
peResidenceBeforeAdmission:
peHospitalDischargeType:
peResidenceAfterDischarge:
peHospitalProviderType:
pbstrSectionMajor:
peHasExpenseLoading:
pbstrHPSG:
pbStatus:
longValue,
"stringISODateValue",
longValue,
longValue,
longValue,
longValue,
longValue,
longValue,
longValue,
longValue,
longValue,
"utf8StringValue",
longValue,
"utf8StringValue",
booleanValue
 
[HTTP result status] 200 Return status 200 signals a successful method call
204 Return status 204 (noContent) signals that the end of an iteration is reached
>= 400 Return status >= 400 signals an unsuccessful function call. The returned JSON{errorCode: code, errorText:"text"} supplies the error message the same as GetAbortInfo() would do.
space
/images/arrow_right.png C/C++ calling syntax
HRESULT GetXtraHospital( TreatmentType
DATE
long
HospitalizationType
HospitalizationMode
HospitalizationClass
HospitalAdmissionType
ResidenceBeforeAdmission
HospitalDischargeType
ResidenceAfterDischarge
HospitalProviderType
BSTR
YesNoType
BSTR
VARIANT_BOOL
*peTreatmentType,
*pdDateHospitalization,
*plTreatmentDays,
*peHospitalizationType,
*peHospitalizationMode,
*peHospitalizationClass,
*peHospitalAdmissionType,
*peResidenceBeforeAdmission,
*peHospitalDischargeType,
*peResidenceAfterDischarge,
*peHospitalProviderType,
*pbstrSectionMajor,
*peHasExpenseLoading,
*pbstrHPSG,
*pbStatus);
[C/C++ return value] S_OK This value is returned if the function call was successful.
S_FALSE This value is returned if the end of an iteration is reached
E_name This value is returned if the function call was unsuccessful and an error exception was generated. Note that if you are using SmartPointers an exception is thrown under these conditions.
space
/images/arrow_right.png Calling argument description
[out] TreatmentType *peTreatmentType The treatment type (ambulatory or stationary) given by the TreatmentType enumeration
 
Please note that if eTreatmentType = enAmbulatory, then most of the variables below are meaningless and will not be used/written in the produced XML infoset.
[out] DATE *pdDateHospitalization dDateHospitalization is the date and time of the hospitalization. This information is meaningless in the ambulatory case and should be ignored!
 
Note, that this date must be less or equal the dDateBegin of the treatment period set in IGeneralInvoiceRequest::SetTreatment method.
 
The data of this variable is meaningless for eTreatmentType = enAmbulatory cases and should be ignored!
[out] long *plTreatmentDays lTreatmentDays is the number of treatment days within the given treatment period. This information is meaningless in the ambulatory case and should be ignored!
 
The calculation of the treatment days is dependent on whether SwissDRG is used nor not!
The treatment days are calculated as
  • Non-SwissDRG: «(treatment@date_end - treatment@date_begin + 1 - vacation_days)»
  • SwissDRG: «(treatment@date_end - treatment@date_begin - vacation_days)»
where vacation_days is the number of vacation days (the leave days when the patient was not in the hospital for treatment).
 
The data of this variable is meaningless for eTreatmentType = enAmbulatory cases and should be ignored!
[out] HospitalizationType *peHospitalizationType The type/reason of hospitalization given by the HospitalizationType enumeration
[out] HospitalizationMode *peHospitalizationMode The mode/indication of hospitalization given by the HospitalizationMode enumeration.
[out] HospitalizationClass *peHospitalizationClass The hospitalization class given by the HospitalizationClass enumeration.
[out] HospitalAdmissionType *peHospitalAdmissionType The hospital admission type defines the DRG grouper relevant admission reasons into the hospital encoded by the HospitalAdmissionType enumeration
 
The data of this variable is meaningless for eTreatmentType = enAmbulatory cases and should be ignored!
[out] ResidenceBeforeAdmission *peResidenceBeforeAdmission The residence before admission defines the DRG grouper relevant admission location where the patient stayed before admission, encoded by the ResidenceBeforeAdmission enumeration
 
The data of this variable is meaningless for eTreatmentType = enAmbulatory cases and should be ignored!
[out] HospitalDischargeType *peHospitalDischargeType The hospital discharge type defines the DRG grouper relevant discharge reasons out from hospital encoded by the HospitalDischargeType enumeration
 
The data of this variable is meaningless for eTreatmentType = enAmbulatory cases and should be ignored!
[out] ResidenceAfterDischarge *peResidenceAfterDischarge The residence after discharge defines the DRG grouper relevant location where the patient is going to, encoded by the ResidenceAfterDischarge enumeration
 
The data of this variable is meaningless for eTreatmentType = enAmbulatory cases and should be ignored!
[out] HospitalProviderType *peHospitalProviderType The hospital provider Type defines the DRG grouper relevant provider types, encoded by the HospitalProviderType enumeration
 
The data of this variable is meaningless for eTreatmentType = enAmbulatory cases and should be ignored!
[out] BSTR *pbstrSectionMajor The major BfS section code as defined by Swiss Federal Statistical Office
[out] YesNoType *peHasExpenseLoading The Boolean eHasExpenseLoading defines if there is an expense loading by the patient ("Spitalkostenbeitrag").
 
The data of this variable is meaningless for eTreatmentType = enAmbulatory cases and should be ignored!
[out] BSTR *pbstrHPSG The HPSG is used to define a so-called "Hospital Planning Service Group" if the underlaying tariff contract stipulates the need for such an HPSG code.
 
The data of this variable is meaningless for eTreatmentType = enAmbulatory cases and should be ignored!
[out,retval] VARIANT_BOOL *pbStatus Return status of the method. If pbStatus is VARIANT_FALSE the data are undefined
space