-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from nhsconnect/PRMT-3252
PRMT-3252 Ensure health record End to End XML is unchanged for Small EHRs
- Loading branch information
Showing
10 changed files
with
326 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/test/java/uk/nhs/prm/deduction/e2e/ehr_transfer/Gp2gpMessengerQueue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package uk.nhs.prm.deduction.e2e.ehr_transfer; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Component; | ||
import uk.nhs.prm.deduction.e2e.TestConfiguration; | ||
import uk.nhs.prm.deduction.e2e.queue.QueueMessageHelper; | ||
import uk.nhs.prm.deduction.e2e.queue.ThinlyWrappedSqsClient; | ||
|
||
@Component | ||
public class Gp2gpMessengerQueue extends QueueMessageHelper { | ||
|
||
@Autowired | ||
public Gp2gpMessengerQueue(ThinlyWrappedSqsClient thinlyWrappedSqsClient, TestConfiguration configuration) { | ||
super(thinlyWrappedSqsClient, configuration.gp2gpMessengerQueueUri()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
src/test/java/uk/nhs/prm/deduction/e2e/transfer_tracker_db/TransferTrackerDbMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package uk.nhs.prm.deduction.e2e.transfer_tracker_db; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.google.gson.GsonBuilder; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@Builder(toBuilder = true) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class TransferTrackerDbMessage { | ||
|
||
private String conversationId; | ||
private String largeEhrCoreMessageId; | ||
private String nemsMessageId; | ||
private String nhsNumber; | ||
private String sourceGp; | ||
private String state; | ||
private String nemsEventLastUpdated; | ||
private String createdAt; | ||
private String lastUpdatedAt; | ||
|
||
public TransferTrackerDbMessage(String conversationId, | ||
String largeEhrCoreMessageId, | ||
String nemsMessageId, | ||
String nhsNumber, | ||
String sourceGp, | ||
String state, | ||
String nemsEventLastUpdated, | ||
String createdAt, | ||
String lastUpdatedAt){ | ||
this.conversationId = conversationId; | ||
this.largeEhrCoreMessageId = largeEhrCoreMessageId; | ||
this.nemsMessageId = nemsMessageId; | ||
this.nhsNumber = nhsNumber; | ||
this.sourceGp = sourceGp; | ||
this.state = state; | ||
this.nemsEventLastUpdated = nemsEventLastUpdated; | ||
this.createdAt = createdAt; | ||
this.lastUpdatedAt = lastUpdatedAt; | ||
} | ||
|
||
public String toJsonString() { | ||
return new GsonBuilder().disableHtmlEscaping().create().toJson(this); | ||
} | ||
} |
Oops, something went wrong.