MCM JSON formatting

by Gerald Gillespie

HTML

<pre id="json">

</pre>

JavaScript

const myjson = `{
	"messageHeader": {
		"organizationName": null,
		"sequenceNumber": null,
		"userId": "medilynx",
		"sourceApplication": "FRHC",
		"orgAlias": "medilynx"
	},
	"payload": {
		"createAccession": {
			"accessionId": "xdxdxdxdxdxd4",
			"ignoreErrors": true,
			"returnErrors": true,
			"requisitionId": "9d72ff9b-58eb-4fcc-a239-675abae31dd2",
			"receiptDateSpecified": false,
			"dateOfService": "2021-10-07T00:00:00",
			"timeOfService": null,
			"admitDateSpecified": false,
			"dischargeDateSpecified": false,
			"clientId": null,
			"patientInfo": {
				"patientId": "0000010111011",
				"person": {
					"name": {
						"firstName": "noriaki",
						"lastName": "kasai",
						"middleName": null
					},
					"dateOfBirth": "1999-02-03T00:00:00",
					"dateOfBirthSpecified": true,
					"gender": "Female",
					"ssn": null,
					"address": {
						"addressLine1": "5th Street",
						"addressLine2": null,
						"city": "New York",
						"state": "NY",
						"region": null,
						"zip": "101000",
						"countryCode": null
					},
					"homePhone": "222-222-2222",
					"workPhone": "333-333-3333",
					"email": null
				},
				"patientType": null,
				"fasting": null,
				"patientLocati on": null,
				"indigentPercentSpecified": false,
				"onsetDateSpecified": false,
				"onsetType": null,
				"admissionSource": null,
				"admissionType": null,
				"accidentCause": null,
				"accidentState": null,
				"emergencyIndicator": false,
				"gravidaNumber": null,
				"pregnancySpecified": false,
				"maritalStatus": "U",
				"comments": "Medical history or other info: Test Medicalgorithmics IT/POL; Other diagnosis ICD code: X99.99 OTHER",
				"patientStatusType": null,
				"clientSpecificPatientId": null,
				"facilitySpecificPatientId": null
			},
			"patientDemoEffectiveDateSpecified": false,
			"finalReportedDateSpecified": false,
			"physicians": {
				"ordering": {
					"npi": "",
					"name": "aaaa",
					"upin": "bbbb"
				},
				"referring":...