Skip to content

Commit

Permalink
drop obsolete classes and XSD generation
Browse files Browse the repository at this point in the history
  • Loading branch information
unixoid committed Aug 1, 2024
1 parent c19797f commit 8614f46
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 203 deletions.
57 changes: 0 additions & 57 deletions commons/ihe/xacml20/model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,61 +12,4 @@
<version>5.0-SNAPSHOT</version>
</parent>

<dependencies>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>${jaxb-plugin-version}</version>
<dependencies>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-jxc</artifactId>
<version>${jaxb-version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>${jaxb-version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>schemagen</goal>
</goals>
</execution>
</executions>
<configuration>
<sources>
<source>src/main/java/org/openehealth/ipf/commons/ihe/xacml20/model/CodeFirstSchema.java</source>
</sources>
<clearOutputDir>false</clearOutputDir>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<createJavaDocAnnotations>false</createJavaDocAnnotations>
<locale>en</locale>
<transformSchemas>
<transformSchema>
<uri>http://www.openehealth.org/ipf/ppq</uri>
<toPrefix>ipf</toPrefix>
<toFile>ipf-ppq.xsd</toFile>
</transformSchema>
<transformSchema>
<uri>dummy</uri>
<toPrefix>dummy</toPrefix>
<toFile>dummy.xsd</toFile>
</transformSchema>
</transformSchemas>
</configuration>
</plugin>
</plugins>
</build>

</project>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,40 +17,17 @@

import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;
import lombok.Getter;

/**
* @author Dmytro Rud
*/
@XmlType(name = "CX", namespace = "http://www.openehealth.org/ipf/ppq")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class CX {

private String id;
private String assigningAuthorityId;

@XmlAttribute(required = true)
public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

@XmlAttribute(required = true)
public String getAssigningAuthorityId() {
return assigningAuthorityId;
}

public void setAssigningAuthorityId(String assigningAuthorityId) {
this.assigningAuthorityId = assigningAuthorityId;
}
@Getter private final String id;
@Getter private final String assigningAuthorityId;

public String toHl7String() {
return id + "^^^&" + assigningAuthorityId + "&ISO";
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@
import lombok.AllArgsConstructor;
import lombok.Getter;

import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlType;

/**
* @author Dmytro Rud
*/
@AllArgsConstructor
@XmlType(name = "NameQualifier", namespace = "http://www.openehealth.org/ipf/ppq")
@XmlEnum()
public enum NameQualifier {
PATIENT("urn:e-health-suisse:2015:epr-spid"),
PROFESSIONAL("urn:gs1:gln"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,12 @@
import lombok.AllArgsConstructor;
import lombok.Getter;

import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlType;

import static org.openehealth.ipf.commons.ihe.xacml20.model.PpqConstants.CodingSystemIds;

/**
* @author Dmytro Rud
*/
@AllArgsConstructor
@XmlType(name = "PurposeOfUse", namespace = "http://www.openehealth.org/ipf/ppq")
@XmlEnum
public enum PurposeOfUse {
NORMAL (new CE("NORM", CodingSystemIds.SWISS_PURPOSE_OF_USE, "eHealth Suisse Verwendungszweck", "Normal access")),
EMERGENCY (new CE("EMER", CodingSystemIds.SWISS_PURPOSE_OF_USE, "eHealth Suisse Verwendungszweck", "Emergency access")),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,12 @@
import lombok.AllArgsConstructor;
import lombok.Getter;

import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlType;

import static org.openehealth.ipf.commons.ihe.xacml20.model.PpqConstants.CodingSystemIds;

/**
* @author Dmytro Rud
*/
@AllArgsConstructor
@XmlType(name = "SubjectRole", namespace = "http://www.openehealth.org/ipf/ppq")
@XmlEnum
public enum SubjectRole {
PATIENT (new CE("PAT", CodingSystemIds.SWISS_SUBJECT_ROLE, "eHealth Suisse EPD Akteure", "Patient")),
PROFESSIONAL (new CE("HCP", CodingSystemIds.SWISS_SUBJECT_ROLE, "eHealth Suisse EPD Akteure", "Healthcare Professional")),
Expand Down

0 comments on commit 8614f46

Please sign in to comment.