@icure/be-fhc-api 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.swagger-codegen/VERSION +1 -1
- package/api/fhcHubApi.ts +16 -4
- package/api/fhcRecipeApi.ts +80 -51
- package/api/fhcRnConsultApi.ts +227 -0
- package/api/fhcStsApi.ts +33 -0
- package/api/fhcVaccinnetApi.ts +198 -0
- package/dist/api/fhcHubApi.d.ts +6 -2
- package/dist/api/fhcHubApi.js +12 -4
- package/dist/api/fhcRecipeApi.d.ts +25 -15
- package/dist/api/fhcRecipeApi.js +61 -39
- package/dist/api/fhcRnConsultApi.d.ts +82 -0
- package/dist/api/fhcRnConsultApi.js +167 -0
- package/dist/api/fhcStsApi.d.ts +11 -0
- package/dist/api/fhcStsApi.js +24 -0
- package/dist/api/fhcVaccinnetApi.d.ts +69 -0
- package/dist/api/fhcVaccinnetApi.js +146 -0
- package/dist/fhcApi.d.ts +2 -0
- package/dist/fhcApi.js +2 -0
- package/dist/model/ActType.d.ts +16 -0
- package/dist/model/ActType.js +20 -0
- package/dist/model/AddVaccinationsResponseType.d.ts +19 -0
- package/dist/model/AddVaccinationsResponseType.js +9 -0
- package/dist/model/Address.d.ts +9 -5
- package/dist/model/Address.js +5 -1
- package/dist/model/AddressBaseType.d.ts +23 -0
- package/dist/model/AddressBaseType.js +9 -0
- package/dist/model/AddressCbssBaseType.d.ts +16 -0
- package/dist/model/AddressCbssBaseType.js +9 -0
- package/dist/model/AddressDeclarationType.d.ts +16 -0
- package/dist/model/AddressDeclarationType.js +9 -0
- package/dist/model/AdministratorBaseType.d.ts +19 -0
- package/dist/model/AdministratorBaseType.js +9 -0
- package/dist/model/AnomaliesType.d.ts +15 -0
- package/dist/model/AnomaliesType.js +20 -0
- package/dist/model/Appendix.d.ts +2 -2
- package/dist/model/Base64EncodedKmehr.d.ts +15 -0
- package/dist/model/Base64EncodedKmehr.js +21 -0
- package/dist/model/BestIdentifierType.d.ts +17 -0
- package/dist/model/BestIdentifierType.js +20 -0
- package/dist/model/BirthInfoBaseType.d.ts +19 -0
- package/dist/model/BirthInfoBaseType.js +9 -0
- package/dist/model/BirthInfoDeclarationType.d.ts +17 -0
- package/dist/model/BirthInfoDeclarationType.js +9 -0
- package/dist/model/BirthPlace.d.ts +3 -1
- package/dist/model/CDHEADING.d.ts +5 -5
- package/dist/model/CDITEM.d.ts +30 -30
- package/dist/model/CbssPersonRequestType.d.ts +30 -0
- package/dist/model/CbssPersonRequestType.js +9 -0
- package/dist/model/CbssPersonResponseType.d.ts +35 -0
- package/dist/model/CbssPersonResponseType.js +9 -0
- package/dist/model/CivilStateInfoBaseType.d.ts +26 -0
- package/dist/model/CivilStateInfoBaseType.js +9 -0
- package/dist/model/CivilStateInfoDeclarationType.d.ts +20 -0
- package/dist/model/CivilStateInfoDeclarationType.js +9 -0
- package/dist/model/CivilStatesBaseType.d.ts +16 -0
- package/dist/model/CivilStatesBaseType.js +9 -0
- package/dist/model/CivilStatesDeclarationType.d.ts +16 -0
- package/dist/model/CivilStatesDeclarationType.js +9 -0
- package/dist/model/ContactAddress.d.ts +22 -0
- package/dist/model/ContactAddress.js +20 -0
- package/dist/model/ContactAddressBaseType.d.ts +34 -0
- package/dist/model/ContactAddressBaseType.js +9 -0
- package/dist/model/ContactAddressDeclarationType.d.ts +28 -0
- package/dist/model/ContactAddressDeclarationType.js +9 -0
- package/dist/model/DeceaseInfoBaseType.d.ts +17 -0
- package/dist/model/DeceaseInfoBaseType.js +9 -0
- package/dist/model/DeceaseInfoDeclarationType.d.ts +17 -0
- package/dist/model/DeceaseInfoDeclarationType.js +9 -0
- package/dist/model/DiplomaticPostType.d.ts +6 -5
- package/dist/model/Exception.d.ts +21 -0
- package/dist/model/Exception.js +9 -0
- package/dist/model/ExistingPersons.d.ts +15 -0
- package/dist/model/ExistingPersons.js +20 -0
- package/dist/model/FacetDto.d.ts +1 -1
- package/dist/model/ForeignAddressDeclarationType.d.ts +24 -0
- package/dist/model/ForeignAddressDeclarationType.js +9 -0
- package/dist/model/GenderInfoBaseType.d.ts +16 -0
- package/dist/model/GenderInfoBaseType.js +20 -0
- package/dist/model/GenderInfoDeclarationType.d.ts +16 -0
- package/dist/model/GenderInfoDeclarationType.js +20 -0
- package/dist/model/GetPrescriptionStatusResult.d.ts +30 -0
- package/dist/model/GetPrescriptionStatusResult.js +19 -0
- package/dist/model/GetVaccinationsResponseType.d.ts +19 -0
- package/dist/model/GetVaccinationsResponseType.js +9 -0
- package/dist/model/GivenNameType.d.ts +16 -0
- package/dist/model/GivenNameType.js +20 -0
- package/dist/model/Id.d.ts +16 -0
- package/dist/model/Id.js +20 -0
- package/dist/model/InvoiceItem.d.ts +1 -0
- package/dist/model/JudgmentType.d.ts +17 -0
- package/dist/model/JudgmentType.js +9 -0
- package/dist/model/Kmehrmessage.d.ts +12 -4
- package/dist/model/LegalCohabitationBaseType.d.ts +19 -0
- package/dist/model/LegalCohabitationBaseType.js +9 -0
- package/dist/model/LegalCohabitationRegistrationType.d.ts +19 -0
- package/dist/model/LegalCohabitationRegistrationType.js +9 -0
- package/dist/model/LocalizedDescriptionType.d.ts +16 -0
- package/dist/model/LocalizedDescriptionType.js +20 -0
- package/dist/model/LocationDeclarationType.d.ts +20 -0
- package/dist/model/LocationDeclarationType.js +9 -0
- package/dist/model/LocationType.d.ts +20 -0
- package/dist/model/LocationType.js +9 -0
- package/dist/model/MinimalAddressType.d.ts +23 -0
- package/dist/model/MinimalAddressType.js +9 -0
- package/dist/model/MinimalAdministratorType.d.ts +19 -0
- package/dist/model/MinimalAdministratorType.js +9 -0
- package/dist/model/MinimalBirthInfoType.d.ts +15 -0
- package/dist/model/MinimalBirthInfoType.js +20 -0
- package/dist/model/MinimalGenderInfoType.d.ts +16 -0
- package/dist/model/MinimalGenderInfoType.js +20 -0
- package/dist/model/MinimalNameInfoType.d.ts +18 -0
- package/dist/model/MinimalNameInfoType.js +9 -0
- package/dist/model/MycarenetConversation.d.ts +1 -0
- package/dist/model/NameInfoBaseType.d.ts +18 -0
- package/dist/model/NameInfoBaseType.js +9 -0
- package/dist/model/NameInfoDeclarationType.d.ts +18 -0
- package/dist/model/NameInfoDeclarationType.js +9 -0
- package/dist/model/NationalitiesBaseType.d.ts +16 -0
- package/dist/model/NationalitiesBaseType.js +9 -0
- package/dist/model/NationalitiesDeclarationType.d.ts +16 -0
- package/dist/model/NationalitiesDeclarationType.js +9 -0
- package/dist/model/NationalityInfoBaseType.d.ts +17 -0
- package/dist/model/NationalityInfoBaseType.js +20 -0
- package/dist/model/NobilityTitleBaseType.d.ts +17 -0
- package/dist/model/NobilityTitleBaseType.js +20 -0
- package/dist/model/PartnerType.d.ts +3 -4
- package/dist/model/Patient.d.ts +6 -2
- package/dist/model/Patient.js +6 -2
- package/dist/model/PersonIdentificationType.d.ts +31 -0
- package/dist/model/PersonIdentificationType.js +9 -0
- package/dist/model/PersonIdentificationsResponseType.d.ts +16 -0
- package/dist/model/PersonIdentificationsResponseType.js +9 -0
- package/dist/model/PersonResponseResultsType.d.ts +16 -0
- package/dist/model/PersonResponseResultsType.js +9 -0
- package/dist/model/PlainAddressOptionalInceptionDateType.d.ts +20 -0
- package/dist/model/PlainAddressOptionalInceptionDateType.js +9 -0
- package/dist/model/PlainAddressType.d.ts +20 -0
- package/dist/model/PlainAddressType.js +9 -0
- package/dist/model/Posology.d.ts +6 -0
- package/dist/model/Prescription.d.ts +1 -0
- package/dist/model/PrescriptionFullWithFeedback.d.ts +1 -0
- package/dist/model/PutVisionResult.d.ts +17 -0
- package/dist/model/PutVisionResult.js +9 -0
- package/dist/model/RecipeCDHEADING.d.ts +5 -5
- package/dist/model/RecipeCDITEM.d.ts +30 -30
- package/dist/model/RecipeKmehrmessageType.d.ts +18 -0
- package/dist/model/RecipeKmehrmessageType.js +9 -0
- package/dist/model/RecipePosology.d.ts +16 -0
- package/dist/model/RecipePosology.js +9 -0
- package/dist/model/RecipeRegimen.d.ts +15 -0
- package/dist/model/RecipeRegimen.js +20 -0
- package/dist/model/RecipeitemType.d.ts +4 -4
- package/dist/model/RegisterPersonDeclarationType.d.ts +16 -0
- package/dist/model/RegisterPersonDeclarationType.js +9 -0
- package/dist/model/RegisterPersonResultType.d.ts +18 -0
- package/dist/model/RegisterPersonResultType.js +9 -0
- package/dist/model/RegistrationBailiffType.d.ts +17 -0
- package/dist/model/RegistrationBailiffType.js +9 -0
- package/dist/model/RemoveVaccinationResponseType.d.ts +18 -0
- package/dist/model/RemoveVaccinationResponseType.js +9 -0
- package/dist/model/ResidentialAddress.d.ts +22 -0
- package/dist/model/ResidentialAddress.js +20 -0
- package/dist/model/ResidentialAddressOptionalInceptionDateType.d.ts +32 -0
- package/dist/model/ResidentialAddressOptionalInceptionDateType.js +9 -0
- package/dist/model/ResidentialAddressType.d.ts +32 -0
- package/dist/model/ResidentialAddressType.js +9 -0
- package/dist/model/Results.d.ts +20 -0
- package/dist/model/Results.js +9 -0
- package/dist/model/RnConsultConversationDto.d.ts +16 -0
- package/dist/model/RnConsultConversationDto.js +20 -0
- package/dist/model/RnConsultDeceaseType.d.ts +18 -0
- package/dist/model/RnConsultDeceaseType.js +9 -0
- package/dist/model/RnConsultNameType.d.ts +17 -0
- package/dist/model/RnConsultNameType.js +20 -0
- package/dist/model/RnConsultPersonDto.d.ts +43 -0
- package/dist/model/RnConsultPersonDto.js +9 -0
- package/dist/model/RnConsultPersonMid.d.ts +27 -0
- package/dist/model/RnConsultPersonMid.js +9 -0
- package/dist/model/RnConsultRegisterPersonResponseDto.d.ts +27 -0
- package/dist/model/RnConsultRegisterPersonResponseDto.js +9 -0
- package/dist/model/RnConsultSearchByNissResultDto.d.ts +16 -0
- package/dist/model/RnConsultSearchByNissResultDto.js +9 -0
- package/dist/model/RnConsultSearchPersonBySsinResponseDto.d.ts +27 -0
- package/dist/model/RnConsultSearchPersonBySsinResponseDto.js +9 -0
- package/dist/model/RnConsultSearchPersonPhoneticallyResponseDto.d.ts +25 -0
- package/dist/model/RnConsultSearchPersonPhoneticallyResponseDto.js +9 -0
- package/dist/model/SpecialNotionType.d.ts +16 -0
- package/dist/model/SpecialNotionType.js +20 -0
- package/dist/model/SsinWithCanceledAndReplacesStatusType.d.ts +17 -0
- package/dist/model/SsinWithCanceledAndReplacesStatusType.js +20 -0
- package/dist/model/StackTraceElement.d.ts +19 -0
- package/dist/model/StackTraceElement.js +20 -0
- package/dist/model/StatusType.d.ts +20 -0
- package/dist/model/StatusType.js +9 -0
- package/dist/model/SubregisterBaseType.d.ts +18 -0
- package/dist/model/SubregisterBaseType.js +9 -0
- package/dist/model/Throwable.d.ts +20 -0
- package/dist/model/Throwable.js +9 -0
- package/dist/model/TokenResponse.d.ts +14 -0
- package/dist/model/TokenResponse.js +20 -0
- package/dist/model/TranscriptionType.d.ts +17 -0
- package/dist/model/TranscriptionType.js +9 -0
- package/dist/model/UpdateFeedbackFlagResult.d.ts +17 -0
- package/dist/model/UpdateFeedbackFlagResult.js +9 -0
- package/dist/model/VaccinationId.d.ts +16 -0
- package/dist/model/VaccinationId.js +20 -0
- package/dist/model/VaccinationStatusType.d.ts +16 -0
- package/dist/model/VaccinationStatusType.js +20 -0
- package/dist/model/VaccineInjection.d.ts +18 -0
- package/dist/model/VaccineInjection.js +20 -0
- package/dist/model/ValidationInfoType.d.ts +17 -0
- package/dist/model/ValidationInfoType.js +20 -0
- package/dist/model/ValidationResult.d.ts +20 -0
- package/dist/model/ValidationResult.js +9 -0
- package/dist/model/VerifyIdResponse.d.ts +21 -0
- package/dist/model/VerifyIdResponse.js +9 -0
- package/dist/model/models.d.ts +89 -0
- package/dist/model/models.js +89 -0
- package/fhcApi.ts +2 -0
- package/model/ActType.ts +22 -0
- package/model/AddVaccinationsResponseType.ts +25 -0
- package/model/Address.ts +13 -5
- package/model/AddressBaseType.ts +29 -0
- package/model/AddressCbssBaseType.ts +22 -0
- package/model/AddressDeclarationType.ts +22 -0
- package/model/AdministratorBaseType.ts +25 -0
- package/model/AnomaliesType.ts +21 -0
- package/model/Appendix.ts +2 -2
- package/model/Base64EncodedKmehr.ts +25 -0
- package/model/BestIdentifierType.ts +23 -0
- package/model/BirthInfoBaseType.ts +25 -0
- package/model/BirthInfoDeclarationType.ts +23 -0
- package/model/BirthPlace.ts +3 -1
- package/model/CbssPersonRequestType.ts +36 -0
- package/model/CbssPersonResponseType.ts +41 -0
- package/model/CivilStateInfoBaseType.ts +32 -0
- package/model/CivilStateInfoDeclarationType.ts +26 -0
- package/model/CivilStatesBaseType.ts +22 -0
- package/model/CivilStatesDeclarationType.ts +22 -0
- package/model/ContactAddress.ts +28 -0
- package/model/ContactAddressBaseType.ts +40 -0
- package/model/ContactAddressDeclarationType.ts +34 -0
- package/model/DeceaseInfoBaseType.ts +23 -0
- package/model/DeceaseInfoDeclarationType.ts +23 -0
- package/model/DiplomaticPostType.ts +6 -5
- package/model/Exception.ts +27 -0
- package/model/ExistingPersons.ts +21 -0
- package/model/FacetDto.ts +1 -1
- package/model/ForeignAddressDeclarationType.ts +30 -0
- package/model/GenderInfoBaseType.ts +22 -0
- package/model/GenderInfoDeclarationType.ts +22 -0
- package/model/GetPrescriptionStatusResult.ts +42 -0
- package/model/GetVaccinationsResponseType.ts +25 -0
- package/model/GivenNameType.ts +22 -0
- package/model/Id.ts +22 -0
- package/model/InvoiceItem.ts +1 -0
- package/model/JudgmentType.ts +23 -0
- package/model/Kmehrmessage.ts +12 -4
- package/model/LegalCohabitationBaseType.ts +25 -0
- package/model/LegalCohabitationRegistrationType.ts +25 -0
- package/model/LocalizedDescriptionType.ts +22 -0
- package/model/LocationDeclarationType.ts +26 -0
- package/model/LocationType.ts +26 -0
- package/model/MinimalAddressType.ts +29 -0
- package/model/MinimalAdministratorType.ts +25 -0
- package/model/MinimalBirthInfoType.ts +21 -0
- package/model/MinimalGenderInfoType.ts +22 -0
- package/model/MinimalNameInfoType.ts +24 -0
- package/model/MycarenetConversation.ts +1 -0
- package/model/NameInfoBaseType.ts +24 -0
- package/model/NameInfoDeclarationType.ts +24 -0
- package/model/NationalitiesBaseType.ts +22 -0
- package/model/NationalitiesDeclarationType.ts +22 -0
- package/model/NationalityInfoBaseType.ts +23 -0
- package/model/NobilityTitleBaseType.ts +23 -0
- package/model/PartnerType.ts +3 -4
- package/model/Patient.ts +11 -3
- package/model/PersonIdentificationType.ts +37 -0
- package/model/PersonIdentificationsResponseType.ts +22 -0
- package/model/PersonResponseResultsType.ts +22 -0
- package/model/PlainAddressOptionalInceptionDateType.ts +26 -0
- package/model/PlainAddressType.ts +26 -0
- package/model/Posology.ts +6 -0
- package/model/Prescription.ts +1 -0
- package/model/PrescriptionFullWithFeedback.ts +1 -0
- package/model/PutVisionResult.ts +23 -0
- package/model/RecipeKmehrmessageType.ts +24 -0
- package/model/RecipePosology.ts +22 -0
- package/model/RecipeRegimen.ts +21 -0
- package/model/RecipeitemType.ts +4 -4
- package/model/RegisterPersonDeclarationType.ts +22 -0
- package/model/RegisterPersonResultType.ts +24 -0
- package/model/RegistrationBailiffType.ts +23 -0
- package/model/RemoveVaccinationResponseType.ts +24 -0
- package/model/ResidentialAddress.ts +28 -0
- package/model/ResidentialAddressOptionalInceptionDateType.ts +38 -0
- package/model/ResidentialAddressType.ts +38 -0
- package/model/Results.ts +26 -0
- package/model/RnConsultConversationDto.ts +22 -0
- package/model/RnConsultDeceaseType.ts +24 -0
- package/model/RnConsultNameType.ts +23 -0
- package/model/RnConsultPersonDto.ts +49 -0
- package/model/RnConsultPersonMid.ts +33 -0
- package/model/RnConsultRegisterPersonResponseDto.ts +33 -0
- package/model/RnConsultSearchByNissResultDto.ts +22 -0
- package/model/RnConsultSearchPersonBySsinResponseDto.ts +33 -0
- package/model/RnConsultSearchPersonPhoneticallyResponseDto.ts +31 -0
- package/model/SpecialNotionType.ts +22 -0
- package/model/SsinWithCanceledAndReplacesStatusType.ts +23 -0
- package/model/StackTraceElement.ts +25 -0
- package/model/StatusType.ts +26 -0
- package/model/SubregisterBaseType.ts +24 -0
- package/model/Throwable.ts +26 -0
- package/model/TokenResponse.ts +19 -0
- package/model/TranscriptionType.ts +23 -0
- package/model/UpdateFeedbackFlagResult.ts +23 -0
- package/model/VaccinationId.ts +22 -0
- package/model/VaccinationStatusType.ts +22 -0
- package/model/VaccineInjection.ts +24 -0
- package/model/ValidationInfoType.ts +23 -0
- package/model/ValidationResult.ts +26 -0
- package/model/VerifyIdResponse.ts +27 -0
- package/model/models.ts +89 -0
- package/package.json +1 -1
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fhcRnConsultApi = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Api Documentation
|
|
6
|
+
* Api Documentation
|
|
7
|
+
*
|
|
8
|
+
* OpenAPI spec version: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
12
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
const XHR_1 = require("./XHR");
|
|
16
|
+
const ConsultCurrentSsinResponse_1 = require("../model/ConsultCurrentSsinResponse");
|
|
17
|
+
const RnConsultRegisterPersonResponseDto_1 = require("../model/RnConsultRegisterPersonResponseDto");
|
|
18
|
+
const RnConsultSearchPersonBySsinResponseDto_1 = require("../model/RnConsultSearchPersonBySsinResponseDto");
|
|
19
|
+
const RnConsultSearchPersonPhoneticallyResponseDto_1 = require("../model/RnConsultSearchPersonPhoneticallyResponseDto");
|
|
20
|
+
const VerifyIdResponse_1 = require("../model/VerifyIdResponse");
|
|
21
|
+
class fhcRnConsultApi {
|
|
22
|
+
constructor(host, headers, fetchImpl) {
|
|
23
|
+
this.host = host;
|
|
24
|
+
this.headers = Object.keys(headers).map(k => new XHR_1.XHR.Header(k, headers[k]));
|
|
25
|
+
this.fetchImpl = fetchImpl;
|
|
26
|
+
}
|
|
27
|
+
setHeaders(h) {
|
|
28
|
+
this.headers = h;
|
|
29
|
+
}
|
|
30
|
+
handleError(e) {
|
|
31
|
+
throw e;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @summary consultCurrentSsin
|
|
36
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
37
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
38
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
39
|
+
* @param ssin ssin
|
|
40
|
+
*/
|
|
41
|
+
consultCurrentSsinUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, ssin) {
|
|
42
|
+
let _body = null;
|
|
43
|
+
const _url = this.host +
|
|
44
|
+
`/rnconsult/history/${encodeURIComponent(String(ssin))}` +
|
|
45
|
+
"?ts=" +
|
|
46
|
+
new Date().getTime();
|
|
47
|
+
let headers = this.headers;
|
|
48
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
49
|
+
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
50
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
51
|
+
return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
|
|
52
|
+
.then(doc => new ConsultCurrentSsinResponse_1.ConsultCurrentSsinResponse(doc.body))
|
|
53
|
+
.catch(err => this.handleError(err));
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @summary registerPerson
|
|
58
|
+
* @param body mid
|
|
59
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
60
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
61
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
62
|
+
*/
|
|
63
|
+
registerPersonUsingPOST1(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, body) {
|
|
64
|
+
let _body = null;
|
|
65
|
+
_body = body;
|
|
66
|
+
const _url = this.host + `/rnconsult` + "?ts=" + new Date().getTime();
|
|
67
|
+
let headers = this.headers;
|
|
68
|
+
headers = headers
|
|
69
|
+
.filter(h => h.header !== "Content-Type")
|
|
70
|
+
.concat(new XHR_1.XHR.Header("Content-Type", "application/json"));
|
|
71
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
72
|
+
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
73
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
74
|
+
return XHR_1.XHR.sendCommand("POST", _url, headers, _body, this.fetchImpl)
|
|
75
|
+
.then(doc => new RnConsultRegisterPersonResponseDto_1.RnConsultRegisterPersonResponseDto(doc.body))
|
|
76
|
+
.catch(err => this.handleError(err));
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary searchPersonBySsin
|
|
81
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
82
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
83
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
84
|
+
* @param ssin ssin
|
|
85
|
+
*/
|
|
86
|
+
searchPersonBySsinUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, ssin) {
|
|
87
|
+
let _body = null;
|
|
88
|
+
const _url = this.host +
|
|
89
|
+
`/rnconsult/bySsin/${encodeURIComponent(String(ssin))}` +
|
|
90
|
+
"?ts=" +
|
|
91
|
+
new Date().getTime();
|
|
92
|
+
let headers = this.headers;
|
|
93
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
94
|
+
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
95
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
96
|
+
return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
|
|
97
|
+
.then(doc => new RnConsultSearchPersonBySsinResponseDto_1.RnConsultSearchPersonBySsinResponseDto(doc.body))
|
|
98
|
+
.catch(err => this.handleError(err));
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @summary searchPersonPhonetically
|
|
103
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
104
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
105
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
106
|
+
* @param dateOfBirth dateOfBirth
|
|
107
|
+
* @param lastName lastName
|
|
108
|
+
* @param firstName firstName
|
|
109
|
+
* @param middleName middleName
|
|
110
|
+
* @param matchingType matchingType
|
|
111
|
+
* @param gender gender
|
|
112
|
+
* @param countryCode countryCode
|
|
113
|
+
* @param cityCode cityCode
|
|
114
|
+
* @param tolerance tolerance
|
|
115
|
+
* @param limit limit
|
|
116
|
+
*/
|
|
117
|
+
searchPersonPhoneticallyUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, dateOfBirth, lastName, firstName, middleName, matchingType, gender, countryCode, cityCode, tolerance, limit) {
|
|
118
|
+
let _body = null;
|
|
119
|
+
const _url = this.host +
|
|
120
|
+
`/rnconsult/phonetically/${encodeURIComponent(String(dateOfBirth))}/${encodeURIComponent(String(lastName))}` +
|
|
121
|
+
"?ts=" +
|
|
122
|
+
new Date().getTime() +
|
|
123
|
+
(firstName ? "&firstName=" + encodeURIComponent(String(firstName)) : "") +
|
|
124
|
+
(middleName ? "&middleName=" + encodeURIComponent(String(middleName)) : "") +
|
|
125
|
+
(matchingType ? "&matchingType=" + encodeURIComponent(String(matchingType)) : "") +
|
|
126
|
+
(gender ? "&gender=" + encodeURIComponent(String(gender)) : "") +
|
|
127
|
+
(countryCode ? "&countryCode=" + encodeURIComponent(String(countryCode)) : "") +
|
|
128
|
+
(cityCode ? "&cityCode=" + encodeURIComponent(String(cityCode)) : "") +
|
|
129
|
+
(tolerance ? "&tolerance=" + encodeURIComponent(String(tolerance)) : "") +
|
|
130
|
+
(limit ? "&limit=" + encodeURIComponent(String(limit)) : "");
|
|
131
|
+
let headers = this.headers;
|
|
132
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
133
|
+
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
134
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
135
|
+
return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
|
|
136
|
+
.then(doc => new RnConsultSearchPersonPhoneticallyResponseDto_1.RnConsultSearchPersonPhoneticallyResponseDto(doc.body))
|
|
137
|
+
.catch(err => this.handleError(err));
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @summary verifyId
|
|
142
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
143
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
144
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
145
|
+
* @param ssin ssin
|
|
146
|
+
* @param cardNumber cardNumber
|
|
147
|
+
* @param barCoded barCoded
|
|
148
|
+
*/
|
|
149
|
+
verifyIdUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, ssin, cardNumber, barCoded) {
|
|
150
|
+
let _body = null;
|
|
151
|
+
const _url = this.host +
|
|
152
|
+
`/rnconsult/verifyId` +
|
|
153
|
+
"?ts=" +
|
|
154
|
+
new Date().getTime() +
|
|
155
|
+
(ssin ? "&ssin=" + encodeURIComponent(String(ssin)) : "") +
|
|
156
|
+
(cardNumber ? "&cardNumber=" + encodeURIComponent(String(cardNumber)) : "") +
|
|
157
|
+
(barCoded ? "&barCoded=" + encodeURIComponent(String(barCoded)) : "");
|
|
158
|
+
let headers = this.headers;
|
|
159
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
160
|
+
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
161
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
162
|
+
return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
|
|
163
|
+
.then(doc => new VerifyIdResponse_1.VerifyIdResponse(doc.body))
|
|
164
|
+
.catch(err => this.handleError(err));
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.fhcRnConsultApi = fhcRnConsultApi;
|
package/dist/api/fhcStsApi.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { XHR } from "./XHR";
|
|
|
13
13
|
import { BearerToken } from "../model/BearerToken";
|
|
14
14
|
import { CertificateInfo } from "../model/CertificateInfo";
|
|
15
15
|
import { SamlTokenResult } from "../model/SamlTokenResult";
|
|
16
|
+
import { TokenResponse } from "../model/TokenResponse";
|
|
16
17
|
import { UUIDType } from "../model/UUIDType";
|
|
17
18
|
export declare class fhcStsApi {
|
|
18
19
|
host: string;
|
|
@@ -49,6 +50,16 @@ export declare class fhcStsApi {
|
|
|
49
50
|
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
50
51
|
*/
|
|
51
52
|
getKeystoreInfoUsingGET(keystoreId: string, xFHCPassPhrase: string): Promise<CertificateInfo>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @summary getOauth2Token
|
|
56
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
57
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
58
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
59
|
+
* @param cbe cbe
|
|
60
|
+
* @param kid kid
|
|
61
|
+
*/
|
|
62
|
+
getOauth2TokenUsingGET(xFHCTokenId: string, xFHCPassPhrase: string, xFHCKeystoreId: string, cbe: string, kid: string): Promise<TokenResponse>;
|
|
52
63
|
/**
|
|
53
64
|
*
|
|
54
65
|
* @summary registerToken
|
package/dist/api/fhcStsApi.js
CHANGED
|
@@ -16,6 +16,7 @@ const XHR_1 = require("./XHR");
|
|
|
16
16
|
const BearerToken_1 = require("../model/BearerToken");
|
|
17
17
|
const CertificateInfo_1 = require("../model/CertificateInfo");
|
|
18
18
|
const SamlTokenResult_1 = require("../model/SamlTokenResult");
|
|
19
|
+
const TokenResponse_1 = require("../model/TokenResponse");
|
|
19
20
|
const UUIDType_1 = require("../model/UUIDType");
|
|
20
21
|
class fhcStsApi {
|
|
21
22
|
constructor(host, headers, fetchImpl) {
|
|
@@ -98,6 +99,29 @@ class fhcStsApi {
|
|
|
98
99
|
.then(doc => new CertificateInfo_1.CertificateInfo(doc.body))
|
|
99
100
|
.catch(err => this.handleError(err));
|
|
100
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @summary getOauth2Token
|
|
105
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
106
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
107
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
108
|
+
* @param cbe cbe
|
|
109
|
+
* @param kid kid
|
|
110
|
+
*/
|
|
111
|
+
getOauth2TokenUsingGET(xFHCTokenId, xFHCPassPhrase, xFHCKeystoreId, cbe, kid) {
|
|
112
|
+
let _body = null;
|
|
113
|
+
const _url = this.host +
|
|
114
|
+
`/sts/token/oauth2/${encodeURIComponent(String(cbe))}/${encodeURIComponent(String(kid))}` +
|
|
115
|
+
"?ts=" +
|
|
116
|
+
new Date().getTime();
|
|
117
|
+
let headers = this.headers;
|
|
118
|
+
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
119
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
120
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
121
|
+
return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
|
|
122
|
+
.then(doc => new TokenResponse_1.TokenResponse(doc.body))
|
|
123
|
+
.catch(err => this.handleError(err));
|
|
124
|
+
}
|
|
101
125
|
/**
|
|
102
126
|
*
|
|
103
127
|
* @summary registerToken
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Api Documentation
|
|
3
|
+
* Api Documentation
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { XHR } from "./XHR";
|
|
13
|
+
import { AddVaccinationsResponseType } from "../model/AddVaccinationsResponseType";
|
|
14
|
+
import { GetVaccinationsResponseType } from "../model/GetVaccinationsResponseType";
|
|
15
|
+
import { RemoveVaccinationResponseType } from "../model/RemoveVaccinationResponseType";
|
|
16
|
+
import { VaccineInjection } from "../model/VaccineInjection";
|
|
17
|
+
export declare class fhcVaccinnetApi {
|
|
18
|
+
host: string;
|
|
19
|
+
headers: Array<XHR.Header>;
|
|
20
|
+
fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
21
|
+
constructor(host: string, headers: any, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>);
|
|
22
|
+
setHeaders(h: Array<XHR.Header>): void;
|
|
23
|
+
handleError(e: XHR.XHRError): never;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @summary addVaccinations
|
|
27
|
+
* @param body injections
|
|
28
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
29
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
30
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
31
|
+
* @param patientId patientId
|
|
32
|
+
* @param hcpNihii hcpNihii
|
|
33
|
+
* @param hcpName hcpName
|
|
34
|
+
* @param hcpQuality hcpQuality
|
|
35
|
+
* @param hcpSupervisorNihii hcpSupervisorNihii
|
|
36
|
+
* @param hcpSupervisorName hcpSupervisorName
|
|
37
|
+
* @param hcpSupervisorQuality hcpSupervisorQuality
|
|
38
|
+
* @param patientFirstName patientFirstName
|
|
39
|
+
* @param patientLastName patientLastName
|
|
40
|
+
* @param patientDateOfBirth patientDateOfBirth
|
|
41
|
+
* @param softwareId softwareId
|
|
42
|
+
* @param vaccinnetId vaccinnetId
|
|
43
|
+
*/
|
|
44
|
+
addVaccinationsUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, patientId: string, hcpNihii: string, hcpName: string, hcpQuality: string, hcpSupervisorNihii: string, hcpSupervisorName: string, hcpSupervisorQuality: string, patientFirstName: string, patientLastName: string, patientDateOfBirth: number, softwareId: string, vaccinnetId: string, body?: Array<VaccineInjection>): Promise<AddVaccinationsResponseType>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @summary getVaccinations
|
|
48
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
49
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
50
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
51
|
+
* @param patientId patientId
|
|
52
|
+
* @param softwareId softwareId
|
|
53
|
+
* @param vaccinnetId vaccinnetId
|
|
54
|
+
* @param since since
|
|
55
|
+
*/
|
|
56
|
+
getVaccinationsUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, patientId: string, softwareId: string, vaccinnetId: string, since: number): Promise<GetVaccinationsResponseType>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @summary removeVaccination
|
|
60
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
61
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
62
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
63
|
+
* @param patientId patientId
|
|
64
|
+
* @param vaccinationId vaccinationId
|
|
65
|
+
* @param softwareId softwareId
|
|
66
|
+
* @param vaccinnetId vaccinnetId
|
|
67
|
+
*/
|
|
68
|
+
removeVaccinationUsingDELETE(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, patientId: string, vaccinationId: string, softwareId: string, vaccinnetId: string): Promise<RemoveVaccinationResponseType>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fhcVaccinnetApi = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Api Documentation
|
|
6
|
+
* Api Documentation
|
|
7
|
+
*
|
|
8
|
+
* OpenAPI spec version: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
12
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
const XHR_1 = require("./XHR");
|
|
16
|
+
const AddVaccinationsResponseType_1 = require("../model/AddVaccinationsResponseType");
|
|
17
|
+
const GetVaccinationsResponseType_1 = require("../model/GetVaccinationsResponseType");
|
|
18
|
+
const RemoveVaccinationResponseType_1 = require("../model/RemoveVaccinationResponseType");
|
|
19
|
+
class fhcVaccinnetApi {
|
|
20
|
+
constructor(host, headers, fetchImpl) {
|
|
21
|
+
this.host = host;
|
|
22
|
+
this.headers = Object.keys(headers).map(k => new XHR_1.XHR.Header(k, headers[k]));
|
|
23
|
+
this.fetchImpl = fetchImpl;
|
|
24
|
+
}
|
|
25
|
+
setHeaders(h) {
|
|
26
|
+
this.headers = h;
|
|
27
|
+
}
|
|
28
|
+
handleError(e) {
|
|
29
|
+
throw e;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary addVaccinations
|
|
34
|
+
* @param body injections
|
|
35
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
36
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
37
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
38
|
+
* @param patientId patientId
|
|
39
|
+
* @param hcpNihii hcpNihii
|
|
40
|
+
* @param hcpName hcpName
|
|
41
|
+
* @param hcpQuality hcpQuality
|
|
42
|
+
* @param hcpSupervisorNihii hcpSupervisorNihii
|
|
43
|
+
* @param hcpSupervisorName hcpSupervisorName
|
|
44
|
+
* @param hcpSupervisorQuality hcpSupervisorQuality
|
|
45
|
+
* @param patientFirstName patientFirstName
|
|
46
|
+
* @param patientLastName patientLastName
|
|
47
|
+
* @param patientDateOfBirth patientDateOfBirth
|
|
48
|
+
* @param softwareId softwareId
|
|
49
|
+
* @param vaccinnetId vaccinnetId
|
|
50
|
+
*/
|
|
51
|
+
addVaccinationsUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, patientId, hcpNihii, hcpName, hcpQuality, hcpSupervisorNihii, hcpSupervisorName, hcpSupervisorQuality, patientFirstName, patientLastName, patientDateOfBirth, softwareId, vaccinnetId, body) {
|
|
52
|
+
let _body = null;
|
|
53
|
+
_body = body;
|
|
54
|
+
const _url = this.host +
|
|
55
|
+
`/vaccinnet/${encodeURIComponent(String(patientId))}` +
|
|
56
|
+
"?ts=" +
|
|
57
|
+
new Date().getTime() +
|
|
58
|
+
(hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
|
|
59
|
+
(hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "") +
|
|
60
|
+
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
61
|
+
(hcpSupervisorNihii
|
|
62
|
+
? "&hcpSupervisorNihii=" + encodeURIComponent(String(hcpSupervisorNihii))
|
|
63
|
+
: "") +
|
|
64
|
+
(hcpSupervisorName
|
|
65
|
+
? "&hcpSupervisorName=" + encodeURIComponent(String(hcpSupervisorName))
|
|
66
|
+
: "") +
|
|
67
|
+
(hcpSupervisorQuality
|
|
68
|
+
? "&hcpSupervisorQuality=" + encodeURIComponent(String(hcpSupervisorQuality))
|
|
69
|
+
: "") +
|
|
70
|
+
(patientFirstName
|
|
71
|
+
? "&patientFirstName=" + encodeURIComponent(String(patientFirstName))
|
|
72
|
+
: "") +
|
|
73
|
+
(patientLastName ? "&patientLastName=" + encodeURIComponent(String(patientLastName)) : "") +
|
|
74
|
+
(patientDateOfBirth
|
|
75
|
+
? "&patientDateOfBirth=" + encodeURIComponent(String(patientDateOfBirth))
|
|
76
|
+
: "") +
|
|
77
|
+
(softwareId ? "&softwareId=" + encodeURIComponent(String(softwareId)) : "") +
|
|
78
|
+
(vaccinnetId ? "&vaccinnetId=" + encodeURIComponent(String(vaccinnetId)) : "");
|
|
79
|
+
let headers = this.headers;
|
|
80
|
+
headers = headers
|
|
81
|
+
.filter(h => h.header !== "Content-Type")
|
|
82
|
+
.concat(new XHR_1.XHR.Header("Content-Type", "application/json"));
|
|
83
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
84
|
+
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
85
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
86
|
+
return XHR_1.XHR.sendCommand("POST", _url, headers, _body, this.fetchImpl)
|
|
87
|
+
.then(doc => new AddVaccinationsResponseType_1.AddVaccinationsResponseType(doc.body))
|
|
88
|
+
.catch(err => this.handleError(err));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @summary getVaccinations
|
|
93
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
94
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
95
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
96
|
+
* @param patientId patientId
|
|
97
|
+
* @param softwareId softwareId
|
|
98
|
+
* @param vaccinnetId vaccinnetId
|
|
99
|
+
* @param since since
|
|
100
|
+
*/
|
|
101
|
+
getVaccinationsUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, patientId, softwareId, vaccinnetId, since) {
|
|
102
|
+
let _body = null;
|
|
103
|
+
const _url = this.host +
|
|
104
|
+
`/vaccinnet/${encodeURIComponent(String(patientId))}` +
|
|
105
|
+
"?ts=" +
|
|
106
|
+
new Date().getTime() +
|
|
107
|
+
(softwareId ? "&softwareId=" + encodeURIComponent(String(softwareId)) : "") +
|
|
108
|
+
(vaccinnetId ? "&vaccinnetId=" + encodeURIComponent(String(vaccinnetId)) : "") +
|
|
109
|
+
(since ? "&since=" + encodeURIComponent(String(since)) : "");
|
|
110
|
+
let headers = this.headers;
|
|
111
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
112
|
+
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
113
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
114
|
+
return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
|
|
115
|
+
.then(doc => new GetVaccinationsResponseType_1.GetVaccinationsResponseType(doc.body))
|
|
116
|
+
.catch(err => this.handleError(err));
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @summary removeVaccination
|
|
121
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
122
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
123
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
124
|
+
* @param patientId patientId
|
|
125
|
+
* @param vaccinationId vaccinationId
|
|
126
|
+
* @param softwareId softwareId
|
|
127
|
+
* @param vaccinnetId vaccinnetId
|
|
128
|
+
*/
|
|
129
|
+
removeVaccinationUsingDELETE(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, patientId, vaccinationId, softwareId, vaccinnetId) {
|
|
130
|
+
let _body = null;
|
|
131
|
+
const _url = this.host +
|
|
132
|
+
`/vaccinnet/${encodeURIComponent(String(patientId))}/${encodeURIComponent(String(vaccinationId))}` +
|
|
133
|
+
"?ts=" +
|
|
134
|
+
new Date().getTime() +
|
|
135
|
+
(softwareId ? "&softwareId=" + encodeURIComponent(String(softwareId)) : "") +
|
|
136
|
+
(vaccinnetId ? "&vaccinnetId=" + encodeURIComponent(String(vaccinnetId)) : "");
|
|
137
|
+
let headers = this.headers;
|
|
138
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
139
|
+
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
140
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
141
|
+
return XHR_1.XHR.sendCommand("DELETE", _url, headers, _body, this.fetchImpl)
|
|
142
|
+
.then(doc => new RemoveVaccinationResponseType_1.RemoveVaccinationResponseType(doc.body))
|
|
143
|
+
.catch(err => this.handleError(err));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.fhcVaccinnetApi = fhcVaccinnetApi;
|
package/dist/fhcApi.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export * from "./api/fhcHubApi";
|
|
|
15
15
|
export * from "./api/fhcMemberDataApi";
|
|
16
16
|
export * from "./api/fhcMhmApi";
|
|
17
17
|
export * from "./api/fhcRecipeApi";
|
|
18
|
+
export * from "./api/fhcRnConsultApi";
|
|
18
19
|
export * from "./api/fhcStsApi";
|
|
19
20
|
export * from "./api/fhcTarificationApi";
|
|
20
21
|
export * from "./api/fhcTherLinkApi";
|
|
22
|
+
export * from "./api/fhcVaccinnetApi";
|
package/dist/fhcApi.js
CHANGED
|
@@ -27,6 +27,8 @@ __exportStar(require("./api/fhcHubApi"), exports);
|
|
|
27
27
|
__exportStar(require("./api/fhcMemberDataApi"), exports);
|
|
28
28
|
__exportStar(require("./api/fhcMhmApi"), exports);
|
|
29
29
|
__exportStar(require("./api/fhcRecipeApi"), exports);
|
|
30
|
+
__exportStar(require("./api/fhcRnConsultApi"), exports);
|
|
30
31
|
__exportStar(require("./api/fhcStsApi"), exports);
|
|
31
32
|
__exportStar(require("./api/fhcTarificationApi"), exports);
|
|
32
33
|
__exportStar(require("./api/fhcTherLinkApi"), exports);
|
|
34
|
+
__exportStar(require("./api/fhcVaccinnetApi"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Api Documentation
|
|
3
|
+
* Api Documentation
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ActType {
|
|
13
|
+
constructor(json: JSON | any);
|
|
14
|
+
actTypeCode?: number;
|
|
15
|
+
actTypeDescriptions?: Array<ActType>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Api Documentation
|
|
4
|
+
* Api Documentation
|
|
5
|
+
*
|
|
6
|
+
* OpenAPI spec version: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
10
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ActType = void 0;
|
|
15
|
+
class ActType {
|
|
16
|
+
constructor(json) {
|
|
17
|
+
Object.assign(this, json);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ActType = ActType;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Api Documentation
|
|
3
|
+
* Api Documentation
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Results } from "./Results";
|
|
13
|
+
import { VaccinationStatusType } from "./VaccinationStatusType";
|
|
14
|
+
export declare class AddVaccinationsResponseType {
|
|
15
|
+
constructor(json: JSON | any);
|
|
16
|
+
patientId?: string;
|
|
17
|
+
results?: Array<Results>;
|
|
18
|
+
status?: VaccinationStatusType;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddVaccinationsResponseType = void 0;
|
|
4
|
+
class AddVaccinationsResponseType {
|
|
5
|
+
constructor(json) {
|
|
6
|
+
Object.assign(this, json);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.AddVaccinationsResponseType = AddVaccinationsResponseType;
|
package/dist/model/Address.d.ts
CHANGED
|
@@ -13,16 +13,16 @@ import { Telecom } from "./Telecom";
|
|
|
13
13
|
export declare class Address {
|
|
14
14
|
constructor(json: JSON | any);
|
|
15
15
|
addressType?: Address.AddressTypeEnum;
|
|
16
|
-
|
|
17
|
-
country?: string;
|
|
16
|
+
street?: string;
|
|
18
17
|
houseNumber?: string;
|
|
19
|
-
postalCode?: string;
|
|
20
18
|
postboxNumber?: string;
|
|
21
|
-
|
|
19
|
+
postalCode?: string;
|
|
20
|
+
city?: string;
|
|
21
|
+
country?: string;
|
|
22
22
|
telecoms?: Array<Telecom>;
|
|
23
23
|
}
|
|
24
24
|
export declare namespace Address {
|
|
25
|
-
type AddressTypeEnum = "home" | "work" | "vacation" | "hospital" | "clinic" | "hq" | "other";
|
|
25
|
+
type AddressTypeEnum = "home" | "work" | "vacation" | "hospital" | "clinic" | "hq" | "other" | "diplomatic" | "reference" | "postal" | "temporary";
|
|
26
26
|
const AddressTypeEnum: {
|
|
27
27
|
Home: AddressTypeEnum;
|
|
28
28
|
Work: AddressTypeEnum;
|
|
@@ -31,5 +31,9 @@ export declare namespace Address {
|
|
|
31
31
|
Clinic: AddressTypeEnum;
|
|
32
32
|
Hq: AddressTypeEnum;
|
|
33
33
|
Other: AddressTypeEnum;
|
|
34
|
+
Diplomatic: AddressTypeEnum;
|
|
35
|
+
Reference: AddressTypeEnum;
|
|
36
|
+
Postal: AddressTypeEnum;
|
|
37
|
+
Temporary: AddressTypeEnum;
|
|
34
38
|
};
|
|
35
39
|
}
|
package/dist/model/Address.js
CHANGED
|
@@ -15,6 +15,10 @@ exports.Address = Address;
|
|
|
15
15
|
Hospital: "hospital",
|
|
16
16
|
Clinic: "clinic",
|
|
17
17
|
Hq: "hq",
|
|
18
|
-
Other: "other"
|
|
18
|
+
Other: "other",
|
|
19
|
+
Diplomatic: "diplomatic",
|
|
20
|
+
Reference: "reference",
|
|
21
|
+
Postal: "postal",
|
|
22
|
+
Temporary: "temporary"
|
|
19
23
|
};
|
|
20
24
|
})(Address = exports.Address || (exports.Address = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Api Documentation
|
|
3
|
+
* Api Documentation
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { DiplomaticPostType } from "./DiplomaticPostType";
|
|
13
|
+
import { PlainAddressType } from "./PlainAddressType";
|
|
14
|
+
import { ResidentialAddressType } from "./ResidentialAddressType";
|
|
15
|
+
export declare class AddressBaseType {
|
|
16
|
+
constructor(json: JSON | any);
|
|
17
|
+
diplomaticAddress?: PlainAddressType;
|
|
18
|
+
diplomaticPost?: DiplomaticPostType;
|
|
19
|
+
postAddress?: PlainAddressType;
|
|
20
|
+
referenceAddress?: ResidentialAddressType;
|
|
21
|
+
residentialAddress?: ResidentialAddressType;
|
|
22
|
+
temporaryAddress?: PlainAddressType;
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Api Documentation
|
|
3
|
+
* Api Documentation
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ResidentialAddressType } from "./ResidentialAddressType";
|
|
13
|
+
export declare class AddressCbssBaseType {
|
|
14
|
+
constructor(json: JSON | any);
|
|
15
|
+
residentialAddress?: ResidentialAddressType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Api Documentation
|
|
3
|
+
* Api Documentation
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ForeignAddressDeclarationType } from "./ForeignAddressDeclarationType";
|
|
13
|
+
export declare class AddressDeclarationType {
|
|
14
|
+
constructor(json: JSON | any);
|
|
15
|
+
residentialAddress?: ForeignAddressDeclarationType;
|
|
16
|
+
}
|