Created
June 1, 2018 16:43
-
-
Save gabrieljoelc/805482772d662237a58124801323f6a9 to your computer and use it in GitHub Desktop.
Generated C# classes from Redox json
This file contains hidden or 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
public class Source | |
{ | |
public string ID { get; set; } | |
public string Name { get; set; } | |
} | |
public class Destination | |
{ | |
public string ID { get; set; } | |
public string Name { get; set; } | |
} | |
public class Message | |
{ | |
public int ID { get; set; } | |
} | |
public class Transmission | |
{ | |
public int ID { get; set; } | |
} | |
public class Meta | |
{ | |
public string DataModel { get; set; } | |
public string EventType { get; set; } | |
public DateTime EventDateTime { get; set; } | |
public bool Test { get; set; } | |
public Source Source { get; set; } | |
public List<Destination> Destinations { get; set; } | |
public Message Message { get; set; } | |
public Transmission Transmission { get; set; } | |
public object FacilityCode { get; set; } | |
} | |
public class Identifier | |
{ | |
public string ID { get; set; } | |
public string IDType { get; set; } | |
} | |
public class PhoneNumber | |
{ | |
public string Home { get; set; } | |
public object Office { get; set; } | |
public object Mobile { get; set; } | |
} | |
public class Address | |
{ | |
public string StreetAddress { get; set; } | |
public string City { get; set; } | |
public string State { get; set; } | |
public string ZIP { get; set; } | |
public string County { get; set; } | |
public string Country { get; set; } | |
} | |
public class Demographics | |
{ | |
public string FirstName { get; set; } | |
public string MiddleName { get; set; } | |
public string LastName { get; set; } | |
public string DOB { get; set; } | |
public string SSN { get; set; } | |
public string Sex { get; set; } | |
public string Race { get; set; } | |
public object IsHispanic { get; set; } | |
public string MaritalStatus { get; set; } | |
public object IsDeceased { get; set; } | |
public object DeathDateTime { get; set; } | |
public PhoneNumber PhoneNumber { get; set; } | |
public List<object> EmailAddresses { get; set; } | |
public string Language { get; set; } | |
public List<object> Citizenship { get; set; } | |
public Address Address { get; set; } | |
} | |
public class Patient | |
{ | |
public List<Identifier> Identifiers { get; set; } | |
public Demographics Demographics { get; set; } | |
public List<object> Notes { get; set; } | |
} | |
public class AppointmentInfo | |
{ | |
public string Code { get; set; } | |
public string Codeset { get; set; } | |
public string Description { get; set; } | |
public string Value { get; set; } | |
} | |
public class Address2 | |
{ | |
public string StreetAddress { get; set; } | |
public string City { get; set; } | |
public string State { get; set; } | |
public string ZIP { get; set; } | |
public string County { get; set; } | |
public string Country { get; set; } | |
} | |
public class PhoneNumber2 | |
{ | |
public string Office { get; set; } | |
} | |
public class Location | |
{ | |
public object Type { get; set; } | |
public object Facility { get; set; } | |
public object Department { get; set; } | |
public object Room { get; set; } | |
} | |
public class AttendingProvider | |
{ | |
public string ID { get; set; } | |
public string IDType { get; set; } | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
public List<string> Credentials { get; set; } | |
public Address2 Address { get; set; } | |
public PhoneNumber2 PhoneNumber { get; set; } | |
public Location Location { get; set; } | |
} | |
public class Address3 | |
{ | |
public object StreetAddress { get; set; } | |
public object City { get; set; } | |
public object State { get; set; } | |
public object ZIP { get; set; } | |
public object County { get; set; } | |
public object Country { get; set; } | |
} | |
public class PhoneNumber3 | |
{ | |
public object Office { get; set; } | |
} | |
public class Location2 | |
{ | |
public object Type { get; set; } | |
public object Facility { get; set; } | |
public object Department { get; set; } | |
public object Room { get; set; } | |
} | |
public class ConsultingProvider | |
{ | |
public object ID { get; set; } | |
public object IDType { get; set; } | |
public object FirstName { get; set; } | |
public object LastName { get; set; } | |
public List<object> Credentials { get; set; } | |
public Address3 Address { get; set; } | |
public PhoneNumber3 PhoneNumber { get; set; } | |
public Location2 Location { get; set; } | |
} | |
public class Address4 | |
{ | |
public object StreetAddress { get; set; } | |
public object City { get; set; } | |
public object State { get; set; } | |
public object ZIP { get; set; } | |
public object County { get; set; } | |
public object Country { get; set; } | |
} | |
public class PhoneNumber4 | |
{ | |
public object Office { get; set; } | |
} | |
public class Location3 | |
{ | |
public object Type { get; set; } | |
public object Facility { get; set; } | |
public object Department { get; set; } | |
public object Room { get; set; } | |
} | |
public class ReferringProvider | |
{ | |
public object ID { get; set; } | |
public object IDType { get; set; } | |
public object FirstName { get; set; } | |
public object LastName { get; set; } | |
public List<object> Credentials { get; set; } | |
public Address4 Address { get; set; } | |
public PhoneNumber4 PhoneNumber { get; set; } | |
public Location3 Location { get; set; } | |
} | |
public class Address5 | |
{ | |
public object StreetAddress { get; set; } | |
public object City { get; set; } | |
public object State { get; set; } | |
public object ZIP { get; set; } | |
public object County { get; set; } | |
public object Country { get; set; } | |
} | |
public class PhoneNumber5 | |
{ | |
public object Office { get; set; } | |
} | |
public class Location4 | |
{ | |
public object Type { get; set; } | |
public object Facility { get; set; } | |
public object Department { get; set; } | |
public object Room { get; set; } | |
} | |
public class VisitProvider | |
{ | |
public object ID { get; set; } | |
public object IDType { get; set; } | |
public object FirstName { get; set; } | |
public object LastName { get; set; } | |
public List<object> Credentials { get; set; } | |
public Address5 Address { get; set; } | |
public PhoneNumber5 PhoneNumber { get; set; } | |
public Location4 Location { get; set; } | |
} | |
public class Location5 | |
{ | |
public string Type { get; set; } | |
public string Facility { get; set; } | |
public string Department { get; set; } | |
public string Room { get; set; } | |
} | |
public class Diagnosis | |
{ | |
public string Code { get; set; } | |
public string Codeset { get; set; } | |
public string Name { get; set; } | |
public object Type { get; set; } | |
} | |
public class Visit | |
{ | |
public string VisitNumber { get; set; } | |
public object AccountNumber { get; set; } | |
public DateTime VisitDateTime { get; set; } | |
public object PatientClass { get; set; } | |
public object Status { get; set; } | |
public int Duration { get; set; } | |
public string Reason { get; set; } | |
public List<object> Instructions { get; set; } | |
public AttendingProvider AttendingProvider { get; set; } | |
public ConsultingProvider ConsultingProvider { get; set; } | |
public ReferringProvider ReferringProvider { get; set; } | |
public VisitProvider VisitProvider { get; set; } | |
public Location5 Location { get; set; } | |
public List<Diagnosis> Diagnoses { get; set; } | |
} | |
public class RootObject | |
{ | |
public Meta Meta { get; set; } | |
public Patient Patient { get; set; } | |
public List<AppointmentInfo> AppointmentInfo { get; set; } | |
public Visit Visit { get; set; } | |
} |
This file contains hidden or 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
{ | |
"Meta": { | |
"DataModel": "Scheduling", | |
"EventType": "New", | |
"EventDateTime": "2018-05-31T20:58:09.371Z", | |
"Test": true, | |
"Source": { | |
"ID": "7ce6f387-c33c-417d-8682-81e83628cbd9", | |
"Name": "Redox Dev Tools" | |
}, | |
"Destinations": [ | |
{ | |
"ID": "af394f14-b34a-464f-8d24-895f370af4c9", | |
"Name": "Redox EMR" | |
} | |
], | |
"Message": { | |
"ID": 5565 | |
}, | |
"Transmission": { | |
"ID": 12414 | |
}, | |
"FacilityCode": null | |
}, | |
"Patient": { | |
"Identifiers": [ | |
{ | |
"ID": "0000000001", | |
"IDType": "MR" | |
}, | |
{ | |
"ID": "e167267c-16c9-4fe3-96ae-9cff5703e90a", | |
"IDType": "EHRID" | |
}, | |
{ | |
"ID": "a1d4ee8aba494ca", | |
"IDType": "NIST" | |
} | |
], | |
"Demographics": { | |
"FirstName": "Timothy", | |
"MiddleName": "Paul", | |
"LastName": "Bixby", | |
"DOB": "2008-01-06", | |
"SSN": "101-01-0001", | |
"Sex": "Male", | |
"Race": "White", | |
"IsHispanic": null, | |
"MaritalStatus": "Married", | |
"IsDeceased": null, | |
"DeathDateTime": null, | |
"PhoneNumber": { | |
"Home": "+18088675301", | |
"Office": null, | |
"Mobile": null | |
}, | |
"EmailAddresses": [], | |
"Language": "en", | |
"Citizenship": [], | |
"Address": { | |
"StreetAddress": "4762 Hickory Street", | |
"City": "Monroe", | |
"State": "WI", | |
"ZIP": "53566", | |
"County": "Green", | |
"Country": "US" | |
} | |
}, | |
"Notes": [] | |
}, | |
"AppointmentInfo": [ | |
{ | |
"Code": "23457", | |
"Codeset": "Redox EHR Codes", | |
"Description": "Priority", | |
"Value": "Normal" | |
}, | |
{ | |
"Code": "23457", | |
"Codeset": "Redox EHR Codes", | |
"Description": "Form", | |
"Value": "Lumbar" | |
} | |
], | |
"Visit": { | |
"VisitNumber": "1234", | |
"AccountNumber": null, | |
"VisitDateTime": "2018-05-31T20:58:10.604Z", | |
"PatientClass": null, | |
"Status": null, | |
"Duration": 15, | |
"Reason": "Check up", | |
"Instructions": [], | |
"AttendingProvider": { | |
"ID": "4356789876", | |
"IDType": "NPI", | |
"FirstName": "Pat", | |
"LastName": "Granite", | |
"Credentials": [ | |
"MD" | |
], | |
"Address": { | |
"StreetAddress": "123 Main St.", | |
"City": "Madison", | |
"State": "WI", | |
"ZIP": "53703", | |
"County": "Dane", | |
"Country": "USA" | |
}, | |
"PhoneNumber": { | |
"Office": "+16085551234" | |
}, | |
"Location": { | |
"Type": null, | |
"Facility": null, | |
"Department": null, | |
"Room": null | |
} | |
}, | |
"ConsultingProvider": { | |
"ID": null, | |
"IDType": null, | |
"FirstName": null, | |
"LastName": null, | |
"Credentials": [], | |
"Address": { | |
"StreetAddress": null, | |
"City": null, | |
"State": null, | |
"ZIP": null, | |
"County": null, | |
"Country": null | |
}, | |
"PhoneNumber": { | |
"Office": null | |
}, | |
"Location": { | |
"Type": null, | |
"Facility": null, | |
"Department": null, | |
"Room": null | |
} | |
}, | |
"ReferringProvider": { | |
"ID": null, | |
"IDType": null, | |
"FirstName": null, | |
"LastName": null, | |
"Credentials": [], | |
"Address": { | |
"StreetAddress": null, | |
"City": null, | |
"State": null, | |
"ZIP": null, | |
"County": null, | |
"Country": null | |
}, | |
"PhoneNumber": { | |
"Office": null | |
}, | |
"Location": { | |
"Type": null, | |
"Facility": null, | |
"Department": null, | |
"Room": null | |
} | |
}, | |
"VisitProvider": { | |
"ID": null, | |
"IDType": null, | |
"FirstName": null, | |
"LastName": null, | |
"Credentials": [], | |
"Address": { | |
"StreetAddress": null, | |
"City": null, | |
"State": null, | |
"ZIP": null, | |
"County": null, | |
"Country": null | |
}, | |
"PhoneNumber": { | |
"Office": null | |
}, | |
"Location": { | |
"Type": null, | |
"Facility": null, | |
"Department": null, | |
"Room": null | |
} | |
}, | |
"Location": { | |
"Type": "Inpatient", | |
"Facility": "RES General Hospital", | |
"Department": "3N", | |
"Room": "136" | |
}, | |
"Diagnoses": [ | |
{ | |
"Code": "R07.0", | |
"Codeset": "ICD-10", | |
"Name": "Pain in throat", | |
"Type": null | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment