001/*-
002 * #%L
003 * Smile CDR - CDR
004 * %%
005 * Copyright (C) 2016 - 2025 Smile CDR, Inc.
006 * %%
007 * All rights reserved.
008 * #L%
009 */
010package ca.cdr.test.hl7v2;
011
012public class MinimalHl7v2ToFhirTestData {
013
014        public static class IdentifierData {
015                public final String system;
016                public final String value;
017
018                public IdentifierData(String theSystem, String theValue) {
019                        system = theSystem;
020                        value = theValue;
021                }
022        }
023
024        public static class V2ToFhirDateTime {
025                public final String v2Date;
026                public final String expectedFhirDate;
027
028                public V2ToFhirDateTime(String theV2Date, String theExpectedFhirDate) {
029                        v2Date = theV2Date;
030                        expectedFhirDate = theExpectedFhirDate;
031                }
032        }
033
034        public static class PatientData {
035                public final IdentifierData identifier;
036                public final String militaryBranch;
037
038                public PatientData(String theSystem, String theValue, String theMilitaryBranch) {
039                        this.identifier = new IdentifierData(theSystem, theValue);
040                        this.militaryBranch = theMilitaryBranch;
041                }
042        }
043
044        public static class PractitionerData {
045                public final IdentifierData identifier;
046
047                public PractitionerData(String theSystem, String theValue) {
048                        this.identifier = new IdentifierData(theSystem, theValue);
049                }
050        }
051
052        public static class EncounterData {
053                public final IdentifierData identifier;
054                public final V2ToFhirDateTime expectedAdmitTime;
055
056                public EncounterData(String theSystem, String theValue, V2ToFhirDateTime theExpectedAdmitTime) {
057                        this.identifier = new IdentifierData(theSystem, theValue);
058                        this.expectedAdmitTime = theExpectedAdmitTime;
059                }
060        }
061
062        public static class HospitalData {
063                public final IdentifierData identifier;
064                public final String name;
065
066                public HospitalData(String theSystem, String theValue, String theName) {
067                        this.identifier = new IdentifierData(theSystem, theValue);
068                        this.name = theName;
069                }
070        }
071
072        public static class ObservationData {
073                public final String system;
074                public final String code;
075                public final String text;
076                public final String status;
077                public final V2ToFhirDateTime dateTime;
078
079                public ObservationData(
080                        String theSystem, String theCode, String theText, String theStatus, V2ToFhirDateTime theDateTime) {
081                        system = theSystem;
082                        code = theCode;
083                        text = theText;
084                        status = theStatus;
085                        dateTime = theDateTime;
086                }
087        }
088}