@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,198 @@
|
|
|
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
|
+
|
|
18
|
+
export class fhcVaccinnetApi {
|
|
19
|
+
host: string
|
|
20
|
+
headers: Array<XHR.Header>
|
|
21
|
+
fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>
|
|
22
|
+
|
|
23
|
+
constructor(
|
|
24
|
+
host: string,
|
|
25
|
+
headers: any,
|
|
26
|
+
fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>
|
|
27
|
+
) {
|
|
28
|
+
this.host = host
|
|
29
|
+
this.headers = Object.keys(headers).map(k => new XHR.Header(k, headers[k]))
|
|
30
|
+
this.fetchImpl = fetchImpl
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
setHeaders(h: Array<XHR.Header>) {
|
|
34
|
+
this.headers = h
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
handleError(e: XHR.XHRError): never {
|
|
38
|
+
throw e
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @summary addVaccinations
|
|
44
|
+
* @param body injections
|
|
45
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
46
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
47
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
48
|
+
* @param patientId patientId
|
|
49
|
+
* @param hcpNihii hcpNihii
|
|
50
|
+
* @param hcpName hcpName
|
|
51
|
+
* @param hcpQuality hcpQuality
|
|
52
|
+
* @param hcpSupervisorNihii hcpSupervisorNihii
|
|
53
|
+
* @param hcpSupervisorName hcpSupervisorName
|
|
54
|
+
* @param hcpSupervisorQuality hcpSupervisorQuality
|
|
55
|
+
* @param patientFirstName patientFirstName
|
|
56
|
+
* @param patientLastName patientLastName
|
|
57
|
+
* @param patientDateOfBirth patientDateOfBirth
|
|
58
|
+
* @param softwareId softwareId
|
|
59
|
+
* @param vaccinnetId vaccinnetId
|
|
60
|
+
*/
|
|
61
|
+
addVaccinationsUsingPOST(
|
|
62
|
+
xFHCKeystoreId: string,
|
|
63
|
+
xFHCTokenId: string,
|
|
64
|
+
xFHCPassPhrase: string,
|
|
65
|
+
patientId: string,
|
|
66
|
+
hcpNihii: string,
|
|
67
|
+
hcpName: string,
|
|
68
|
+
hcpQuality: string,
|
|
69
|
+
hcpSupervisorNihii: string,
|
|
70
|
+
hcpSupervisorName: string,
|
|
71
|
+
hcpSupervisorQuality: string,
|
|
72
|
+
patientFirstName: string,
|
|
73
|
+
patientLastName: string,
|
|
74
|
+
patientDateOfBirth: number,
|
|
75
|
+
softwareId: string,
|
|
76
|
+
vaccinnetId: string,
|
|
77
|
+
body?: Array<VaccineInjection>
|
|
78
|
+
): Promise<AddVaccinationsResponseType> {
|
|
79
|
+
let _body = null
|
|
80
|
+
_body = body
|
|
81
|
+
|
|
82
|
+
const _url =
|
|
83
|
+
this.host +
|
|
84
|
+
`/vaccinnet/${encodeURIComponent(String(patientId))}` +
|
|
85
|
+
"?ts=" +
|
|
86
|
+
new Date().getTime() +
|
|
87
|
+
(hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
|
|
88
|
+
(hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "") +
|
|
89
|
+
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
90
|
+
(hcpSupervisorNihii
|
|
91
|
+
? "&hcpSupervisorNihii=" + encodeURIComponent(String(hcpSupervisorNihii))
|
|
92
|
+
: "") +
|
|
93
|
+
(hcpSupervisorName
|
|
94
|
+
? "&hcpSupervisorName=" + encodeURIComponent(String(hcpSupervisorName))
|
|
95
|
+
: "") +
|
|
96
|
+
(hcpSupervisorQuality
|
|
97
|
+
? "&hcpSupervisorQuality=" + encodeURIComponent(String(hcpSupervisorQuality))
|
|
98
|
+
: "") +
|
|
99
|
+
(patientFirstName
|
|
100
|
+
? "&patientFirstName=" + encodeURIComponent(String(patientFirstName))
|
|
101
|
+
: "") +
|
|
102
|
+
(patientLastName ? "&patientLastName=" + encodeURIComponent(String(patientLastName)) : "") +
|
|
103
|
+
(patientDateOfBirth
|
|
104
|
+
? "&patientDateOfBirth=" + encodeURIComponent(String(patientDateOfBirth))
|
|
105
|
+
: "") +
|
|
106
|
+
(softwareId ? "&softwareId=" + encodeURIComponent(String(softwareId)) : "") +
|
|
107
|
+
(vaccinnetId ? "&vaccinnetId=" + encodeURIComponent(String(vaccinnetId)) : "")
|
|
108
|
+
let headers = this.headers
|
|
109
|
+
headers = headers
|
|
110
|
+
.filter(h => h.header !== "Content-Type")
|
|
111
|
+
.concat(new XHR.Header("Content-Type", "application/json"))
|
|
112
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
|
|
113
|
+
xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
|
|
114
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
|
|
115
|
+
return XHR.sendCommand("POST", _url, headers, _body, this.fetchImpl)
|
|
116
|
+
.then(doc => new AddVaccinationsResponseType(doc.body as JSON))
|
|
117
|
+
.catch(err => this.handleError(err))
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @summary getVaccinations
|
|
123
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
124
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
125
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
126
|
+
* @param patientId patientId
|
|
127
|
+
* @param softwareId softwareId
|
|
128
|
+
* @param vaccinnetId vaccinnetId
|
|
129
|
+
* @param since since
|
|
130
|
+
*/
|
|
131
|
+
getVaccinationsUsingGET(
|
|
132
|
+
xFHCKeystoreId: string,
|
|
133
|
+
xFHCTokenId: string,
|
|
134
|
+
xFHCPassPhrase: string,
|
|
135
|
+
patientId: string,
|
|
136
|
+
softwareId: string,
|
|
137
|
+
vaccinnetId: string,
|
|
138
|
+
since: number
|
|
139
|
+
): Promise<GetVaccinationsResponseType> {
|
|
140
|
+
let _body = null
|
|
141
|
+
|
|
142
|
+
const _url =
|
|
143
|
+
this.host +
|
|
144
|
+
`/vaccinnet/${encodeURIComponent(String(patientId))}` +
|
|
145
|
+
"?ts=" +
|
|
146
|
+
new Date().getTime() +
|
|
147
|
+
(softwareId ? "&softwareId=" + encodeURIComponent(String(softwareId)) : "") +
|
|
148
|
+
(vaccinnetId ? "&vaccinnetId=" + encodeURIComponent(String(vaccinnetId)) : "") +
|
|
149
|
+
(since ? "&since=" + encodeURIComponent(String(since)) : "")
|
|
150
|
+
let headers = this.headers
|
|
151
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
|
|
152
|
+
xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
|
|
153
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
|
|
154
|
+
return XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
|
|
155
|
+
.then(doc => new GetVaccinationsResponseType(doc.body as JSON))
|
|
156
|
+
.catch(err => this.handleError(err))
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @summary removeVaccination
|
|
162
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
163
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
164
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
165
|
+
* @param patientId patientId
|
|
166
|
+
* @param vaccinationId vaccinationId
|
|
167
|
+
* @param softwareId softwareId
|
|
168
|
+
* @param vaccinnetId vaccinnetId
|
|
169
|
+
*/
|
|
170
|
+
removeVaccinationUsingDELETE(
|
|
171
|
+
xFHCKeystoreId: string,
|
|
172
|
+
xFHCTokenId: string,
|
|
173
|
+
xFHCPassPhrase: string,
|
|
174
|
+
patientId: string,
|
|
175
|
+
vaccinationId: string,
|
|
176
|
+
softwareId: string,
|
|
177
|
+
vaccinnetId: string
|
|
178
|
+
): Promise<RemoveVaccinationResponseType> {
|
|
179
|
+
let _body = null
|
|
180
|
+
|
|
181
|
+
const _url =
|
|
182
|
+
this.host +
|
|
183
|
+
`/vaccinnet/${encodeURIComponent(String(patientId))}/${encodeURIComponent(
|
|
184
|
+
String(vaccinationId)
|
|
185
|
+
)}` +
|
|
186
|
+
"?ts=" +
|
|
187
|
+
new Date().getTime() +
|
|
188
|
+
(softwareId ? "&softwareId=" + encodeURIComponent(String(softwareId)) : "") +
|
|
189
|
+
(vaccinnetId ? "&vaccinnetId=" + encodeURIComponent(String(vaccinnetId)) : "")
|
|
190
|
+
let headers = this.headers
|
|
191
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
|
|
192
|
+
xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
|
|
193
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
|
|
194
|
+
return XHR.sendCommand("DELETE", _url, headers, _body, this.fetchImpl)
|
|
195
|
+
.then(doc => new RemoveVaccinationResponseType(doc.body as JSON))
|
|
196
|
+
.catch(err => this.handleError(err))
|
|
197
|
+
}
|
|
198
|
+
}
|
package/dist/api/fhcHubApi.d.ts
CHANGED
|
@@ -188,8 +188,10 @@ export declare class fhcHubApi {
|
|
|
188
188
|
* @param id id
|
|
189
189
|
* @param hubPackageId hubPackageId
|
|
190
190
|
* @param breakTheGlassReason breakTheGlassReason
|
|
191
|
+
* @param externalHubId externalHubId
|
|
192
|
+
* @param externalHubName externalHubName
|
|
191
193
|
*/
|
|
192
|
-
getTransactionSetMessageUsingGET(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, ssin: string, sv: string, sl: string, id: string, hubPackageId?: string, breakTheGlassReason?: string): Promise<Kmehrmessage>;
|
|
194
|
+
getTransactionSetMessageUsingGET(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, ssin: string, sv: string, sl: string, id: string, hubPackageId?: string, breakTheGlassReason?: string, externalHubId?: string, externalHubName?: string): Promise<Kmehrmessage>;
|
|
193
195
|
/**
|
|
194
196
|
*
|
|
195
197
|
* @summary getTransactionSet
|
|
@@ -208,8 +210,10 @@ export declare class fhcHubApi {
|
|
|
208
210
|
* @param id id
|
|
209
211
|
* @param hubPackageId hubPackageId
|
|
210
212
|
* @param breakTheGlassReason breakTheGlassReason
|
|
213
|
+
* @param externalHubId externalHubId
|
|
214
|
+
* @param externalHubName externalHubName
|
|
211
215
|
*/
|
|
212
|
-
getTransactionSetUsingGET(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, ssin: string, sv: string, sl: string, id: string, hubPackageId?: string, breakTheGlassReason?: string): Promise<Kmehrmessage>;
|
|
216
|
+
getTransactionSetUsingGET(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, ssin: string, sv: string, sl: string, id: string, hubPackageId?: string, breakTheGlassReason?: string, externalHubId?: string, externalHubName?: string): Promise<Kmehrmessage>;
|
|
213
217
|
/**
|
|
214
218
|
*
|
|
215
219
|
* @summary getTransaction
|
package/dist/api/fhcHubApi.js
CHANGED
|
@@ -369,8 +369,10 @@ class fhcHubApi {
|
|
|
369
369
|
* @param id id
|
|
370
370
|
* @param hubPackageId hubPackageId
|
|
371
371
|
* @param breakTheGlassReason breakTheGlassReason
|
|
372
|
+
* @param externalHubId externalHubId
|
|
373
|
+
* @param externalHubName externalHubName
|
|
372
374
|
*/
|
|
373
|
-
getTransactionSetMessageUsingGET(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, ssin, sv, sl, id, hubPackageId, breakTheGlassReason) {
|
|
375
|
+
getTransactionSetMessageUsingGET(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, ssin, sv, sl, id, hubPackageId, breakTheGlassReason, externalHubId, externalHubName) {
|
|
374
376
|
let _body = null;
|
|
375
377
|
const _url = this.host +
|
|
376
378
|
`/hub/ts/${encodeURIComponent(String(ssin))}/${encodeURIComponent(String(sv))}/${encodeURIComponent(String(sl))}/kmehr` +
|
|
@@ -386,7 +388,9 @@ class fhcHubApi {
|
|
|
386
388
|
(hubPackageId ? "&hubPackageId=" + encodeURIComponent(String(hubPackageId)) : "") +
|
|
387
389
|
(breakTheGlassReason
|
|
388
390
|
? "&breakTheGlassReason=" + encodeURIComponent(String(breakTheGlassReason))
|
|
389
|
-
: "")
|
|
391
|
+
: "") +
|
|
392
|
+
(externalHubId ? "&externalHubId=" + encodeURIComponent(String(externalHubId)) : "") +
|
|
393
|
+
(externalHubName ? "&externalHubName=" + encodeURIComponent(String(externalHubName)) : "");
|
|
390
394
|
let headers = this.headers;
|
|
391
395
|
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
392
396
|
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
@@ -413,8 +417,10 @@ class fhcHubApi {
|
|
|
413
417
|
* @param id id
|
|
414
418
|
* @param hubPackageId hubPackageId
|
|
415
419
|
* @param breakTheGlassReason breakTheGlassReason
|
|
420
|
+
* @param externalHubId externalHubId
|
|
421
|
+
* @param externalHubName externalHubName
|
|
416
422
|
*/
|
|
417
|
-
getTransactionSetUsingGET(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, ssin, sv, sl, id, hubPackageId, breakTheGlassReason) {
|
|
423
|
+
getTransactionSetUsingGET(endpoint, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpLastName, hcpFirstName, hcpNihii, hcpSsin, hcpZip, ssin, sv, sl, id, hubPackageId, breakTheGlassReason, externalHubId, externalHubName) {
|
|
418
424
|
let _body = null;
|
|
419
425
|
const _url = this.host +
|
|
420
426
|
`/hub/ts/${encodeURIComponent(String(ssin))}/${encodeURIComponent(String(sv))}/${encodeURIComponent(String(sl))}` +
|
|
@@ -430,7 +436,9 @@ class fhcHubApi {
|
|
|
430
436
|
(hubPackageId ? "&hubPackageId=" + encodeURIComponent(String(hubPackageId)) : "") +
|
|
431
437
|
(breakTheGlassReason
|
|
432
438
|
? "&breakTheGlassReason=" + encodeURIComponent(String(breakTheGlassReason))
|
|
433
|
-
: "")
|
|
439
|
+
: "") +
|
|
440
|
+
(externalHubId ? "&externalHubId=" + encodeURIComponent(String(externalHubId)) : "") +
|
|
441
|
+
(externalHubName ? "&externalHubName=" + encodeURIComponent(String(externalHubName)) : "");
|
|
434
442
|
let headers = this.headers;
|
|
435
443
|
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
436
444
|
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
@@ -12,10 +12,12 @@
|
|
|
12
12
|
import { XHR } from "./XHR";
|
|
13
13
|
import { Code } from "../model/Code";
|
|
14
14
|
import { Feedback } from "../model/Feedback";
|
|
15
|
-
import {
|
|
15
|
+
import { GetPrescriptionStatusResult } from "../model/GetPrescriptionStatusResult";
|
|
16
16
|
import { Prescription } from "../model/Prescription";
|
|
17
17
|
import { PrescriptionFullWithFeedback } from "../model/PrescriptionFullWithFeedback";
|
|
18
18
|
import { PrescriptionRequest } from "../model/PrescriptionRequest";
|
|
19
|
+
import { PutVisionResult } from "../model/PutVisionResult";
|
|
20
|
+
import { RecipeKmehrmessageType } from "../model/RecipeKmehrmessageType";
|
|
19
21
|
export declare class fhcRecipeApi {
|
|
20
22
|
host: string;
|
|
21
23
|
headers: Array<XHR.Header>;
|
|
@@ -29,11 +31,11 @@ export declare class fhcRecipeApi {
|
|
|
29
31
|
* @param body prescription
|
|
30
32
|
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
31
33
|
* @param xFHCTokenId X-FHC-tokenId
|
|
34
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
32
35
|
* @param hcpQuality hcpQuality
|
|
33
36
|
* @param hcpNihii hcpNihii
|
|
34
37
|
* @param hcpSsin hcpSsin
|
|
35
38
|
* @param hcpName hcpName
|
|
36
|
-
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
37
39
|
*/
|
|
38
40
|
createPrescriptionUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, xFHCPassPhrase: string, body?: PrescriptionRequest): Promise<Prescription>;
|
|
39
41
|
/**
|
|
@@ -67,7 +69,17 @@ export declare class fhcRecipeApi {
|
|
|
67
69
|
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
68
70
|
* @param rid rid
|
|
69
71
|
*/
|
|
70
|
-
getPrescriptionMessageUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, xFHCPassPhrase: string, rid: string): Promise<
|
|
72
|
+
getPrescriptionMessageUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, xFHCPassPhrase: string, rid: string): Promise<RecipeKmehrmessageType>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @summary getPrescriptionStatus
|
|
76
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
77
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
78
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
79
|
+
* @param hcpNihii hcpNihii
|
|
80
|
+
* @param rid rid
|
|
81
|
+
*/
|
|
82
|
+
getPrescriptionStatusUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, rid: string): Promise<GetPrescriptionStatusResult>;
|
|
71
83
|
/**
|
|
72
84
|
*
|
|
73
85
|
* @summary getPrescription
|
|
@@ -99,18 +111,6 @@ export declare class fhcRecipeApi {
|
|
|
99
111
|
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
100
112
|
*/
|
|
101
113
|
listOpenPrescriptionsByPatientUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, patientId: string, xFHCPassPhrase: string): Promise<Array<Prescription>>;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @summary listOpenPrescriptions
|
|
105
|
-
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
106
|
-
* @param xFHCTokenId X-FHC-tokenId
|
|
107
|
-
* @param hcpQuality hcpQuality
|
|
108
|
-
* @param hcpNihii hcpNihii
|
|
109
|
-
* @param hcpSsin hcpSsin
|
|
110
|
-
* @param hcpName hcpName
|
|
111
|
-
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
112
|
-
*/
|
|
113
|
-
listOpenPrescriptionsUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, xFHCPassPhrase: string): Promise<Array<Prescription>>;
|
|
114
114
|
/**
|
|
115
115
|
*
|
|
116
116
|
* @summary revokePrescription
|
|
@@ -141,6 +141,16 @@ export declare class fhcRecipeApi {
|
|
|
141
141
|
* @param text text
|
|
142
142
|
*/
|
|
143
143
|
sendNotificationUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpName: string, xFHCPassPhrase: string, patientId: string, executorId: string, rid: string, text: string): Promise<any | Boolean>;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @summary setVision
|
|
147
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
148
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
149
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
150
|
+
* @param rid rid
|
|
151
|
+
* @param vision vision
|
|
152
|
+
*/
|
|
153
|
+
setVisionUsingPUT(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, rid: string, vision: string): Promise<PutVisionResult>;
|
|
144
154
|
/**
|
|
145
155
|
*
|
|
146
156
|
* @summary updateFeedbackFlag
|
package/dist/api/fhcRecipeApi.js
CHANGED
|
@@ -15,9 +15,12 @@ exports.fhcRecipeApi = void 0;
|
|
|
15
15
|
const XHR_1 = require("./XHR");
|
|
16
16
|
const Code_1 = require("../model/Code");
|
|
17
17
|
const Feedback_1 = require("../model/Feedback");
|
|
18
|
-
const
|
|
18
|
+
const GetPrescriptionStatusResult_1 = require("../model/GetPrescriptionStatusResult");
|
|
19
19
|
const Prescription_1 = require("../model/Prescription");
|
|
20
20
|
const PrescriptionFullWithFeedback_1 = require("../model/PrescriptionFullWithFeedback");
|
|
21
|
+
const PutVisionResult_1 = require("../model/PutVisionResult");
|
|
22
|
+
const RecipeKmehrmessageType_1 = require("../model/RecipeKmehrmessageType");
|
|
23
|
+
const UpdateFeedbackFlagResult_1 = require("../model/UpdateFeedbackFlagResult");
|
|
21
24
|
class fhcRecipeApi {
|
|
22
25
|
constructor(host, headers, fetchImpl) {
|
|
23
26
|
this.host = host;
|
|
@@ -36,11 +39,11 @@ class fhcRecipeApi {
|
|
|
36
39
|
* @param body prescription
|
|
37
40
|
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
38
41
|
* @param xFHCTokenId X-FHC-tokenId
|
|
42
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
39
43
|
* @param hcpQuality hcpQuality
|
|
40
44
|
* @param hcpNihii hcpNihii
|
|
41
45
|
* @param hcpSsin hcpSsin
|
|
42
46
|
* @param hcpName hcpName
|
|
43
|
-
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
44
47
|
*/
|
|
45
48
|
createPrescriptionUsingPOST(xFHCKeystoreId, xFHCTokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, xFHCPassPhrase, body) {
|
|
46
49
|
let _body = null;
|
|
@@ -129,8 +132,8 @@ class fhcRecipeApi {
|
|
|
129
132
|
`/recipe/prescription/${encodeURIComponent(String(rid))}` +
|
|
130
133
|
"?ts=" +
|
|
131
134
|
new Date().getTime() +
|
|
132
|
-
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
133
135
|
(hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
|
|
136
|
+
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
134
137
|
(hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
|
|
135
138
|
(hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "");
|
|
136
139
|
let headers = this.headers;
|
|
@@ -138,7 +141,31 @@ class fhcRecipeApi {
|
|
|
138
141
|
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
139
142
|
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
140
143
|
return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
|
|
141
|
-
.then(doc => new
|
|
144
|
+
.then(doc => new RecipeKmehrmessageType_1.RecipeKmehrmessageType(doc.body))
|
|
145
|
+
.catch(err => this.handleError(err));
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @summary getPrescriptionStatus
|
|
150
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
151
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
152
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
153
|
+
* @param hcpNihii hcpNihii
|
|
154
|
+
* @param rid rid
|
|
155
|
+
*/
|
|
156
|
+
getPrescriptionStatusUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, rid) {
|
|
157
|
+
let _body = null;
|
|
158
|
+
const _url = this.host +
|
|
159
|
+
`/recipe/${encodeURIComponent(String(rid))}/status` +
|
|
160
|
+
"?ts=" +
|
|
161
|
+
new Date().getTime() +
|
|
162
|
+
(hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "");
|
|
163
|
+
let headers = this.headers;
|
|
164
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
165
|
+
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
166
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
167
|
+
return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
|
|
168
|
+
.then(doc => new GetPrescriptionStatusResult_1.GetPrescriptionStatusResult(doc.body))
|
|
142
169
|
.catch(err => this.handleError(err));
|
|
143
170
|
}
|
|
144
171
|
/**
|
|
@@ -201,38 +228,9 @@ class fhcRecipeApi {
|
|
|
201
228
|
`/recipe/patient` +
|
|
202
229
|
"?ts=" +
|
|
203
230
|
new Date().getTime() +
|
|
204
|
-
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
205
231
|
(hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
|
|
206
|
-
(
|
|
207
|
-
(hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "") +
|
|
208
|
-
(patientId ? "&patientId=" + encodeURIComponent(String(patientId)) : "");
|
|
209
|
-
let headers = this.headers;
|
|
210
|
-
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
211
|
-
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
212
|
-
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
213
|
-
return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
|
|
214
|
-
.then(doc => doc.body.map(it => new Prescription_1.Prescription(it)))
|
|
215
|
-
.catch(err => this.handleError(err));
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
*
|
|
219
|
-
* @summary listOpenPrescriptions
|
|
220
|
-
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
221
|
-
* @param xFHCTokenId X-FHC-tokenId
|
|
222
|
-
* @param hcpQuality hcpQuality
|
|
223
|
-
* @param hcpNihii hcpNihii
|
|
224
|
-
* @param hcpSsin hcpSsin
|
|
225
|
-
* @param hcpName hcpName
|
|
226
|
-
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
227
|
-
*/
|
|
228
|
-
listOpenPrescriptionsUsingGET(xFHCKeystoreId, xFHCTokenId, hcpQuality, hcpNihii, hcpSsin, hcpName, xFHCPassPhrase) {
|
|
229
|
-
let _body = null;
|
|
230
|
-
const _url = this.host +
|
|
231
|
-
`/recipe` +
|
|
232
|
-
"?ts=" +
|
|
233
|
-
new Date().getTime() +
|
|
232
|
+
(patientId ? "&patientId=" + encodeURIComponent(String(patientId)) : "") +
|
|
234
233
|
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
235
|
-
(hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
|
|
236
234
|
(hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
|
|
237
235
|
(hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "");
|
|
238
236
|
let headers = this.headers;
|
|
@@ -262,11 +260,11 @@ class fhcRecipeApi {
|
|
|
262
260
|
`/recipe/${encodeURIComponent(String(rid))}` +
|
|
263
261
|
"?ts=" +
|
|
264
262
|
new Date().getTime() +
|
|
265
|
-
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
266
263
|
(hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
|
|
264
|
+
(reason ? "&reason=" + encodeURIComponent(String(reason)) : "") +
|
|
265
|
+
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
267
266
|
(hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
|
|
268
|
-
(hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "")
|
|
269
|
-
(reason ? "&reason=" + encodeURIComponent(String(reason)) : "");
|
|
267
|
+
(hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "");
|
|
270
268
|
let headers = this.headers;
|
|
271
269
|
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
272
270
|
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
@@ -311,6 +309,30 @@ class fhcRecipeApi {
|
|
|
311
309
|
.then(doc => true)
|
|
312
310
|
.catch(err => this.handleError(err));
|
|
313
311
|
}
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
* @summary setVision
|
|
315
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
316
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
317
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
318
|
+
* @param rid rid
|
|
319
|
+
* @param vision vision
|
|
320
|
+
*/
|
|
321
|
+
setVisionUsingPUT(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, rid, vision) {
|
|
322
|
+
let _body = null;
|
|
323
|
+
const _url = this.host +
|
|
324
|
+
`/recipe/${encodeURIComponent(String(rid))}/vision` +
|
|
325
|
+
"?ts=" +
|
|
326
|
+
new Date().getTime() +
|
|
327
|
+
(vision ? "&vision=" + encodeURIComponent(String(vision)) : "");
|
|
328
|
+
let headers = this.headers;
|
|
329
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
330
|
+
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
331
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
332
|
+
return XHR_1.XHR.sendCommand("PUT", _url, headers, _body, this.fetchImpl)
|
|
333
|
+
.then(doc => new PutVisionResult_1.PutVisionResult(doc.body))
|
|
334
|
+
.catch(err => this.handleError(err));
|
|
335
|
+
}
|
|
314
336
|
/**
|
|
315
337
|
*
|
|
316
338
|
* @summary updateFeedbackFlag
|
|
@@ -330,8 +352,8 @@ class fhcRecipeApi {
|
|
|
330
352
|
`/recipe/${encodeURIComponent(String(rid))}/feedback/${encodeURIComponent(String(feedbackFlag))}` +
|
|
331
353
|
"?ts=" +
|
|
332
354
|
new Date().getTime() +
|
|
333
|
-
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
334
355
|
(hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
|
|
356
|
+
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
335
357
|
(hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
|
|
336
358
|
(hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "");
|
|
337
359
|
let headers = this.headers;
|
|
@@ -339,7 +361,7 @@ class fhcRecipeApi {
|
|
|
339
361
|
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
340
362
|
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
341
363
|
return XHR_1.XHR.sendCommand("PUT", _url, headers, _body, this.fetchImpl)
|
|
342
|
-
.then(doc =>
|
|
364
|
+
.then(doc => new UpdateFeedbackFlagResult_1.UpdateFeedbackFlagResult(doc.body))
|
|
343
365
|
.catch(err => this.handleError(err));
|
|
344
366
|
}
|
|
345
367
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { ConsultCurrentSsinResponse } from "../model/ConsultCurrentSsinResponse";
|
|
14
|
+
import { RnConsultPersonMid } from "../model/RnConsultPersonMid";
|
|
15
|
+
import { RnConsultRegisterPersonResponseDto } from "../model/RnConsultRegisterPersonResponseDto";
|
|
16
|
+
import { RnConsultSearchPersonBySsinResponseDto } from "../model/RnConsultSearchPersonBySsinResponseDto";
|
|
17
|
+
import { RnConsultSearchPersonPhoneticallyResponseDto } from "../model/RnConsultSearchPersonPhoneticallyResponseDto";
|
|
18
|
+
import { VerifyIdResponse } from "../model/VerifyIdResponse";
|
|
19
|
+
export declare class fhcRnConsultApi {
|
|
20
|
+
host: string;
|
|
21
|
+
headers: Array<XHR.Header>;
|
|
22
|
+
fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
23
|
+
constructor(host: string, headers: any, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>);
|
|
24
|
+
setHeaders(h: Array<XHR.Header>): void;
|
|
25
|
+
handleError(e: XHR.XHRError): never;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @summary consultCurrentSsin
|
|
29
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
30
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
31
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
32
|
+
* @param ssin ssin
|
|
33
|
+
*/
|
|
34
|
+
consultCurrentSsinUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, ssin: string): Promise<ConsultCurrentSsinResponse>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @summary registerPerson
|
|
38
|
+
* @param body mid
|
|
39
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
40
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
41
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
42
|
+
*/
|
|
43
|
+
registerPersonUsingPOST1(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, body?: RnConsultPersonMid): Promise<RnConsultRegisterPersonResponseDto>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @summary searchPersonBySsin
|
|
47
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
48
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
49
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
50
|
+
* @param ssin ssin
|
|
51
|
+
*/
|
|
52
|
+
searchPersonBySsinUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, ssin: string): Promise<RnConsultSearchPersonBySsinResponseDto>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @summary searchPersonPhonetically
|
|
56
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
57
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
58
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
59
|
+
* @param dateOfBirth dateOfBirth
|
|
60
|
+
* @param lastName lastName
|
|
61
|
+
* @param firstName firstName
|
|
62
|
+
* @param middleName middleName
|
|
63
|
+
* @param matchingType matchingType
|
|
64
|
+
* @param gender gender
|
|
65
|
+
* @param countryCode countryCode
|
|
66
|
+
* @param cityCode cityCode
|
|
67
|
+
* @param tolerance tolerance
|
|
68
|
+
* @param limit limit
|
|
69
|
+
*/
|
|
70
|
+
searchPersonPhoneticallyUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, dateOfBirth: number, lastName: string, firstName?: string, middleName?: string, matchingType?: string, gender?: string, countryCode?: number, cityCode?: string, tolerance?: number, limit?: number): Promise<RnConsultSearchPersonPhoneticallyResponseDto>;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @summary verifyId
|
|
74
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
75
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
76
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
77
|
+
* @param ssin ssin
|
|
78
|
+
* @param cardNumber cardNumber
|
|
79
|
+
* @param barCoded barCoded
|
|
80
|
+
*/
|
|
81
|
+
verifyIdUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, ssin?: string, cardNumber?: string, barCoded?: string): Promise<VerifyIdResponse>;
|
|
82
|
+
}
|