本文整理汇总了Java中ch.elexis.data.Mandant.addXid方法的典型用法代码示例。如果您正苦于以下问题:Java Mandant.addXid方法的具体用法?Java Mandant.addXid怎么用?Java Mandant.addXid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ch.elexis.data.Mandant
的用法示例。
在下文中一共展示了Mandant.addXid方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createMandanten
import ch.elexis.data.Mandant; //导入方法依赖的package包/类
private void createMandanten(){
mandator = new Mandant("Testinger", "Hannelore", "01.01.1999", "w");
mandator.setLabel("mt");
mandator.set(Kontakt.FLD_STREET, "Testweg 15");
mandator.set(Kontakt.FLD_ZIP, "1234");
mandator.set(Kontakt.FLD_PLACE, "Testhausen");
mandator.set(Kontakt.FLD_PHONE1, "+41 79 123 45 90");
mandator.set(Person.TITLE, "Dr. med.");
mandator.setExtInfoStoredObjectByKey("Anrede", "Frau");
mandator.setExtInfoStoredObjectByKey("Kanton", "AG");
mandator.addXid(DOMAIN_EAN, "2000000000002", true);
CoreHub.setMandant(mandator);
}
示例2: before
import ch.elexis.data.Mandant; //导入方法依赖的package包/类
@BeforeClass
public static void before() throws IOException{
patient = new Patient("name", "firstname", "01.01.2000", Patient.FEMALE);
patient.set(Kontakt.FLD_PHONE1, "+01555123");
patient.set(Kontakt.FLD_MOBILEPHONE, "+01444132");
Anschrift anschrift = new Anschrift();
anschrift.setOrt("City");
anschrift.setPlz("123");
anschrift.setStrasse("Street 1");
patient.setAnschrift(anschrift);
addAHVNumber(patient, 1);
mandant = new Mandant("mandant", "firstname", "02.02.2002", Mandant.MALE);
mandant.set(Kontakt.FLD_PHONE1, "+01555987");
mandant.set(Kontakt.FLD_MOBILEPHONE, "+01444987");
anschrift = new Anschrift();
anschrift.setOrt("City");
anschrift.setPlz("987");
anschrift.setStrasse("Street 2");
mandant.setAnschrift(anschrift);
mandant.addXid(DOMAIN_EAN, "2000000000002", true);
Xid.localRegisterXIDDomainIfNotExists(DOMAIN_KSK, "KSK/ZSR-Nr", Xid.ASSIGNMENT_REGIONAL); //$NON-NLS-1$
mandant.addXid(DOMAIN_KSK, "C000002", true);
}
示例3: createMandanten
import ch.elexis.data.Mandant; //导入方法依赖的package包/类
private void createMandanten(){
Mandant mandant = new Mandant("Mandant.tarmed", "Mandant.tarmed", "01.01.1900", "w");
mandant.setLabel("mt");
TarmedACL ta = TarmedACL.getInstance();
mandant.setExtInfoStoredObjectByKey("Anrede", "Frau");
mandant.setExtInfoStoredObjectByKey("Kanton", "AG");
mandant.addXid(DOMAIN_EAN, "2000000000002", true);
// make sure somains are registered
TarmedRequirements.getEAN(mandant);
mandant.addXid(TarmedRequirements.DOMAIN_KSK, "C000002", true);
mandant.setExtInfoStoredObjectByKey(ta.ESR5OR9, "esr9");
mandant.setExtInfoStoredObjectByKey(ta.ESRPLUS, "esr16or27");
mandant.setExtInfoStoredObjectByKey(ta.LOCAL, "praxis");
mandant.setExtInfoStoredObjectByKey(ta.KANTON, "AG");
mandant.setExtInfoStoredObjectByKey(ta.SPEC, "Allgemein");
mandant.setExtInfoStoredObjectByKey(ta.TIERS, "payant");
mandant.setExtInfoStoredObjectByKey(ta.ESRNUMBER, "01-12648-2");
mandant.setExtInfoStoredObjectByKey(ta.ESRSUB, "15453");
mandanten.add(mandant);
CoreHub.setMandant(mandant);
}