<commit_before>{
    "name": "Observation",
    "states": {
        "Initial": {
            "type": "Initial",
            "direct_transition": "VitalSign"
        },

        "VitalSign" : {
            "type" : "VitalSign",
            "vital_sign" : "Systolic Blood Pressure",
            "exact" : { "quantity" : 120 },
            "unit" : "mm[Hg]",
            "direct_transition" : "Simulate_CVS"
        },
        
        "Simulate_CVS": {
	      "type": "Physiology",
	      "model": "circulation/Smith2004_CVS_human.xml",
	      "solver": "runge_kutta",
	      "step_size": 0.01,
	      "sim_duration": 4.0,
	      "lead_time": 2.0,
	      "inputs": [],
	      "outputs": [
	        {
	          "from_list": "P_ao",
	          "to": "P_ao",
	          "type": "Attribute"
	        },
	        {
	          "from_list": "P_lv",
	          "to": "P_lv",
	          "type": "Attribute"
	        },
	        {
	          "from_list": "P_rv",
	          "to": "P_rv",
	          "type": "Attribute"
	        }
	      ],
	      "direct_transition": "SomeEncounter"
	    },

        "SomeEncounter" : {
            "type" : "Encounter",
            "encounter_class": "inpatient",
            "codes": [{
                "system": "SNOMED-CT",
                "code": "32485007",
                "display": "Hospital admission"
            }],
            "direct_transition" : "VitalSignObservation"
        },

        "VitalSignObservation" : {
            "type" : "Observation",
            "vital_sign" : "Systolic Blood Pressure",
            "category" : "vital-signs",
            "codes" : [{
              "system" : "LOINC",
              "code" : "8480-6",
              "display" : "Systolic Blood Pressure"
            }],
            "unit" : "mm[Hg]",
            "direct_transition" : "CodeObservation"
        },

        "CodeObservation" : {
            "type" : "Observation",
            "category" : "procedure",
            "codes" : [
                {
                    "system" : "LOINC",
                    "code" : "24356-8",
                    "display" : "Urinalysis complete panel - Urine"
                }
            ],
            "remarks": [
                "This is a test observation"
            ],
            "value_code" : {
                "system": "LOINC",
                "code": "25428-4",
                "display": "Glucose [Presence] in Urine by Test strip"
            },
            "direct_transition" : "Terminal"
        },
        
        "SampledDataObservation" : {
            "type" : "Observation",
            "category" : "procedure",
            "unit": "mmHg",
            "codes" : [
                {
		          "system": "SNOMED-CT",
		          "code": 29303009,
		          "display": "Electrocardiographic procedure"
		        }
            ],
            "sampled_data": {
		      	"attributes": [
		      		"P_ao",
		      		"P_lv",
		      		"P_rv"
		      	]
		    },
            "direct_transition" : "Terminal"
        },

        "Terminal": {
            "type": "Terminal"
        }
    }
}
<commit_msg>add limits and factor to test SampledData<commit_after>{
    "name": "Observation",
    "states": {
        "Initial": {
            "type": "Initial",
            "direct_transition": "VitalSign"
        },

        "VitalSign" : {
            "type" : "VitalSign",
            "vital_sign" : "Systolic Blood Pressure",
            "exact" : { "quantity" : 120 },
            "unit" : "mm[Hg]",
            "direct_transition" : "Simulate_CVS"
        },
        
        "Simulate_CVS": {
	      "type": "Physiology",
	      "model": "circulation/Smith2004_CVS_human.xml",
	      "solver": "runge_kutta",
	      "step_size": 0.01,
	      "sim_duration": 4.0,
	      "lead_time": 2.0,
	      "inputs": [],
	      "outputs": [
	        {
	          "from_list": "P_ao",
	          "to": "P_ao",
	          "type": "Attribute"
	        },
	        {
	          "from_list": "P_lv",
	          "to": "P_lv",
	          "type": "Attribute"
	        },
	        {
	          "from_list": "P_rv",
	          "to": "P_rv",
	          "type": "Attribute"
	        }
	      ],
	      "direct_transition": "SomeEncounter"
	    },

        "SomeEncounter" : {
            "type" : "Encounter",
            "encounter_class": "inpatient",
            "codes": [{
                "system": "SNOMED-CT",
                "code": "32485007",
                "display": "Hospital admission"
            }],
            "direct_transition" : "VitalSignObservation"
        },

        "VitalSignObservation" : {
            "type" : "Observation",
            "vital_sign" : "Systolic Blood Pressure",
            "category" : "vital-signs",
            "codes" : [{
              "system" : "LOINC",
              "code" : "8480-6",
              "display" : "Systolic Blood Pressure"
            }],
            "unit" : "mm[Hg]",
            "direct_transition" : "CodeObservation"
        },

        "CodeObservation" : {
            "type" : "Observation",
            "category" : "procedure",
            "codes" : [
                {
                    "system" : "LOINC",
                    "code" : "24356-8",
                    "display" : "Urinalysis complete panel - Urine"
                }
            ],
            "remarks": [
                "This is a test observation"
            ],
            "value_code" : {
                "system": "LOINC",
                "code": "25428-4",
                "display": "Glucose [Presence] in Urine by Test strip"
            },
            "direct_transition" : "Terminal"
        },
        
        "SampledDataObservation" : {
            "type" : "Observation",
            "category" : "procedure",
            "unit": "mmHg",
            "codes" : [
                {
		          "system": "SNOMED-CT",
		          "code": 29303009,
		          "display": "Electrocardiographic procedure"
		        }
            ],
            "sampled_data": {
            	"factor": 1.0,
            	"lower_limit": -100.0,
            	"upper_limit": 200.0,
		      	"attributes": [
		      		"P_ao",
		      		"P_lv",
		      		"P_rv"
		      	]
		    },
            "direct_transition" : "Terminal"
        },

        "Terminal": {
            "type": "Terminal"
        }
    }
}

{'fraction_non_alphanumeric': 0.1508300395256917, 'fraction_numerical': 0.016442687747035573, 'mean_word_length': 1.1694101508916324, 'pattern_counts': {'":': 85, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5315005', 'n_tokens_mistral': 2108, 'n_tokens_neox': 1873, 'n_words': 324}