DrugWS
Click here for a complete list of operations.
SavePatientDrugInformation
Save/Update one drug abuse information record for a patient
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /PasLinkWS/DrugWS/DrugWS.asmx HTTP/1.1
Host: linkws.service.tieto.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://healthXML.org/PasLink/SavePatientDrugInformation"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<RequestHeader xmlns="http://healthXML.org/PasLink">
<AuthenticationInfo>xml</AuthenticationInfo>
<UserName>string</UserName>
<SystemInfo>
<Version>string</Version>
<SysName>string</SysName>
</SystemInfo>
<ConfigSectionName>string</ConfigSectionName>
<NextKey>string</NextKey>
</RequestHeader>
</soap:Header>
<soap:Body>
<SavePatientDrugInformation xmlns="http://healthXML.org/PasLink">
<SavePatientDrugInformationRequest>
<PatientDrugInformation>
<PatientId>string</PatientId>
<CarePeriodId>string</CarePeriodId>
<DrugInformationId>string</DrugInformationId>
<Status>ALL or ACTIVE or DELETED</Status>
<LastRegistrationDate>dateTime</LastRegistrationDate>
<StartDate>dateTime</StartDate>
<EndDate>dateTime</EndDate>
<Responsible>
<MedicalUnit xsi:nil="true" />
<CareUnit xsi:nil="true" />
<Resource xsi:nil="true" />
</Responsible>
<Treatment>
<PreviousDrugAddictionTreatment xsi:nil="true" />
<AgeFirstDrugAddictionTreatment>int</AgeFirstDrugAddictionTreatment>
<OpioidSubstitutionTreatment xsi:nil="true" />
<AgeFirstOpioidSubstitutionTreatment>int</AgeFirstOpioidSubstitutionTreatment>
</Treatment>
<PersistentSomaticIllnesses>
<Code>string</Code>
<Text>string</Text>
<CodeSystemOID>token</CodeSystemOID>
<CodedValue xsi:nil="true" />
</PersistentSomaticIllnesses>
<Pregnancy>
<Pregnant xsi:nil="true" />
<WeeksPregnant>int</WeeksPregnant>
</Pregnancy>
<NumberOfOwnChilderen>int</NumberOfOwnChilderen>
<Children>
<DrugInformationChildrenId>string</DrugInformationChildrenId>
<LivingWith xsi:nil="true" />
<ChildsBirthYear>int</ChildsBirthYear>
</Children>
<Children>
<DrugInformationChildrenId>string</DrugInformationChildrenId>
<LivingWith xsi:nil="true" />
<ChildsBirthYear>int</ChildsBirthYear>
</Children>
<LivingConditionsLastFourWeeks>
<Code>string</Code>
<Text>string</Text>
<CodeSystemOID>token</CodeSystemOID>
<CodedValue xsi:nil="true" />
</LivingConditionsLastFourWeeks>
<Livings>
<DrugInformationLivingId>string</DrugInformationLivingId>
<LivingWith xsi:nil="true" />
</Livings>
<Livings>
<DrugInformationLivingId>string</DrugInformationLivingId>
<LivingWith xsi:nil="true" />
</Livings>
<MentalHealth>
<DrugInformationMentalHealthId>string</DrugInformationMentalHealthId>
<Case xsi:nil="true" />
<HealthLastFourWeeks xsi:nil="true" />
<PreviusHealthCondition xsi:nil="true" />
</MentalHealth>
<MentalHealth>
<DrugInformationMentalHealthId>string</DrugInformationMentalHealthId>
<Case xsi:nil="true" />
<HealthLastFourWeeks xsi:nil="true" />
<PreviusHealthCondition xsi:nil="true" />
</MentalHealth>
<DrugInjections>
<SyringeInjection xsi:nil="true" />
<AgeFirstSyringeInjection>int</AgeFirstSyringeInjection>
<InjectionFrequencyLastFourWeeks xsi:nil="true" />
<SharingOfNeedleOrSyringe xsi:nil="true" />
</DrugInjections>
<DrugsUsed>
<DrugInformationDrugId>string</DrugInformationDrugId>
<DrugType xsi:nil="true" />
<RankingOfUse>int</RankingOfUse>
<FrequencyOfUse xsi:nil="true" />
<AgeOfFirstUse>int</AgeOfFirstUse>
<IngestionMethod xsi:nil="true" />
</DrugsUsed>
<DrugsUsed>
<DrugInformationDrugId>string</DrugInformationDrugId>
<DrugType xsi:nil="true" />
<RankingOfUse>int</RankingOfUse>
<FrequencyOfUse xsi:nil="true" />
<AgeOfFirstUse>int</AgeOfFirstUse>
<IngestionMethod xsi:nil="true" />
</DrugsUsed>
<BloodInfections>
<DrugInformationBloodInfectionId>string</DrugInformationBloodInfectionId>
<VirusType xsi:nil="true" />
<Tested xsi:nil="true" />
</BloodInfections>
<BloodInfections>
<DrugInformationBloodInfectionId>string</DrugInformationBloodInfectionId>
<VirusType xsi:nil="true" />
<Tested xsi:nil="true" />
</BloodInfections>
<ClosingOfRegistration>
<MedicalUnit xsi:nil="true" />
<CareUnit xsi:nil="true" />
<Resource xsi:nil="true" />
</ClosingOfRegistration>
<Registration>
<Date>dateTime</Date>
<Name>string</Name>
<Organization xsi:nil="true" />
<SignedBy>string</SignedBy>
</Registration>
<Update>
<UpdateCount>int</UpdateCount>
</Update>
</PatientDrugInformation>
</SavePatientDrugInformationRequest>
</SavePatientDrugInformation>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="http://healthXML.org/PasLink">
<AuthenticationInfo>xml</AuthenticationInfo>
<ErrorInformation>
<FunctionName>string</FunctionName>
<Severity>None or Critical or Warning or Information</Severity>
<ErrorType>string</ErrorType>
<ModuleName>string</ModuleName>
<Description>string</Description>
<Code>long</Code>
<SubCode>long</SubCode>
<RecoverableError>boolean</RecoverableError>
<SubModuleName>string</SubModuleName>
</ErrorInformation>
<ProfileInfo>
<DeptCode>string</DeptCode>
<SectionCode>string</SectionCode>
<UnitCode>string</UnitCode>
<ProfileName>string</ProfileName>
</ProfileInfo>
<SystemInformation>
<DatabaseInformation>string</DatabaseInformation>
<DatabaseServer>string</DatabaseServer>
<DatabaseName>string</DatabaseName>
</SystemInformation>
<NextKey>string</NextKey>
</ResponseHeader>
</soap:Header>
<soap:Body>
<SavePatientDrugInformationResponse xmlns="http://healthXML.org/PasLink">
<SavePatientDrugInformationResponse>
<PatientDrugInformation>
<PatientId>string</PatientId>
<CarePeriodId>string</CarePeriodId>
<DrugInformationId>string</DrugInformationId>
<Status>ALL or ACTIVE or DELETED</Status>
<LastRegistrationDate>dateTime</LastRegistrationDate>
<StartDate>dateTime</StartDate>
<EndDate>dateTime</EndDate>
<Responsible>
<MedicalUnit xsi:nil="true" />
<CareUnit xsi:nil="true" />
<Resource xsi:nil="true" />
</Responsible>
<Treatment>
<PreviousDrugAddictionTreatment xsi:nil="true" />
<AgeFirstDrugAddictionTreatment>int</AgeFirstDrugAddictionTreatment>
<OpioidSubstitutionTreatment xsi:nil="true" />
<AgeFirstOpioidSubstitutionTreatment>int</AgeFirstOpioidSubstitutionTreatment>
</Treatment>
<PersistentSomaticIllnesses>
<Code>string</Code>
<Text>string</Text>
<CodeSystemOID>token</CodeSystemOID>
<CodedValue xsi:nil="true" />
</PersistentSomaticIllnesses>
<Pregnancy>
<Pregnant xsi:nil="true" />
<WeeksPregnant>int</WeeksPregnant>
</Pregnancy>
<NumberOfOwnChilderen>int</NumberOfOwnChilderen>
<Children>
<DrugInformationChildrenId>string</DrugInformationChildrenId>
<LivingWith xsi:nil="true" />
<ChildsBirthYear>int</ChildsBirthYear>
</Children>
<Children>
<DrugInformationChildrenId>string</DrugInformationChildrenId>
<LivingWith xsi:nil="true" />
<ChildsBirthYear>int</ChildsBirthYear>
</Children>
<LivingConditionsLastFourWeeks>
<Code>string</Code>
<Text>string</Text>
<CodeSystemOID>token</CodeSystemOID>
<CodedValue xsi:nil="true" />
</LivingConditionsLastFourWeeks>
<Livings>
<DrugInformationLivingId>string</DrugInformationLivingId>
<LivingWith xsi:nil="true" />
</Livings>
<Livings>
<DrugInformationLivingId>string</DrugInformationLivingId>
<LivingWith xsi:nil="true" />
</Livings>
<MentalHealth>
<DrugInformationMentalHealthId>string</DrugInformationMentalHealthId>
<Case xsi:nil="true" />
<HealthLastFourWeeks xsi:nil="true" />
<PreviusHealthCondition xsi:nil="true" />
</MentalHealth>
<MentalHealth>
<DrugInformationMentalHealthId>string</DrugInformationMentalHealthId>
<Case xsi:nil="true" />
<HealthLastFourWeeks xsi:nil="true" />
<PreviusHealthCondition xsi:nil="true" />
</MentalHealth>
<DrugInjections>
<SyringeInjection xsi:nil="true" />
<AgeFirstSyringeInjection>int</AgeFirstSyringeInjection>
<InjectionFrequencyLastFourWeeks xsi:nil="true" />
<SharingOfNeedleOrSyringe xsi:nil="true" />
</DrugInjections>
<DrugsUsed>
<DrugInformationDrugId>string</DrugInformationDrugId>
<DrugType xsi:nil="true" />
<RankingOfUse>int</RankingOfUse>
<FrequencyOfUse xsi:nil="true" />
<AgeOfFirstUse>int</AgeOfFirstUse>
<IngestionMethod xsi:nil="true" />
</DrugsUsed>
<DrugsUsed>
<DrugInformationDrugId>string</DrugInformationDrugId>
<DrugType xsi:nil="true" />
<RankingOfUse>int</RankingOfUse>
<FrequencyOfUse xsi:nil="true" />
<AgeOfFirstUse>int</AgeOfFirstUse>
<IngestionMethod xsi:nil="true" />
</DrugsUsed>
<BloodInfections>
<DrugInformationBloodInfectionId>string</DrugInformationBloodInfectionId>
<VirusType xsi:nil="true" />
<Tested xsi:nil="true" />
</BloodInfections>
<BloodInfections>
<DrugInformationBloodInfectionId>string</DrugInformationBloodInfectionId>
<VirusType xsi:nil="true" />
<Tested xsi:nil="true" />
</BloodInfections>
<ClosingOfRegistration>
<MedicalUnit xsi:nil="true" />
<CareUnit xsi:nil="true" />
<Resource xsi:nil="true" />
</ClosingOfRegistration>
<Registration>
<Date>dateTime</Date>
<Name>string</Name>
<Organization xsi:nil="true" />
<SignedBy>string</SignedBy>
</Registration>
<Update>
<UpdateCount>int</UpdateCount>
</Update>
</PatientDrugInformation>
</SavePatientDrugInformationResponse>
</SavePatientDrugInformationResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /PasLinkWS/DrugWS/DrugWS.asmx HTTP/1.1
Host: linkws.service.tieto.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<RequestHeader xmlns="http://healthXML.org/PasLink">
<AuthenticationInfo>xml</AuthenticationInfo>
<UserName>string</UserName>
<SystemInfo>
<Version>string</Version>
<SysName>string</SysName>
</SystemInfo>
<ConfigSectionName>string</ConfigSectionName>
<NextKey>string</NextKey>
</RequestHeader>
</soap12:Header>
<soap12:Body>
<SavePatientDrugInformation xmlns="http://healthXML.org/PasLink">
<SavePatientDrugInformationRequest>
<PatientDrugInformation>
<PatientId>string</PatientId>
<CarePeriodId>string</CarePeriodId>
<DrugInformationId>string</DrugInformationId>
<Status>ALL or ACTIVE or DELETED</Status>
<LastRegistrationDate>dateTime</LastRegistrationDate>
<StartDate>dateTime</StartDate>
<EndDate>dateTime</EndDate>
<Responsible>
<MedicalUnit xsi:nil="true" />
<CareUnit xsi:nil="true" />
<Resource xsi:nil="true" />
</Responsible>
<Treatment>
<PreviousDrugAddictionTreatment xsi:nil="true" />
<AgeFirstDrugAddictionTreatment>int</AgeFirstDrugAddictionTreatment>
<OpioidSubstitutionTreatment xsi:nil="true" />
<AgeFirstOpioidSubstitutionTreatment>int</AgeFirstOpioidSubstitutionTreatment>
</Treatment>
<PersistentSomaticIllnesses>
<Code>string</Code>
<Text>string</Text>
<CodeSystemOID>token</CodeSystemOID>
<CodedValue xsi:nil="true" />
</PersistentSomaticIllnesses>
<Pregnancy>
<Pregnant xsi:nil="true" />
<WeeksPregnant>int</WeeksPregnant>
</Pregnancy>
<NumberOfOwnChilderen>int</NumberOfOwnChilderen>
<Children>
<DrugInformationChildrenId>string</DrugInformationChildrenId>
<LivingWith xsi:nil="true" />
<ChildsBirthYear>int</ChildsBirthYear>
</Children>
<Children>
<DrugInformationChildrenId>string</DrugInformationChildrenId>
<LivingWith xsi:nil="true" />
<ChildsBirthYear>int</ChildsBirthYear>
</Children>
<LivingConditionsLastFourWeeks>
<Code>string</Code>
<Text>string</Text>
<CodeSystemOID>token</CodeSystemOID>
<CodedValue xsi:nil="true" />
</LivingConditionsLastFourWeeks>
<Livings>
<DrugInformationLivingId>string</DrugInformationLivingId>
<LivingWith xsi:nil="true" />
</Livings>
<Livings>
<DrugInformationLivingId>string</DrugInformationLivingId>
<LivingWith xsi:nil="true" />
</Livings>
<MentalHealth>
<DrugInformationMentalHealthId>string</DrugInformationMentalHealthId>
<Case xsi:nil="true" />
<HealthLastFourWeeks xsi:nil="true" />
<PreviusHealthCondition xsi:nil="true" />
</MentalHealth>
<MentalHealth>
<DrugInformationMentalHealthId>string</DrugInformationMentalHealthId>
<Case xsi:nil="true" />
<HealthLastFourWeeks xsi:nil="true" />
<PreviusHealthCondition xsi:nil="true" />
</MentalHealth>
<DrugInjections>
<SyringeInjection xsi:nil="true" />
<AgeFirstSyringeInjection>int</AgeFirstSyringeInjection>
<InjectionFrequencyLastFourWeeks xsi:nil="true" />
<SharingOfNeedleOrSyringe xsi:nil="true" />
</DrugInjections>
<DrugsUsed>
<DrugInformationDrugId>string</DrugInformationDrugId>
<DrugType xsi:nil="true" />
<RankingOfUse>int</RankingOfUse>
<FrequencyOfUse xsi:nil="true" />
<AgeOfFirstUse>int</AgeOfFirstUse>
<IngestionMethod xsi:nil="true" />
</DrugsUsed>
<DrugsUsed>
<DrugInformationDrugId>string</DrugInformationDrugId>
<DrugType xsi:nil="true" />
<RankingOfUse>int</RankingOfUse>
<FrequencyOfUse xsi:nil="true" />
<AgeOfFirstUse>int</AgeOfFirstUse>
<IngestionMethod xsi:nil="true" />
</DrugsUsed>
<BloodInfections>
<DrugInformationBloodInfectionId>string</DrugInformationBloodInfectionId>
<VirusType xsi:nil="true" />
<Tested xsi:nil="true" />
</BloodInfections>
<BloodInfections>
<DrugInformationBloodInfectionId>string</DrugInformationBloodInfectionId>
<VirusType xsi:nil="true" />
<Tested xsi:nil="true" />
</BloodInfections>
<ClosingOfRegistration>
<MedicalUnit xsi:nil="true" />
<CareUnit xsi:nil="true" />
<Resource xsi:nil="true" />
</ClosingOfRegistration>
<Registration>
<Date>dateTime</Date>
<Name>string</Name>
<Organization xsi:nil="true" />
<SignedBy>string</SignedBy>
</Registration>
<Update>
<UpdateCount>int</UpdateCount>
</Update>
</PatientDrugInformation>
</SavePatientDrugInformationRequest>
</SavePatientDrugInformation>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<ResponseHeader xmlns="http://healthXML.org/PasLink">
<AuthenticationInfo>xml</AuthenticationInfo>
<ErrorInformation>
<FunctionName>string</FunctionName>
<Severity>None or Critical or Warning or Information</Severity>
<ErrorType>string</ErrorType>
<ModuleName>string</ModuleName>
<Description>string</Description>
<Code>long</Code>
<SubCode>long</SubCode>
<RecoverableError>boolean</RecoverableError>
<SubModuleName>string</SubModuleName>
</ErrorInformation>
<ProfileInfo>
<DeptCode>string</DeptCode>
<SectionCode>string</SectionCode>
<UnitCode>string</UnitCode>
<ProfileName>string</ProfileName>
</ProfileInfo>
<SystemInformation>
<DatabaseInformation>string</DatabaseInformation>
<DatabaseServer>string</DatabaseServer>
<DatabaseName>string</DatabaseName>
</SystemInformation>
<NextKey>string</NextKey>
</ResponseHeader>
</soap12:Header>
<soap12:Body>
<SavePatientDrugInformationResponse xmlns="http://healthXML.org/PasLink">
<SavePatientDrugInformationResponse>
<PatientDrugInformation>
<PatientId>string</PatientId>
<CarePeriodId>string</CarePeriodId>
<DrugInformationId>string</DrugInformationId>
<Status>ALL or ACTIVE or DELETED</Status>
<LastRegistrationDate>dateTime</LastRegistrationDate>
<StartDate>dateTime</StartDate>
<EndDate>dateTime</EndDate>
<Responsible>
<MedicalUnit xsi:nil="true" />
<CareUnit xsi:nil="true" />
<Resource xsi:nil="true" />
</Responsible>
<Treatment>
<PreviousDrugAddictionTreatment xsi:nil="true" />
<AgeFirstDrugAddictionTreatment>int</AgeFirstDrugAddictionTreatment>
<OpioidSubstitutionTreatment xsi:nil="true" />
<AgeFirstOpioidSubstitutionTreatment>int</AgeFirstOpioidSubstitutionTreatment>
</Treatment>
<PersistentSomaticIllnesses>
<Code>string</Code>
<Text>string</Text>
<CodeSystemOID>token</CodeSystemOID>
<CodedValue xsi:nil="true" />
</PersistentSomaticIllnesses>
<Pregnancy>
<Pregnant xsi:nil="true" />
<WeeksPregnant>int</WeeksPregnant>
</Pregnancy>
<NumberOfOwnChilderen>int</NumberOfOwnChilderen>
<Children>
<DrugInformationChildrenId>string</DrugInformationChildrenId>
<LivingWith xsi:nil="true" />
<ChildsBirthYear>int</ChildsBirthYear>
</Children>
<Children>
<DrugInformationChildrenId>string</DrugInformationChildrenId>
<LivingWith xsi:nil="true" />
<ChildsBirthYear>int</ChildsBirthYear>
</Children>
<LivingConditionsLastFourWeeks>
<Code>string</Code>
<Text>string</Text>
<CodeSystemOID>token</CodeSystemOID>
<CodedValue xsi:nil="true" />
</LivingConditionsLastFourWeeks>
<Livings>
<DrugInformationLivingId>string</DrugInformationLivingId>
<LivingWith xsi:nil="true" />
</Livings>
<Livings>
<DrugInformationLivingId>string</DrugInformationLivingId>
<LivingWith xsi:nil="true" />
</Livings>
<MentalHealth>
<DrugInformationMentalHealthId>string</DrugInformationMentalHealthId>
<Case xsi:nil="true" />
<HealthLastFourWeeks xsi:nil="true" />
<PreviusHealthCondition xsi:nil="true" />
</MentalHealth>
<MentalHealth>
<DrugInformationMentalHealthId>string</DrugInformationMentalHealthId>
<Case xsi:nil="true" />
<HealthLastFourWeeks xsi:nil="true" />
<PreviusHealthCondition xsi:nil="true" />
</MentalHealth>
<DrugInjections>
<SyringeInjection xsi:nil="true" />
<AgeFirstSyringeInjection>int</AgeFirstSyringeInjection>
<InjectionFrequencyLastFourWeeks xsi:nil="true" />
<SharingOfNeedleOrSyringe xsi:nil="true" />
</DrugInjections>
<DrugsUsed>
<DrugInformationDrugId>string</DrugInformationDrugId>
<DrugType xsi:nil="true" />
<RankingOfUse>int</RankingOfUse>
<FrequencyOfUse xsi:nil="true" />
<AgeOfFirstUse>int</AgeOfFirstUse>
<IngestionMethod xsi:nil="true" />
</DrugsUsed>
<DrugsUsed>
<DrugInformationDrugId>string</DrugInformationDrugId>
<DrugType xsi:nil="true" />
<RankingOfUse>int</RankingOfUse>
<FrequencyOfUse xsi:nil="true" />
<AgeOfFirstUse>int</AgeOfFirstUse>
<IngestionMethod xsi:nil="true" />
</DrugsUsed>
<BloodInfections>
<DrugInformationBloodInfectionId>string</DrugInformationBloodInfectionId>
<VirusType xsi:nil="true" />
<Tested xsi:nil="true" />
</BloodInfections>
<BloodInfections>
<DrugInformationBloodInfectionId>string</DrugInformationBloodInfectionId>
<VirusType xsi:nil="true" />
<Tested xsi:nil="true" />
</BloodInfections>
<ClosingOfRegistration>
<MedicalUnit xsi:nil="true" />
<CareUnit xsi:nil="true" />
<Resource xsi:nil="true" />
</ClosingOfRegistration>
<Registration>
<Date>dateTime</Date>
<Name>string</Name>
<Organization xsi:nil="true" />
<SignedBy>string</SignedBy>
</Registration>
<Update>
<UpdateCount>int</UpdateCount>
</Update>
</PatientDrugInformation>
</SavePatientDrugInformationResponse>
</SavePatientDrugInformationResponse>
</soap12:Body>
</soap12:Envelope>