schematron-wrapper 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,46 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <svrl:schematron-output xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5
+ xmlns:saxon="http://saxon.sf.net/"
6
+ xmlns:schold="http://www.ascc.net/xml/schematron"
7
+ xmlns:iso="http://purl.oclc.org/dsdl/schematron"
8
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
9
+ xmlns:nem="http://www.nemsis.org"
10
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11
+ xmlns:fct="localFunctions"
12
+ title="NEMSIS Compliance Test ISO Schematron File"
13
+ schemaVersion=""><!--   
14
+
15
+ -->
16
+ <svrl:ns-prefix-in-attribute-values uri="http://www.nemsis.org" prefix="nem"/>
17
+ <svrl:ns-prefix-in-attribute-values uri="http://www.w3.org/1999/XSL/Transform" prefix="xsl"/>
18
+ <svrl:ns-prefix-in-attribute-values uri="http://www.w3.org/2001/XMLSchema-instance" prefix="xsi"/>
19
+ <svrl:ns-prefix-in-attribute-values uri="localFunctions" prefix="fct"/>
20
+ <svrl:active-pattern document="file:/tmp/temp_file20140219-23839-6933f8"
21
+ id="complianceTestStructureRule1"
22
+ name="When ePatient.13 is 9906001, eHistory.18 must be 3118003."/>
23
+ <svrl:fired-rule context="nem:Header/nem:PatientCareReport" role="[FATAL]"/>
24
+ <svrl:failed-assert test="if (number($ePatient13) = 9906001) then (if (number($eHistory18) = 3118003) then true() else false()) else true()"
25
+ role="[FATAL]"
26
+ location="/*:EMSDataSet[namespace-uri()='http://www.nemsis.org'][1]/*:Header[namespace-uri()='http://www.nemsis.org'][1]/*:PatientCareReport[namespace-uri()='http://www.nemsis.org'][1]">
27
+ <svrl:text>
28
+ ePatient.13 - Gender is 9906001 (Female), but eHistory.18 - Pregnancy is 3118011 while it must be 3118003 (Possible, Uncomfirmed).
29
+ </svrl:text>
30
+ </svrl:failed-assert>
31
+ <svrl:active-pattern document="file:/tmp/temp_file20140219-23839-6933f8"
32
+ id="complianceTestStructureRule2"
33
+ name="eTimes.03 - Unit Notied by Dispatch Date/Time is before eTimes.13 - Unit Back in Service Date/Time"/>
34
+ <svrl:fired-rule context="nem:Header/nem:PatientCareReport/nem:eTimes" role="[FATAL]"/>
35
+ <svrl:failed-assert test="if (number($eTimes03All) &lt; number($eTimes13All)) then true() else false()"
36
+ role="[FATAL]"
37
+ location="/*:EMSDataSet[namespace-uri()='http://www.nemsis.org'][1]/*:Header[namespace-uri()='http://www.nemsis.org'][1]/*:PatientCareReport[namespace-uri()='http://www.nemsis.org'][1]/*:eTimes[namespace-uri()='http://www.nemsis.org'][1]">
38
+ <svrl:text>
39
+ eTimes.03 - Unit Notified by Dispatch Date/Time 2013-10-02T14:00:50+07:00 should be before eTimes.13 - Unit Back in Service Date/Time 2013-10-02T14:00:50+07:00.
40
+ </svrl:text>
41
+ </svrl:failed-assert>
42
+ <svrl:active-pattern document="file:/tmp/temp_file20140219-23839-6933f8"
43
+ id="complianceTestStructureRule3"
44
+ name="eDispatch.01 - Complaint Reported by Dispatch must not be 2301069"/>
45
+ <svrl:fired-rule context="nem:Header/nem:PatientCareReport/nem:eDispatch" role="[FATAL]"/>
46
+ </svrl:schematron-output>
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: schematron-wrapper
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - AgileFreaks
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-02-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ description: A ruby gem that wrappers various schematron implementations so they can
28
+ be easily used in ruby
29
+ email:
30
+ - office@agilefreaks.com
31
+ executables:
32
+ - saxon9he.jar
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - ".gitignore"
37
+ - ".rspec"
38
+ - ".travis.yml"
39
+ - Gemfile
40
+ - LICENSE
41
+ - README.md
42
+ - Rakefile
43
+ - bin/saxon9he.jar
44
+ - iso-schematron-xslt2/ExtractSchFromRNG-2.xsl
45
+ - iso-schematron-xslt2/ExtractSchFromXSD-2.xsl
46
+ - iso-schematron-xslt2/iso_abstract_expand.xsl
47
+ - iso-schematron-xslt2/iso_dsdl_include.xsl
48
+ - iso-schematron-xslt2/iso_schematron_message_xslt2.xsl
49
+ - iso-schematron-xslt2/iso_schematron_skeleton_for_saxon.xsl
50
+ - iso-schematron-xslt2/iso_svrl_for_xslt2.xsl
51
+ - iso-schematron-xslt2/readme.txt
52
+ - iso-schematron-xslt2/sch-messages-cs.xhtml
53
+ - iso-schematron-xslt2/sch-messages-de.xhtml
54
+ - iso-schematron-xslt2/sch-messages-en.xhtml
55
+ - iso-schematron-xslt2/sch-messages-fr.xhtml
56
+ - iso-schematron-xslt2/sch-messages-nl.xhtml
57
+ - iso-schematron-xslt2/schematron-skeleton-api.htm
58
+ - lib/schematron.rb
59
+ - lib/schematron/utils.rb
60
+ - lib/schematron/version.rb
61
+ - lib/schematron/xslt2.rb
62
+ - schematron_wrapper.gemspec
63
+ - spec/lib/schematron/xslt2_spec.rb
64
+ - spec/spec_helper.rb
65
+ - spec/support/samples/compiled.xsl
66
+ - spec/support/samples/initial.sch
67
+ - spec/support/samples/target.xml
68
+ - spec/support/samples/validation_result.xml
69
+ homepage: https://github.com/Agilefreaks/schematron-wrapper
70
+ licenses:
71
+ - Mozilla Public License, version 2.0
72
+ metadata: {}
73
+ post_install_message:
74
+ rdoc_options: []
75
+ require_paths:
76
+ - lib
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ requirements: []
88
+ rubyforge_project:
89
+ rubygems_version: 2.2.2
90
+ signing_key:
91
+ specification_version: 4
92
+ summary: Schematron XSLT 2.0 validator using Saxon9-HE
93
+ test_files:
94
+ - spec/lib/schematron/xslt2_spec.rb
95
+ - spec/spec_helper.rb
96
+ - spec/support/samples/compiled.xsl
97
+ - spec/support/samples/initial.sch
98
+ - spec/support/samples/target.xml
99
+ - spec/support/samples/validation_result.xml