edifact_converter 2.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1180) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE +21 -0
  5. data/README.md +36 -0
  6. data/Rakefile +11 -0
  7. data/bin/edifact_converter +55 -0
  8. data/data/configuration.json +447 -0
  9. data/data/configuration.yaml +284 -0
  10. data/data/remove_grouping.xsl +43 -0
  11. data/data/xml/Schemas/2004/06/01/B.xsd +112 -0
  12. data/data/xml/Schemas/2004/06/01/C1.xsd +121 -0
  13. data/data/xml/Schemas/2004/06/01/C2.xsd +121 -0
  14. data/data/xml/Schemas/2004/06/01/C3.xsd +83 -0
  15. data/data/xml/Schemas/2004/06/01/CCReceiver.xsd +19 -0
  16. data/data/xml/Schemas/2004/06/01/CVR/CVR_CVRNumber.xsd +14 -0
  17. data/data/xml/Schemas/2004/06/01/ClinicalTypes.xsd +64 -0
  18. data/data/xml/Schemas/2004/06/01/Collector.xsd +26 -0
  19. data/data/xml/Schemas/2004/06/01/Contact.xsd +15 -0
  20. data/data/xml/Schemas/2004/06/01/Cpr/CPR_CivilRegistrationNumber.xsd +42 -0
  21. data/data/xml/Schemas/2004/06/01/Cpr/vssver.scc +0 -0
  22. data/data/xml/Schemas/2004/06/01/DKAddress.xsd +30 -0
  23. data/data/xml/Schemas/2004/06/01/Dkcc/DKCC.xsd +9 -0
  24. data/data/xml/Schemas/2004/06/01/Dkcc/DKCC_PersonGivenName.xsd +16 -0
  25. data/data/xml/Schemas/2004/06/01/Dkcc/DKCC_PersonMiddleName.xsd +15 -0
  26. data/data/xml/Schemas/2004/06/01/Dkcc/DKCC_PersonSurnameName.xsd +16 -0
  27. data/data/xml/Schemas/2004/06/01/Dkcc/DKCC_PostCodeIdentifier.xsd +14 -0
  28. data/data/xml/Schemas/2004/06/01/Dkcc/vssver.scc +0 -0
  29. data/data/xml/Schemas/2004/06/01/EMessage.xsd +105 -0
  30. data/data/xml/Schemas/2004/06/01/FormattedText.xsd +45 -0
  31. data/data/xml/Schemas/2004/06/01/GeneralElements.xsd +185 -0
  32. data/data/xml/Schemas/2004/06/01/GeneralTypes.xsd +265 -0
  33. data/data/xml/Schemas/2004/06/01/GeneraliseringsForsoeg.xsd +26 -0
  34. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ.xsd +11 -0
  35. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Aarsagstilknytning.xsd +16 -0
  36. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_DAarsagRekurs.xsd +16 -0
  37. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_DDelRekurs.xsd +16 -0
  38. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_DFoelRekurs.xsd +16 -0
  39. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_DNotatTilknytning.xsd +16 -0
  40. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_DPriorRekurs.xsd +24 -0
  41. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Datatyper.xsd +148 -0
  42. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Diagnose.xsd +15 -0
  43. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Diagnosestatus.xsd +11 -0
  44. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Diagnostiknotat.xsd +15 -0
  45. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Doedsattest.xsd +15 -0
  46. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_EksplicitIndberetning.xsd +23 -0
  47. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_EksternAarsag.xsd +23 -0
  48. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Evalueringsresultat.xsd +17 -0
  49. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_FastMedicinering.xsd +17 -0
  50. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Fokusering.xsd +17 -0
  51. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Forloeb.xsd +19 -0
  52. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_ForloebSymbolisering.xsd +25 -0
  53. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Forloebsansvar.xsd +21 -0
  54. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Formaal.xsd +16 -0
  55. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_GEpjRettelse.xsd +17 -0
  56. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_GEpjRettelse.~xsd +17 -0
  57. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_GEpjStatus.xsd +18 -0
  58. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_GEpjStatus.~xsd +18 -0
  59. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Henvendelse.xsd +16 -0
  60. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_IDelRekurs.xsd +16 -0
  61. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_IFoelRekurs.xsd +16 -0
  62. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_INotatTilknytning.xsd +16 -0
  63. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_IPriorRekurs.xsd +20 -0
  64. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Indberetningsstatus.xsd +15 -0
  65. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Indikationstilknytning.xsd +16 -0
  66. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Ingrediens.xsd +17 -0
  67. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Intervention.xsd +25 -0
  68. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Interventionsnotat.xsd +16 -0
  69. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Interventionsresultat.xsd +27 -0
  70. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Interventionsstatus.xsd +19 -0
  71. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Journalfoeringskontekst.xsd +15 -0
  72. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Komplikationstilknytning.xsd +16 -0
  73. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Kontaktprioritet.xsd +17 -0
  74. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Kontekst.xsd +15 -0
  75. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_MaalTilknytning.xsd +16 -0
  76. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Medicinblanding.xsd +15 -0
  77. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Medicinering.xsd +26 -0
  78. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Medicinudlevering.xsd +22 -0
  79. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_OperationeltMaal.xsd +28 -0
  80. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Paaroerende.xsd +43 -0
  81. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Package.xsd +61 -0
  82. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Patient.xsd +15 -0
  83. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_PersonaleKontakt.xsd +16 -0
  84. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_PladsRessource.xsd +17 -0
  85. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Plejeansvar.xsd +16 -0
  86. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Skadesanmeldelse.xsd +20 -0
  87. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_SkemaMedicinering.xsd +15 -0
  88. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_SpontanHenvendelse.xsd +11 -0
  89. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_SpontantOpstaaetOplysning.xsd +24 -0
  90. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_StatusRettelse.xsd +17 -0
  91. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_StatusRettelse.~xsd +17 -0
  92. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Tilstedevaerelse.xsd +11 -0
  93. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_UdfoerendePersonale.xsd +17 -0
  94. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_VariabelMedicinering.xsd +19 -0
  95. data/data/xml/Schemas/2004/06/01/Gepka/GEPJ_Vejledning.xsd +17 -0
  96. data/data/xml/Schemas/2004/06/01/Gepka/Journalen/GEPJ_Interface_ordnet_status.xml +1018 -0
  97. data/data/xml/Schemas/2004/06/01/Gepka/Journalen/GEPJ_Interface_ordnet_status.xsd +1018 -0
  98. data/data/xml/Schemas/2004/06/01/Gepka/Journalen/vssver.scc +0 -0
  99. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/GEPJ_includer.xsd +34 -0
  100. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/GEPJ_journal_package.xsd +1034 -0
  101. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/RequestDatatyper.xsd +19 -0
  102. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentAktuelleForloebsdiagnoser.xsd +77 -0
  103. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentAktuelleInterventionsHierarkiroedder.xsd +196 -0
  104. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentDiagnoseNetvaerk.xsd +147 -0
  105. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentDiagnoseliste.xsd +53 -0
  106. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentDiagnostiknotater.xsd +72 -0
  107. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentDiagnostiskvejledning.xsd +49 -0
  108. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentEksplicitindberetninger.xsd +107 -0
  109. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentEksterneAarsager.xsd +72 -0
  110. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentEvalueringsresultater.xsd +92 -0
  111. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentFokuseredeOplysninger.xsd +16 -0
  112. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentForloeb.xsd +115 -0
  113. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentFormaal.xsd +46 -0
  114. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentGEpjObjekt.xsd +16 -0
  115. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentIndikationer.xsd +87 -0
  116. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentIndikeretIntervention.xsd +227 -0
  117. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentInterventionsNetvaerk.xsd +260 -0
  118. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentInterventionsliste.xsd +285 -0
  119. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentInterventionsnotater.xsd +70 -0
  120. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentInterventionsresultater.xsd +47 -0
  121. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentInterventionsvejledninger.xsd +49 -0
  122. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentJournal.xsd +15 -0
  123. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentKomplicerendeInterventioner.xsd +227 -0
  124. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentKomplikationer.xsd +87 -0
  125. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentMaal.xsd +70 -0
  126. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentPaaroerende.xsd +70 -0
  127. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentPatientId.xsd +47 -0
  128. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/hentSOO.xsd +70 -0
  129. data/data/xml/Schemas/2004/06/01/Gepka/Udveksling/vssver.scc +0 -0
  130. data/data/xml/Schemas/2004/06/01/Gepka/vssver.scc +0 -0
  131. data/data/xml/Schemas/2004/06/01/KL/KL_SENumberType.xsd +15 -0
  132. data/data/xml/Schemas/2004/06/01/LA121.xsd +96 -0
  133. data/data/xml/Schemas/2004/06/01/LA125.xsd +84 -0
  134. data/data/xml/Schemas/2004/06/01/LA141.xsd +96 -0
  135. data/data/xml/Schemas/2004/06/01/LA145.xsd +108 -0
  136. data/data/xml/Schemas/2004/06/01/LA165.xsd +101 -0
  137. data/data/xml/Schemas/2004/06/01/LA201.xsd +83 -0
  138. data/data/xml/Schemas/2004/06/01/LA205.xsd +113 -0
  139. data/data/xml/Schemas/2004/06/01/LA211.xsd +83 -0
  140. data/data/xml/Schemas/2004/06/01/LA215.xsd +102 -0
  141. data/data/xml/Schemas/2004/06/01/LA_Contact.xsd +22 -0
  142. data/data/xml/Schemas/2004/06/01/LA_MunicipalitySender.xsd +31 -0
  143. data/data/xml/Schemas/2004/06/01/LA_Patient.xsd +27 -0
  144. data/data/xml/Schemas/2004/06/01/LA_Sender.xsd +35 -0
  145. data/data/xml/Schemas/2004/06/01/LaboratoryRequest.xml +100 -0
  146. data/data/xml/Schemas/2004/06/01/LetterType.xsd +45 -0
  147. data/data/xml/Schemas/2004/06/01/M.xsd +405 -0
  148. data/data/xml/Schemas/2004/06/01/MicroBiologyTypes.xsd +79 -0
  149. data/data/xml/Schemas/2004/06/01/O.xsd +387 -0
  150. data/data/xml/Schemas/2004/06/01/P1.xsd +244 -0
  151. data/data/xml/Schemas/2004/06/01/P2.xsd +467 -0
  152. data/data/xml/Schemas/2004/06/01/P3.xsd +259 -0
  153. data/data/xml/Schemas/2004/06/01/P4.xsd +289 -0
  154. data/data/xml/Schemas/2004/06/01/Patient.xsd +22 -0
  155. data/data/xml/Schemas/2004/06/01/PatientAnalysisInfo.xsd +1 -0
  156. data/data/xml/Schemas/2004/06/01/Payer.xsd +28 -0
  157. data/data/xml/Schemas/2004/06/01/PaymentInformation.xsd +1 -0
  158. data/data/xml/Schemas/2004/06/01/Q1.xsd +238 -0
  159. data/data/xml/Schemas/2004/06/01/Q2.xsd +160 -0
  160. data/data/xml/Schemas/2004/06/01/Q3.xsd +252 -0
  161. data/data/xml/Schemas/2004/06/01/Q4.xsd +161 -0
  162. data/data/xml/Schemas/2004/06/01/R1.xsd +168 -0
  163. data/data/xml/Schemas/2004/06/01/R2.xsd +169 -0
  164. data/data/xml/Schemas/2004/06/01/Receiver.xsd +25 -0
  165. data/data/xml/Schemas/2004/06/01/Reference.xsd +32 -0
  166. data/data/xml/Schemas/2004/06/01/Referral.xsd +14 -0
  167. data/data/xml/Schemas/2004/06/01/Relative.xsd +18 -0
  168. data/data/xml/Schemas/2004/06/01/Sender.xsd +29 -0
  169. data/data/xml/Schemas/2004/06/01/ValueLists.xsd +459 -0
  170. data/data/xml/Schemas/2004/06/01/X1.xsd +71 -0
  171. data/data/xml/Schemas/2004/06/01/X13.xsd +81 -0
  172. data/data/xml/Schemas/2004/06/01/X14.xsd +94 -0
  173. data/data/xml/Schemas/2004/06/01/X17.xsd +89 -0
  174. data/data/xml/Schemas/2004/06/01/X19.xsd +135 -0
  175. data/data/xml/Schemas/2004/06/01/X2.xsd +71 -0
  176. data/data/xml/Schemas/2004/06/01/X20.xsd +89 -0
  177. data/data/xml/Schemas/2004/06/01/X3.xsd +71 -0
  178. data/data/xml/Schemas/2004/06/01/X5.xsd +71 -0
  179. data/data/xml/Schemas/2004/06/01/X91.xsd +94 -0
  180. data/data/xml/Schemas/2004/06/01/gen.html +7 -0
  181. data/data/xml/Schemas/2004/06/01/genhtml.xslt +25 -0
  182. data/data/xml/Schemas/2004/06/01/sletmig.xsd +21 -0
  183. data/data/xml/Schemas/2004/06/LA_Sender.xsd +36 -0
  184. data/data/xml/Schemas/2005/08/07/AnswerOfAdmission.xsd +94 -0
  185. data/data/xml/Schemas/2005/08/07/BinaryLetter.xsd +112 -0
  186. data/data/xml/Schemas/2005/08/07/BookingConfirmation.xsd +81 -0
  187. data/data/xml/Schemas/2005/08/07/CCReceiver.xsd +19 -0
  188. data/data/xml/Schemas/2005/08/07/CVR/CVR_CVRNumber.xsd +14 -0
  189. data/data/xml/Schemas/2005/08/07/CasualtyWardLetter.xsd +71 -0
  190. data/data/xml/Schemas/2005/08/07/CervixcytologyReport.xsd +259 -0
  191. data/data/xml/Schemas/2005/08/07/ClinicalEmail.xsd +94 -0
  192. data/data/xml/Schemas/2005/08/07/ClinicalTypes.xsd +64 -0
  193. data/data/xml/Schemas/2005/08/07/Collector.xsd +26 -0
  194. data/data/xml/Schemas/2005/08/07/Contact.xsd +15 -0
  195. data/data/xml/Schemas/2005/08/07/Cpr/CPR_CivilRegistrationNumber.xsd +42 -0
  196. data/data/xml/Schemas/2005/08/07/Cpr/vssver.scc +0 -0
  197. data/data/xml/Schemas/2005/08/07/DKAddress.xsd +30 -0
  198. data/data/xml/Schemas/2005/08/07/DiabetesReport.xsd +483 -0
  199. data/data/xml/Schemas/2005/08/07/DischargeLetter.xsd +70 -0
  200. data/data/xml/Schemas/2005/08/07/Dkcc/DKCC.xsd +9 -0
  201. data/data/xml/Schemas/2005/08/07/Dkcc/DKCC_PersonGivenName.xsd +16 -0
  202. data/data/xml/Schemas/2005/08/07/Dkcc/DKCC_PersonMiddleName.xsd +15 -0
  203. data/data/xml/Schemas/2005/08/07/Dkcc/DKCC_PersonSurnameName.xsd +16 -0
  204. data/data/xml/Schemas/2005/08/07/Dkcc/DKCC_PostCodeIdentifier.xsd +14 -0
  205. data/data/xml/Schemas/2005/08/07/Dkcc/vssver.scc +0 -0
  206. data/data/xml/Schemas/2005/08/07/EMessage.xsd +39 -0
  207. data/data/xml/Schemas/2005/08/07/FormattedText.xsd +45 -0
  208. data/data/xml/Schemas/2005/08/07/GeneralElements.xsd +195 -0
  209. data/data/xml/Schemas/2005/08/07/GeneralTypes.xsd +274 -0
  210. data/data/xml/Schemas/2005/08/07/GeneraliseringsForsoeg.xsd +25 -0
  211. data/data/xml/Schemas/2005/08/07/HistopathologyReport.xsd +347 -0
  212. data/data/xml/Schemas/2005/08/07/HospitalReferral.xsd +171 -0
  213. data/data/xml/Schemas/2005/08/07/KL/KL_SENumberType.xsd +15 -0
  214. data/data/xml/Schemas/2005/08/07/LA121.xsd +96 -0
  215. data/data/xml/Schemas/2005/08/07/LA125.xsd +84 -0
  216. data/data/xml/Schemas/2005/08/07/LA141.xsd +96 -0
  217. data/data/xml/Schemas/2005/08/07/LA145.xsd +108 -0
  218. data/data/xml/Schemas/2005/08/07/LA165.xsd +101 -0
  219. data/data/xml/Schemas/2005/08/07/LA201.xsd +83 -0
  220. data/data/xml/Schemas/2005/08/07/LA205.xsd +113 -0
  221. data/data/xml/Schemas/2005/08/07/LA211.xsd +83 -0
  222. data/data/xml/Schemas/2005/08/07/LA215.xsd +102 -0
  223. data/data/xml/Schemas/2005/08/07/LA_Contact.xsd +22 -0
  224. data/data/xml/Schemas/2005/08/07/LA_MunicipalitySender.xsd +31 -0
  225. data/data/xml/Schemas/2005/08/07/LA_Patient.xsd +27 -0
  226. data/data/xml/Schemas/2005/08/07/LA_Sender.xsd +35 -0
  227. data/data/xml/Schemas/2005/08/07/LaboratoryAnalysisFile.xsd +387 -0
  228. data/data/xml/Schemas/2005/08/07/LaboratoryReport.xsd +244 -0
  229. data/data/xml/Schemas/2005/08/07/LaboratoryRequest.xsd +238 -0
  230. data/data/xml/Schemas/2005/08/07/LetterType.xsd +45 -0
  231. data/data/xml/Schemas/2005/08/07/Letters.xsd +85 -0
  232. data/data/xml/Schemas/2005/08/07/MicroBiologyTypes.xsd +80 -0
  233. data/data/xml/Schemas/2005/08/07/MicrobiologyReport.xsd +471 -0
  234. data/data/xml/Schemas/2005/08/07/MicrobiologyRequest.xsd +161 -0
  235. data/data/xml/Schemas/2005/08/07/MultiSampleMicrobiologyRequest.xsd +162 -0
  236. data/data/xml/Schemas/2005/08/07/NegativeReceipt.xsd +117 -0
  237. data/data/xml/Schemas/2005/08/07/NegativeVansReceipt.xsd +117 -0
  238. data/data/xml/Schemas/2005/08/07/NotificationOfAdmission.xsd +89 -0
  239. data/data/xml/Schemas/2005/08/07/NotificationOfDischarge.xsd +89 -0
  240. data/data/xml/Schemas/2005/08/07/OutPatientDischargeLetter.xsd +71 -0
  241. data/data/xml/Schemas/2005/08/07/PathologyRequest.xsd +253 -0
  242. data/data/xml/Schemas/2005/08/07/Patient.xsd +22 -0
  243. data/data/xml/Schemas/2005/08/07/PatientAnalysisInfo.xsd +26 -0
  244. data/data/xml/Schemas/2005/08/07/Payer.xsd +28 -0
  245. data/data/xml/Schemas/2005/08/07/PaymentInformation.xsd +1 -0
  246. data/data/xml/Schemas/2005/08/07/PositiveReceipt.xsd +78 -0
  247. data/data/xml/Schemas/2005/08/07/Prescription.xsd +397 -0
  248. data/data/xml/Schemas/2005/08/07/PrescriptionRequest.xsd +123 -0
  249. data/data/xml/Schemas/2005/08/07/PrescriptionXX.xsd +122 -0
  250. data/data/xml/Schemas/2005/08/07/RadiologyReport.xsd +71 -0
  251. data/data/xml/Schemas/2005/08/07/Receiver.xsd +25 -0
  252. data/data/xml/Schemas/2005/08/07/Reference.xsd +32 -0
  253. data/data/xml/Schemas/2005/08/07/Referral.xsd +14 -0
  254. data/data/xml/Schemas/2005/08/07/Relative.xsd +18 -0
  255. data/data/xml/Schemas/2005/08/07/Sender.xsd +29 -0
  256. data/data/xml/Schemas/2005/08/07/ValueLists.xsd +391 -0
  257. data/data/xml/Schemas/2005/08/07/WarningOfDischarge.xsd +135 -0
  258. data/data/xml/Schemas/2005/08/07/XRayRequest.xsd +174 -0
  259. data/data/xml/Schemas/2005/08/07/sletmig.xsd +21 -0
  260. data/data/xml/Schemas/2006/07/01/BookingConfirmation.xsd +80 -0
  261. data/data/xml/Schemas/2006/07/01/CCReceiver.xsd +19 -0
  262. data/data/xml/Schemas/2006/07/01/CVRold/CVR_CVRNumber.xsd +14 -0
  263. data/data/xml/Schemas/2006/07/01/ClinicalEmail.xsd +108 -0
  264. data/data/xml/Schemas/2006/07/01/ClinicalTypes.xsd +64 -0
  265. data/data/xml/Schemas/2006/07/01/Collector.xsd +26 -0
  266. data/data/xml/Schemas/2006/07/01/Contact.xsd +15 -0
  267. data/data/xml/Schemas/2006/07/01/Cpr/CPR_CivilRegistrationNumber.xsd +42 -0
  268. data/data/xml/Schemas/2006/07/01/DKAddress.xsd +30 -0
  269. data/data/xml/Schemas/2006/07/01/Dkcc/DKCC_PersonGivenName.xsd +16 -0
  270. data/data/xml/Schemas/2006/07/01/Dkcc/DKCC_PersonMiddleName.xsd +15 -0
  271. data/data/xml/Schemas/2006/07/01/Dkcc/DKCC_PersonSurnameName.xsd +16 -0
  272. data/data/xml/Schemas/2006/07/01/Dkcc/DKCC_PostCodeIdentifier.xsd +14 -0
  273. data/data/xml/Schemas/2006/07/01/EMessage.xsd +34 -0
  274. data/data/xml/Schemas/2006/07/01/FormattedText.xsd +45 -0
  275. data/data/xml/Schemas/2006/07/01/GeneralElements.xsd +182 -0
  276. data/data/xml/Schemas/2006/07/01/GeneralTypes.xsd +274 -0
  277. data/data/xml/Schemas/2006/07/01/KL/KL_SENumberType.xsd +15 -0
  278. data/data/xml/Schemas/2006/07/01/LaboratoryAnalysisFile.xsd +416 -0
  279. data/data/xml/Schemas/2006/07/01/LaboratoryRequest.xsd +329 -0
  280. data/data/xml/Schemas/2006/07/01/LetterType.xsd +45 -0
  281. data/data/xml/Schemas/2006/07/01/Letters.xsd +18 -0
  282. data/data/xml/Schemas/2006/07/01/Patient.xsd +22 -0
  283. data/data/xml/Schemas/2006/07/01/Payer.xsd +33 -0
  284. data/data/xml/Schemas/2006/07/01/Receiver.xsd +25 -0
  285. data/data/xml/Schemas/2006/07/01/Reference.xsd +32 -0
  286. data/data/xml/Schemas/2006/07/01/Referral.xsd +13 -0
  287. data/data/xml/Schemas/2006/07/01/Relative.xsd +18 -0
  288. data/data/xml/Schemas/2006/07/01/Sender.xsd +29 -0
  289. data/data/xml/Schemas/2006/07/01/ValueLists.xsd +393 -0
  290. data/data/xml/Schemas/2007/02/01/CCReceiver.xsd +18 -0
  291. data/data/xml/Schemas/2007/02/01/ClinicalTypes.xsd +63 -0
  292. data/data/xml/Schemas/2007/02/01/Contact.xsd +14 -0
  293. data/data/xml/Schemas/2007/02/01/DiabetesReport.xsd +570 -0
  294. data/data/xml/Schemas/2007/02/01/Dkcc/DKCC_PersonGivenName.xsd +16 -0
  295. data/data/xml/Schemas/2007/02/01/Dkcc/DKCC_PersonMiddleName.xsd +15 -0
  296. data/data/xml/Schemas/2007/02/01/Dkcc/DKCC_PersonSurnameName.xsd +16 -0
  297. data/data/xml/Schemas/2007/02/01/Dkcc/DKCC_PostCodeIdentifier.xsd +14 -0
  298. data/data/xml/Schemas/2007/02/01/DoctorsCallCenterLetter.xsd +70 -0
  299. data/data/xml/Schemas/2007/02/01/EMessage.xsd +34 -0
  300. data/data/xml/Schemas/2007/02/01/FormattedText.xsd +44 -0
  301. data/data/xml/Schemas/2007/02/01/GeneralElements.xsd +203 -0
  302. data/data/xml/Schemas/2007/02/01/GeneralTypes.xsd +295 -0
  303. data/data/xml/Schemas/2007/02/01/LaboratoryAnalysisFile.xsd +492 -0
  304. data/data/xml/Schemas/2007/02/01/LaboratoryReport.xsd +261 -0
  305. data/data/xml/Schemas/2007/02/01/LetterType.xsd +44 -0
  306. data/data/xml/Schemas/2007/02/01/Letters.xsd +45 -0
  307. data/data/xml/Schemas/2007/02/01/MicrobiologyReport.xsd +478 -0
  308. data/data/xml/Schemas/2007/02/01/MicrobiologyWebReport.xsd +552 -0
  309. data/data/xml/Schemas/2007/02/01/ParagraphedText.xsd +33 -0
  310. data/data/xml/Schemas/2007/02/01/Patient.xsd +21 -0
  311. data/data/xml/Schemas/2007/02/01/PhysiotherapyLetter.xsd +70 -0
  312. data/data/xml/Schemas/2007/02/01/PhysiotherapyReferral.xsd +168 -0
  313. data/data/xml/Schemas/2007/02/01/PrivateSpecialistLetter.xsd +70 -0
  314. data/data/xml/Schemas/2007/02/01/PrivateSpecialistReferral.xsd +194 -0
  315. data/data/xml/Schemas/2007/02/01/PsychologistLetter.xsd +70 -0
  316. data/data/xml/Schemas/2007/02/01/PsychologistReferral.xsd +160 -0
  317. data/data/xml/Schemas/2007/02/01/Receiver.xsd +24 -0
  318. data/data/xml/Schemas/2007/02/01/Reference.xsd +31 -0
  319. data/data/xml/Schemas/2007/02/01/Referral.xsd +13 -0
  320. data/data/xml/Schemas/2007/02/01/Relative.xsd +17 -0
  321. data/data/xml/Schemas/2007/02/01/ReportOfAdmission.xsd +205 -0
  322. data/data/xml/Schemas/2007/02/01/ReportOfDischarge.xsd +213 -0
  323. data/data/xml/Schemas/2007/02/01/Sender.xsd +28 -0
  324. data/data/xml/Schemas/2007/02/01/SpecialistLetter.xsd +70 -0
  325. data/data/xml/Schemas/2007/02/01/TeddyLetter.xsd +73 -0
  326. data/data/xml/Schemas/2007/02/01/TeddyReferral.xsd +175 -0
  327. data/data/xml/Schemas/2007/02/01/ValueLists.xsd +292 -0
  328. data/data/xml/Schemas/2007/02/01/cpr/CPR_CivilRegistrationNumber.xsd +42 -0
  329. data/data/xml/Schemas/2007/02/01/cvr/CVR_CVRNumber.xsd +14 -0
  330. data/data/xml/Schemas/2007/02/01/kl/KL_SENumberType.xsd +15 -0
  331. data/data/xml/Schemas/2008/09/17/CCReceiver.xsd +18 -0
  332. data/data/xml/Schemas/2008/09/17/ClinicalTypes.xsd +63 -0
  333. data/data/xml/Schemas/2008/09/17/Contact.xsd +14 -0
  334. data/data/xml/Schemas/2008/09/17/EMessage.xsd +34 -0
  335. data/data/xml/Schemas/2008/09/17/FormattedText.xsd +44 -0
  336. data/data/xml/Schemas/2008/09/17/GeneralElements.xsd +95 -0
  337. data/data/xml/Schemas/2008/09/17/GeneralTypes.xsd +295 -0
  338. data/data/xml/Schemas/2008/09/17/LaboratoryAnalysisFile.xsd +495 -0
  339. data/data/xml/Schemas/2008/09/17/LetterType.xsd +44 -0
  340. data/data/xml/Schemas/2008/09/17/Letters.xsd +14 -0
  341. data/data/xml/Schemas/2008/09/17/Patient.xsd +21 -0
  342. data/data/xml/Schemas/2008/09/17/PsychologistLetter.xsd +70 -0
  343. data/data/xml/Schemas/2008/09/17/Receiver.xsd +24 -0
  344. data/data/xml/Schemas/2008/09/17/Reference.xsd +31 -0
  345. data/data/xml/Schemas/2008/09/17/Referral.xsd +13 -0
  346. data/data/xml/Schemas/2008/09/17/Relative.xsd +17 -0
  347. data/data/xml/Schemas/2008/09/17/Sender.xsd +28 -0
  348. data/data/xml/Schemas/2008/09/17/ValueLists.xsd +264 -0
  349. data/data/xml/Schemas/2008/09/17/cpr/CPR_CivilRegistrationNumber.xsd +42 -0
  350. data/data/xml/Schemas/2009/08/01/AdministrativeEmail.xsd +108 -0
  351. data/data/xml/Schemas/2009/08/01/CCReceiver.xsd +19 -0
  352. data/data/xml/Schemas/2009/08/01/CVRold/CVR_CVRNumber.xsd +14 -0
  353. data/data/xml/Schemas/2009/08/01/ClinicalTypes.xsd +64 -0
  354. data/data/xml/Schemas/2009/08/01/Collector.xsd +26 -0
  355. data/data/xml/Schemas/2009/08/01/Contact.xsd +15 -0
  356. data/data/xml/Schemas/2009/08/01/Cpr/CPR_CivilRegistrationNumber.xsd +42 -0
  357. data/data/xml/Schemas/2009/08/01/DKAddress.xsd +30 -0
  358. data/data/xml/Schemas/2009/08/01/Dkcc/DKCC_PersonGivenName.xsd +16 -0
  359. data/data/xml/Schemas/2009/08/01/Dkcc/DKCC_PersonMiddleName.xsd +15 -0
  360. data/data/xml/Schemas/2009/08/01/Dkcc/DKCC_PersonSurnameName.xsd +16 -0
  361. data/data/xml/Schemas/2009/08/01/Dkcc/DKCC_PostCodeIdentifier.xsd +14 -0
  362. data/data/xml/Schemas/2009/08/01/EMessage.xsd +34 -0
  363. data/data/xml/Schemas/2009/08/01/FormattedText.xsd +45 -0
  364. data/data/xml/Schemas/2009/08/01/GeneralElements.xsd +184 -0
  365. data/data/xml/Schemas/2009/08/01/GeneralTypes.xsd +274 -0
  366. data/data/xml/Schemas/2009/08/01/KL/KL_SENumberType.xsd +15 -0
  367. data/data/xml/Schemas/2009/08/01/LetterType.xsd +45 -0
  368. data/data/xml/Schemas/2009/08/01/Letters.xsd +12 -0
  369. data/data/xml/Schemas/2009/08/01/Patient.xsd +22 -0
  370. data/data/xml/Schemas/2009/08/01/Receiver.xsd +25 -0
  371. data/data/xml/Schemas/2009/08/01/Reference.xsd +32 -0
  372. data/data/xml/Schemas/2009/08/01/Referral.xsd +13 -0
  373. data/data/xml/Schemas/2009/08/01/Relative.xsd +18 -0
  374. data/data/xml/Schemas/2009/08/01/Sender.xsd +29 -0
  375. data/data/xml/Schemas/2009/08/01/ValueLists.xsd +321 -0
  376. data/data/xml/Schemas/2010/07/01/CCReceiver.xsd +18 -0
  377. data/data/xml/Schemas/2010/07/01/ChiropodyInvoice.xsd +245 -0
  378. data/data/xml/Schemas/2010/07/01/ChiropractorInvoice.xsd +205 -0
  379. data/data/xml/Schemas/2010/07/01/ClinicalTypes.xsd +63 -0
  380. data/data/xml/Schemas/2010/07/01/Contact.xsd +14 -0
  381. data/data/xml/Schemas/2010/07/01/DentistInvoice.xsd +217 -0
  382. data/data/xml/Schemas/2010/07/01/EMessage.xsd +34 -0
  383. data/data/xml/Schemas/2010/07/01/EmergencyServicePractitionerInvoice.xsd +231 -0
  384. data/data/xml/Schemas/2010/07/01/FormattedText.xsd +44 -0
  385. data/data/xml/Schemas/2010/07/01/GeneralElements.xsd +105 -0
  386. data/data/xml/Schemas/2010/07/01/GeneralPractitionerBilling.xsd +222 -0
  387. data/data/xml/Schemas/2010/07/01/GeneralTypes.xsd +415 -0
  388. data/data/xml/Schemas/2010/07/01/LaboratoryAnalysisFile.xsd +495 -0
  389. data/data/xml/Schemas/2010/07/01/LaboratoryInvoice.xsd +195 -0
  390. data/data/xml/Schemas/2010/07/01/LetterType.xsd +44 -0
  391. data/data/xml/Schemas/2010/07/01/Letters.xsd +33 -0
  392. data/data/xml/Schemas/2010/07/01/Patient.xsd +21 -0
  393. data/data/xml/Schemas/2010/07/01/PhysiotherapyInvoice.xsd +232 -0
  394. data/data/xml/Schemas/2010/07/01/PrivateSpecialistInvoice.xsd +244 -0
  395. data/data/xml/Schemas/2010/07/01/PsychologistInvoice.xsd +223 -0
  396. data/data/xml/Schemas/2010/07/01/Receiver.xsd +24 -0
  397. data/data/xml/Schemas/2010/07/01/Reference.xsd +31 -0
  398. data/data/xml/Schemas/2010/07/01/Referral.xsd +13 -0
  399. data/data/xml/Schemas/2010/07/01/Relative.xsd +17 -0
  400. data/data/xml/Schemas/2010/07/01/Sender.xsd +28 -0
  401. data/data/xml/Schemas/2010/07/01/ValueLists.xsd +320 -0
  402. data/data/xml/Schemas/2010/07/01/cpr/CPR_CivilRegistrationNumber.xsd +42 -0
  403. data/data/xml/Schemas/2011/02/17/Birth.xsd +54 -0
  404. data/data/xml/Schemas/2011/02/17/BirthNotification.xsd +80 -0
  405. data/data/xml/Schemas/2011/02/17/CPR_CivilRegistrationNumber.xsd +42 -0
  406. data/data/xml/Schemas/2011/02/17/ChildInfo.xsd +63 -0
  407. data/data/xml/Schemas/2011/02/17/ChildRelation.xsd +45 -0
  408. data/data/xml/Schemas/2011/02/17/ClinicalTypes.xsd +63 -0
  409. data/data/xml/Schemas/2011/02/17/EMessage.xsd +34 -0
  410. data/data/xml/Schemas/2011/02/17/FormattedText.xsd +44 -0
  411. data/data/xml/Schemas/2011/02/17/GeneralElements.xsd +55 -0
  412. data/data/xml/Schemas/2011/02/17/GeneralTypes.xsd +330 -0
  413. data/data/xml/Schemas/2011/02/17/LetterType.xsd +44 -0
  414. data/data/xml/Schemas/2011/02/17/Letters.xsd +12 -0
  415. data/data/xml/Schemas/2011/02/17/MaternityMother.xsd +26 -0
  416. data/data/xml/Schemas/2011/02/17/Patient.xsd +41 -0
  417. data/data/xml/Schemas/2011/02/17/Practitioner.xsd +26 -0
  418. data/data/xml/Schemas/2011/02/17/Pregnancy.xsd +48 -0
  419. data/data/xml/Schemas/2011/02/17/Receiver.xsd +24 -0
  420. data/data/xml/Schemas/2011/02/17/Relative.xsd +18 -0
  421. data/data/xml/Schemas/2011/02/17/Sender.xsd +22 -0
  422. data/data/xml/Schemas/2011/02/17/TelephoneSubscriber.xsd +24 -0
  423. data/data/xml/Schemas/2011/02/17/ValueLists.xsd +354 -0
  424. data/data/xml/Schemas/2011/06/15/CCReceiver.xsd +18 -0
  425. data/data/xml/Schemas/2011/06/15/ClinicalTypes.xsd +63 -0
  426. data/data/xml/Schemas/2011/06/15/Contact.xsd +14 -0
  427. data/data/xml/Schemas/2011/06/15/EMessage.xsd +33 -0
  428. data/data/xml/Schemas/2011/06/15/FormattedText.xsd +44 -0
  429. data/data/xml/Schemas/2011/06/15/GeneralElements.xsd +184 -0
  430. data/data/xml/Schemas/2011/06/15/GeneralTypes.xsd +295 -0
  431. data/data/xml/Schemas/2011/06/15/LaboratoryAnalysisFile.xsd +610 -0
  432. data/data/xml/Schemas/2011/06/15/LetterType.xsd +44 -0
  433. data/data/xml/Schemas/2011/06/15/Letters.xsd +15 -0
  434. data/data/xml/Schemas/2011/06/15/MDSRepertoire.xsd +248 -0
  435. data/data/xml/Schemas/2011/06/15/MicrobiologyWebReport.xsd +561 -0
  436. data/data/xml/Schemas/2011/06/15/Patient.xsd +21 -0
  437. data/data/xml/Schemas/2011/06/15/Receiver.xsd +24 -0
  438. data/data/xml/Schemas/2011/06/15/Reference.xsd +31 -0
  439. data/data/xml/Schemas/2011/06/15/Referral.xsd +13 -0
  440. data/data/xml/Schemas/2011/06/15/Relative.xsd +17 -0
  441. data/data/xml/Schemas/2011/06/15/Sender.xsd +28 -0
  442. data/data/xml/Schemas/2011/06/15/ValueLists.xsd +266 -0
  443. data/data/xml/Schemas/2011/06/15/cpr/CPR_CivilRegistrationNumber.xsd +42 -0
  444. data/data/xml/Schemas/2011/06/20/AktuelMedicin.xsd +32 -0
  445. data/data/xml/Schemas/2011/06/20/Borger.xsd +26 -0
  446. data/data/xml/Schemas/2011/06/20/CPR_CivilRegistrationNumber.xsd +42 -0
  447. data/data/xml/Schemas/2011/06/20/Calender.xsd +43 -0
  448. data/data/xml/Schemas/2011/06/20/Citizen.xsd +25 -0
  449. data/data/xml/Schemas/2011/06/20/CitizensOwnData.xsd +31 -0
  450. data/data/xml/Schemas/2011/06/20/ClinicalTypes.xsd +63 -0
  451. data/data/xml/Schemas/2011/06/20/Contacts.xsd +24 -0
  452. data/data/xml/Schemas/2011/06/20/DoctorsElucidation.xsd +20 -0
  453. data/data/xml/Schemas/2011/06/20/EMessage.xsd +37 -0
  454. data/data/xml/Schemas/2011/06/20/EgenLaege.xsd +22 -0
  455. data/data/xml/Schemas/2011/06/20/FormattedText.xsd +44 -0
  456. data/data/xml/Schemas/2011/06/20/GeneralElements.xsd +183 -0
  457. data/data/xml/Schemas/2011/06/20/GeneralTypes.xsd +339 -0
  458. data/data/xml/Schemas/2011/06/20/HCPNotes.xsd +34 -0
  459. data/data/xml/Schemas/2011/06/20/Kalender.xsd +26 -0
  460. data/data/xml/Schemas/2011/06/20/Kontakter.xsd +28 -0
  461. data/data/xml/Schemas/2011/06/20/LaegensUdredning.xsd +29 -0
  462. data/data/xml/Schemas/2011/06/20/LetterType.xsd +44 -0
  463. data/data/xml/Schemas/2011/06/20/Letters.xsd +12 -0
  464. data/data/xml/Schemas/2011/06/20/MedComCDSet.xsd +85 -0
  465. data/data/xml/Schemas/2011/06/20/MedComKD Fuldt testeksempel 1 Ver 0.6.xml +632 -0
  466. data/data/xml/Schemas/2011/06/20/MedComKD Fuldt testeksempel 4 Ver 0.1.xml +585 -0
  467. data/data/xml/Schemas/2011/06/20/MedComKD Fuldt testeksempel 4 Ver 0.2.xml +592 -0
  468. data/data/xml/Schemas/2011/06/20/MedComKD Fuldt testeksempel 4 Ver 0.xml +569 -0
  469. data/data/xml/Schemas/2011/06/20/MedComKD.xsd +89 -0
  470. data/data/xml/Schemas/2011/06/20/MedComKD_V0.1.xsd +498 -0
  471. data/data/xml/Schemas/2011/06/20/MedComKD_V0.2.xsd +510 -0
  472. data/data/xml/Schemas/2011/06/20/MedComKD_V0.6.xsd +627 -0
  473. data/data/xml/Schemas/2011/06/20/MedComKD_V0.xsd +497 -0
  474. data/data/xml/Schemas/2011/06/20/MinDagbog.xsd +25 -0
  475. data/data/xml/Schemas/2011/06/20/MonitoreringOgMaal.xsd +87 -0
  476. data/data/xml/Schemas/2011/06/20/Monitoring.xsd +82 -0
  477. data/data/xml/Schemas/2011/06/20/Paaroerende.xsd +22 -0
  478. data/data/xml/Schemas/2011/06/20/Patient.xsd +38 -0
  479. data/data/xml/Schemas/2011/06/20/Practitioner.xsd +23 -0
  480. data/data/xml/Schemas/2011/06/20/PresentMedication.xsd +44 -0
  481. data/data/xml/Schemas/2011/06/20/Receiver.xsd +24 -0
  482. data/data/xml/Schemas/2011/06/20/Relative.xsd +21 -0
  483. data/data/xml/Schemas/2011/06/20/RelevantDiagnoses.xsd +23 -0
  484. data/data/xml/Schemas/2011/06/20/RelevantLabReports.xsd +38 -0
  485. data/data/xml/Schemas/2011/06/20/RelevanteDiagnoser.xsd +27 -0
  486. data/data/xml/Schemas/2011/06/20/RelevanteLabsvar.xsd +32 -0
  487. data/data/xml/Schemas/2011/06/20/SKLNoter.xsd +26 -0
  488. data/data/xml/Schemas/2011/06/20/Samtykke.xsd +17 -0
  489. data/data/xml/Schemas/2011/06/20/Sender.xsd +25 -0
  490. data/data/xml/Schemas/2011/06/20/ValueLists.xsd +357 -0
  491. data/data/xml/Schemas/2012/03/28/BinaryLetter.xsd +112 -0
  492. data/data/xml/Schemas/2012/03/28/CCReceiver.xsd +19 -0
  493. data/data/xml/Schemas/2012/03/28/ClinicalTypes.xsd +64 -0
  494. data/data/xml/Schemas/2012/03/28/Contact.xsd +15 -0
  495. data/data/xml/Schemas/2012/03/28/Cpr/CPR_CivilRegistrationNumber.xsd +42 -0
  496. data/data/xml/Schemas/2012/03/28/Cpr/vssver.scc +0 -0
  497. data/data/xml/Schemas/2012/03/28/EMessage.xsd +33 -0
  498. data/data/xml/Schemas/2012/03/28/FormattedText.xsd +45 -0
  499. data/data/xml/Schemas/2012/03/28/GeneralElements.xsd +204 -0
  500. data/data/xml/Schemas/2012/03/28/GeneralTypes.xsd +275 -0
  501. data/data/xml/Schemas/2012/03/28/HistopathologyReport.xsd +367 -0
  502. data/data/xml/Schemas/2012/03/28/LetterType.xsd +45 -0
  503. data/data/xml/Schemas/2012/03/28/Letters.xsd +13 -0
  504. data/data/xml/Schemas/2012/03/28/MC_UniversallyUniqueIdentifier_20080406.xsd +9 -0
  505. data/data/xml/Schemas/2012/03/28/Patient.xsd +22 -0
  506. data/data/xml/Schemas/2012/03/28/Receiver.xsd +25 -0
  507. data/data/xml/Schemas/2012/03/28/Reference.xsd +32 -0
  508. data/data/xml/Schemas/2012/03/28/Referral.xsd +14 -0
  509. data/data/xml/Schemas/2012/03/28/Relative.xsd +18 -0
  510. data/data/xml/Schemas/2012/03/28/Sender.xsd +29 -0
  511. data/data/xml/Schemas/2012/03/28/ValueLists.xsd +251 -0
  512. data/data/xml/Schemas/2013/09/02/CCReceiver.xsd +18 -0
  513. data/data/xml/Schemas/2013/09/02/ClinicalTypes.xsd +63 -0
  514. data/data/xml/Schemas/2013/09/02/Contact.xsd +14 -0
  515. data/data/xml/Schemas/2013/09/02/Dkcc/DKCC_PersonGivenName.xsd +16 -0
  516. data/data/xml/Schemas/2013/09/02/Dkcc/DKCC_PersonMiddleName.xsd +15 -0
  517. data/data/xml/Schemas/2013/09/02/Dkcc/DKCC_PersonSurnameName.xsd +16 -0
  518. data/data/xml/Schemas/2013/09/02/Dkcc/DKCC_PostCodeIdentifier.xsd +14 -0
  519. data/data/xml/Schemas/2013/09/02/EMessage.xsd +34 -0
  520. data/data/xml/Schemas/2013/09/02/FormattedText.xsd +44 -0
  521. data/data/xml/Schemas/2013/09/02/GeneralElements.xsd +203 -0
  522. data/data/xml/Schemas/2013/09/02/GeneralTypes.xsd +295 -0
  523. data/data/xml/Schemas/2013/09/02/LetterType.xsd +44 -0
  524. data/data/xml/Schemas/2013/09/02/Letters.xsd +17 -0
  525. data/data/xml/Schemas/2013/09/02/ParagraphedText.xsd +33 -0
  526. data/data/xml/Schemas/2013/09/02/Patient.xsd +22 -0
  527. data/data/xml/Schemas/2013/09/02/PhysiotherapyReferral.xsd +168 -0
  528. data/data/xml/Schemas/2013/09/02/Receiver.xsd +24 -0
  529. data/data/xml/Schemas/2013/09/02/Reference.xsd +31 -0
  530. data/data/xml/Schemas/2013/09/02/Referral.xsd +13 -0
  531. data/data/xml/Schemas/2013/09/02/Relative.xsd +17 -0
  532. data/data/xml/Schemas/2013/09/02/Sender.xsd +28 -0
  533. data/data/xml/Schemas/2013/09/02/ValueLists.xsd +262 -0
  534. data/data/xml/Schemas/2013/09/02/cpr/CPR_CivilRegistrationNumber.xsd +42 -0
  535. data/data/xml/Schemas/2013/09/02/cvr/CVR_CVRNumber.xsd +14 -0
  536. data/data/xml/Schemas/2013/09/02/kl/KL_SENumberType.xsd +15 -0
  537. data/data/xml/Schemas/2013/11/26/ClinicalTypes.xsd +63 -0
  538. data/data/xml/Schemas/2013/11/26/EMessage.xsd +36 -0
  539. data/data/xml/Schemas/2013/11/26/Eksempler/Dyrkning med stemproperties.xml +494 -0
  540. data/data/xml/Schemas/2013/11/26/Eksempler/Dyrkning1.xml +428 -0
  541. data/data/xml/Schemas/2013/11/26/Eksempler/Dyrkning2.xml +501 -0
  542. data/data/xml/Schemas/2013/11/26/Eksempler/Eksempel_Dyrkning_1.xml +819 -0
  543. data/data/xml/Schemas/2013/11/26/FormattedText.xsd +44 -0
  544. data/data/xml/Schemas/2013/11/26/GeneralElements.xsd +184 -0
  545. data/data/xml/Schemas/2013/11/26/GeneralTypes.xsd +255 -0
  546. data/data/xml/Schemas/2013/11/26/LetterType.xsd +44 -0
  547. data/data/xml/Schemas/2013/11/26/Letters.xsd +16 -0
  548. data/data/xml/Schemas/2013/11/26/MiBaReport.xsd +780 -0
  549. data/data/xml/Schemas/2013/11/26/Readme.txt +16 -0
  550. data/data/xml/Schemas/2013/11/26/ValueLists.xsd +262 -0
  551. data/data/xml/Schemas/2014/10/08/CCReceiver.xsd +19 -0
  552. data/data/xml/Schemas/2014/10/08/CervixcytologyReport.xsd +277 -0
  553. data/data/xml/Schemas/2014/10/08/ClinicalTypes.xsd +64 -0
  554. data/data/xml/Schemas/2014/10/08/Collector.xsd +26 -0
  555. data/data/xml/Schemas/2014/10/08/Contact.xsd +15 -0
  556. data/data/xml/Schemas/2014/10/08/Cpr/CPR_CivilRegistrationNumber.xsd +42 -0
  557. data/data/xml/Schemas/2014/10/08/DiabeticFootStatus.xsd +207 -0
  558. data/data/xml/Schemas/2014/10/08/EMessage.xsd +33 -0
  559. data/data/xml/Schemas/2014/10/08/FormattedText.xsd +45 -0
  560. data/data/xml/Schemas/2014/10/08/GeneralElements.xsd +208 -0
  561. data/data/xml/Schemas/2014/10/08/GeneralTypes.xsd +276 -0
  562. data/data/xml/Schemas/2014/10/08/GeneticsReport.xsd +293 -0
  563. data/data/xml/Schemas/2014/10/08/HistopathologyReport.xsd +386 -0
  564. data/data/xml/Schemas/2014/10/08/LaboratoryAnalysisFile.xsd +610 -0
  565. data/data/xml/Schemas/2014/10/08/LaboratoryReport.xsd +279 -0
  566. data/data/xml/Schemas/2014/10/08/LetterType.xsd +45 -0
  567. data/data/xml/Schemas/2014/10/08/Letters.xsd +27 -0
  568. data/data/xml/Schemas/2014/10/08/MC_UniversallyUniqueIdentifier_20080406.xsd +9 -0
  569. data/data/xml/Schemas/2014/10/08/MicrobiologyReport.xsd +484 -0
  570. data/data/xml/Schemas/2014/10/08/MicrobiologyWebReport.xsd +564 -0
  571. data/data/xml/Schemas/2014/10/08/ParagraphedText.xsd +33 -0
  572. data/data/xml/Schemas/2014/10/08/PathologyRequest.xsd +324 -0
  573. data/data/xml/Schemas/2014/10/08/Patient.xsd +22 -0
  574. data/data/xml/Schemas/2014/10/08/Payer.xsd +33 -0
  575. data/data/xml/Schemas/2014/10/08/Receiver.xsd +25 -0
  576. data/data/xml/Schemas/2014/10/08/Reference.xsd +32 -0
  577. data/data/xml/Schemas/2014/10/08/Referral.xsd +14 -0
  578. data/data/xml/Schemas/2014/10/08/Relative.xsd +18 -0
  579. data/data/xml/Schemas/2014/10/08/Sender.xsd +29 -0
  580. data/data/xml/Schemas/2014/10/08/ValueLists.xsd +287 -0
  581. data/data/xml/Schemas/2015/02/16/ChiropodyInvoice.xsd +245 -0
  582. data/data/xml/Schemas/2015/02/16/ChiropractorInvoice.xsd +205 -0
  583. data/data/xml/Schemas/2015/02/16/ClinicalTypes.xsd +63 -0
  584. data/data/xml/Schemas/2015/02/16/Contact.xsd +14 -0
  585. data/data/xml/Schemas/2015/02/16/DentistInvoice.xsd +224 -0
  586. data/data/xml/Schemas/2015/02/16/EMessage.xsd +34 -0
  587. data/data/xml/Schemas/2015/02/16/EmergencyServicePractitionerInvoice.xsd +231 -0
  588. data/data/xml/Schemas/2015/02/16/GeneralElements.xsd +105 -0
  589. data/data/xml/Schemas/2015/02/16/GeneralPractitionerBilling.xsd +222 -0
  590. data/data/xml/Schemas/2015/02/16/GeneralTypes.xsd +415 -0
  591. data/data/xml/Schemas/2015/02/16/LaboratoryInvoice.xsd +195 -0
  592. data/data/xml/Schemas/2015/02/16/LetterType.xsd +44 -0
  593. data/data/xml/Schemas/2015/02/16/Letters.xsd +31 -0
  594. data/data/xml/Schemas/2015/02/16/Patient.xsd +21 -0
  595. data/data/xml/Schemas/2015/02/16/PhysiotherapyInvoice.xsd +232 -0
  596. data/data/xml/Schemas/2015/02/16/PrivateSpecialistInvoice.xsd +244 -0
  597. data/data/xml/Schemas/2015/02/16/PsychologistInvoice.xsd +223 -0
  598. data/data/xml/Schemas/2015/02/16/Receiver.xsd +24 -0
  599. data/data/xml/Schemas/2015/02/16/Sender.xsd +28 -0
  600. data/data/xml/Schemas/2015/02/16/ValueLists.xsd +338 -0
  601. data/data/xml/ShowEmessage.xslt +202 -0
  602. data/data/xml/XSLTs/2004/06/01/EDI2XML/A0132Z.xslt +346 -0
  603. data/data/xml/XSLTs/2004/06/01/EDI2XML/B0130X.xslt +214 -0
  604. data/data/xml/XSLTs/2004/06/01/EDI2XML/Breve.xslt +29 -0
  605. data/data/xml/XSLTs/2004/06/01/EDI2XML/C0130Q.xslt +111 -0
  606. data/data/xml/XSLTs/2004/06/01/EDI2XML/C0230Q.xslt +111 -0
  607. data/data/xml/XSLTs/2004/06/01/EDI2XML/C0330Q.xslt +77 -0
  608. data/data/xml/XSLTs/2004/06/01/EDI2XML/D0133L.xslt +404 -0
  609. data/data/xml/XSLTs/2004/06/01/EDI2XML/D0233L.xslt +436 -0
  610. data/data/xml/XSLTs/2004/06/01/EDI2XML/D0333L.xslt +778 -0
  611. data/data/xml/XSLTs/2004/06/01/EDI2XML/D0533L.xslt +523 -0
  612. data/data/xml/XSLTs/2004/06/01/EDI2XML/D1333L.xslt +343 -0
  613. data/data/xml/XSLTs/2004/06/01/EDI2XML/D1430C.xslt +135 -0
  614. data/data/xml/XSLTs/2004/06/01/EDI2XML/D1431C.xslt +135 -0
  615. data/data/xml/XSLTs/2004/06/01/EDI2XML/D1730C.xslt +151 -0
  616. data/data/xml/XSLTs/2004/06/01/EDI2XML/D1930C.xslt +380 -0
  617. data/data/xml/XSLTs/2004/06/01/EDI2XML/D2030C.xslt +151 -0
  618. data/data/xml/XSLTs/2004/06/01/EDI2XML/D9133L.xslt +212 -0
  619. data/data/xml/XSLTs/2004/06/01/EDI2XML/GeneralTemplates.xslt +1003 -0
  620. data/data/xml/XSLTs/2004/06/01/EDI2XML/H0130R.xslt +408 -0
  621. data/data/xml/XSLTs/2004/06/01/EDI2XML/H0230R.xslt +403 -0
  622. data/data/xml/XSLTs/2004/06/01/EDI2XML/LMS015.xslt +423 -0
  623. data/data/xml/XSLTs/2004/06/01/EDI2XML/LMS016.xslt +416 -0
  624. data/data/xml/XSLTs/2004/06/01/EDI2XML/Q0130K.xslt +344 -0
  625. data/data/xml/XSLTs/2004/06/01/EDI2XML/Q0230M.xslt +386 -0
  626. data/data/xml/XSLTs/2004/06/01/EDI2XML/Q0330P.xslt +451 -0
  627. data/data/xml/XSLTs/2004/06/01/EDI2XML/R0130K.xslt +407 -0
  628. data/data/xml/XSLTs/2004/06/01/EDI2XML/R0230M.xslt +625 -0
  629. data/data/xml/XSLTs/2004/06/01/EDI2XML/R0330P.xslt +468 -0
  630. data/data/xml/XSLTs/2004/06/01/EDI2XML/R0430P.xslt +483 -0
  631. data/data/xml/XSLTs/2004/06/01/EDI2XML/XML11_2_Emessage.xslt +74 -0
  632. data/data/xml/XSLTs/2004/06/01/EDI2XML/tmp0000.xslt +618 -0
  633. data/data/xml/XSLTs/2004/06/01/XML2EDI/B.xslt +504 -0
  634. data/data/xml/XSLTs/2004/06/01/XML2EDI/C1.xslt +153 -0
  635. data/data/xml/XSLTs/2004/06/01/XML2EDI/C2.xslt +153 -0
  636. data/data/xml/XSLTs/2004/06/01/XML2EDI/C3.xslt +147 -0
  637. data/data/xml/XSLTs/2004/06/01/XML2EDI/ConvertMedicalSpecialityCode.xslt +86 -0
  638. data/data/xml/XSLTs/2004/06/01/XML2EDI/Emessage_2_XML11.xslt +94 -0
  639. data/data/xml/XSLTs/2004/06/01/XML2EDI/GeneralTemplates.xslt +244 -0
  640. data/data/xml/XSLTs/2004/06/01/XML2EDI/Letters.xslt +39 -0
  641. data/data/xml/XSLTs/2004/06/01/XML2EDI/O.xslt +556 -0
  642. data/data/xml/XSLTs/2004/06/01/XML2EDI/O1.xslt +573 -0
  643. data/data/xml/XSLTs/2004/06/01/XML2EDI/Q0430M.xslt +8 -0
  644. data/data/xml/XSLTs/2004/06/01/XML2EDI/TranslateMedicalSpecialityCode.txt +78 -0
  645. data/data/xml/XSLTs/2004/06/01/XML2EDI/X0430M.xslt +8 -0
  646. data/data/xml/XSLTs/2004/06/01/XML2EDI/XD0133L.xslt +1081 -0
  647. data/data/xml/XSLTs/2004/06/01/XML2EDI/XD0233L.xslt +1082 -0
  648. data/data/xml/XSLTs/2004/06/01/XML2EDI/XLA1211203A.xslt +8 -0
  649. data/data/xml/XSLTs/2004/06/01/XML2EDI/XLA1251001A.xslt +8 -0
  650. data/data/xml/XSLTs/2004/06/01/XML2EDI/XLA1411001A.xslt +8 -0
  651. data/data/xml/XSLTs/2004/06/01/XML2EDI/XLA1451001A.xslt +8 -0
  652. data/data/xml/XSLTs/2004/06/01/XML2EDI/XLA1651001A.xslt +8 -0
  653. data/data/xml/XSLTs/2004/06/01/XML2EDI/XLA2011001A.xslt +8 -0
  654. data/data/xml/XSLTs/2004/06/01/XML2EDI/XLA2051001A.xslt +18 -0
  655. data/data/xml/XSLTs/2004/06/01/XML2EDI/XLA2111001A.xslt +8 -0
  656. data/data/xml/XSLTs/2004/06/01/XML2EDI/XLA2151001A.xslt +16 -0
  657. data/data/xml/XSLTs/2004/06/01/XML2EDI/XQ0430M.xslt +8 -0
  658. data/data/xml/XSLTs/2004/06/01/XML2EDI/m.xslt +1721 -0
  659. data/data/xml/XSLTs/2004/06/01/XML2EDI/m1.xslt +1082 -0
  660. data/data/xml/XSLTs/2004/06/01/XML2EDI/p1.xslt +915 -0
  661. data/data/xml/XSLTs/2004/06/01/XML2EDI/p2.xslt +1521 -0
  662. data/data/xml/XSLTs/2004/06/01/XML2EDI/p3.xslt +1185 -0
  663. data/data/xml/XSLTs/2004/06/01/XML2EDI/p4.xslt +1170 -0
  664. data/data/xml/XSLTs/2004/06/01/XML2EDI/q1.xslt +851 -0
  665. data/data/xml/XSLTs/2004/06/01/XML2EDI/q2.xslt +888 -0
  666. data/data/xml/XSLTs/2004/06/01/XML2EDI/q3.xslt +1215 -0
  667. data/data/xml/XSLTs/2004/06/01/XML2EDI/r1.xslt +1001 -0
  668. data/data/xml/XSLTs/2004/06/01/XML2EDI/r2.xslt +1004 -0
  669. data/data/xml/XSLTs/2004/06/01/XML2EDI/ref01.xml +1289 -0
  670. data/data/xml/XSLTs/2004/06/01/XML2EDI/x13.xslt +678 -0
  671. data/data/xml/XSLTs/2004/06/01/XML2EDI/x14.xslt +380 -0
  672. data/data/xml/XSLTs/2004/06/01/XML2EDI/x17.xslt +363 -0
  673. data/data/xml/XSLTs/2004/06/01/XML2EDI/x19.xslt +995 -0
  674. data/data/xml/XSLTs/2004/06/01/XML2EDI/x20.xslt +365 -0
  675. data/data/xml/XSLTs/2004/06/01/XML2EDI/x3.xslt +1198 -0
  676. data/data/xml/XSLTs/2004/06/01/XML2EDI/x5.xslt +1198 -0
  677. data/data/xml/XSLTs/2004/06/01/XML2EDI/x91.xslt +628 -0
  678. data/data/xml/XSLTs/2005/08/07/EDI2XML/A0132Z.xslt +346 -0
  679. data/data/xml/XSLTs/2005/08/07/EDI2XML/B0130X.xslt +235 -0
  680. data/data/xml/XSLTs/2005/08/07/EDI2XML/Breve.xslt +30 -0
  681. data/data/xml/XSLTs/2005/08/07/EDI2XML/C0130Q.xslt +111 -0
  682. data/data/xml/XSLTs/2005/08/07/EDI2XML/C0230Q.xslt +111 -0
  683. data/data/xml/XSLTs/2005/08/07/EDI2XML/C0330Q.xslt +77 -0
  684. data/data/xml/XSLTs/2005/08/07/EDI2XML/D0133L.xslt +404 -0
  685. data/data/xml/XSLTs/2005/08/07/EDI2XML/D0233L.xslt +436 -0
  686. data/data/xml/XSLTs/2005/08/07/EDI2XML/D0333L.xslt +776 -0
  687. data/data/xml/XSLTs/2005/08/07/EDI2XML/D0533L.xslt +523 -0
  688. data/data/xml/XSLTs/2005/08/07/EDI2XML/D1333L.xslt +343 -0
  689. data/data/xml/XSLTs/2005/08/07/EDI2XML/D1430C.xslt +135 -0
  690. data/data/xml/XSLTs/2005/08/07/EDI2XML/D1431C.xslt +135 -0
  691. data/data/xml/XSLTs/2005/08/07/EDI2XML/D1730C.xslt +151 -0
  692. data/data/xml/XSLTs/2005/08/07/EDI2XML/D1930C.xslt +370 -0
  693. data/data/xml/XSLTs/2005/08/07/EDI2XML/D2030C.xslt +151 -0
  694. data/data/xml/XSLTs/2005/08/07/EDI2XML/D9133L.xslt +203 -0
  695. data/data/xml/XSLTs/2005/08/07/EDI2XML/GeneralTemplates.xslt +1043 -0
  696. data/data/xml/XSLTs/2005/08/07/EDI2XML/H0130R.xslt +420 -0
  697. data/data/xml/XSLTs/2005/08/07/EDI2XML/H0230R.xslt +415 -0
  698. data/data/xml/XSLTs/2005/08/07/EDI2XML/LMS016.xslt +411 -0
  699. data/data/xml/XSLTs/2005/08/07/EDI2XML/Q0130K.xslt +351 -0
  700. data/data/xml/XSLTs/2005/08/07/EDI2XML/Q0230M.xslt +398 -0
  701. data/data/xml/XSLTs/2005/08/07/EDI2XML/Q0330P.xslt +466 -0
  702. data/data/xml/XSLTs/2005/08/07/EDI2XML/R0130K.xslt +412 -0
  703. data/data/xml/XSLTs/2005/08/07/EDI2XML/R0230M.xslt +636 -0
  704. data/data/xml/XSLTs/2005/08/07/EDI2XML/R0330P.xslt +470 -0
  705. data/data/xml/XSLTs/2005/08/07/EDI2XML/R0430P.xslt +507 -0
  706. data/data/xml/XSLTs/2005/08/07/EDI2XML/R6031W.xslt +460 -0
  707. data/data/xml/XSLTs/2005/08/07/EDI2XML/XML11_2_Emessage.xslt +74 -0
  708. data/data/xml/XSLTs/2005/08/07/EDI2XML/XR0130K.xslt +919 -0
  709. data/data/xml/XSLTs/2005/08/07/XML2EDI/ConvertMedicalSpecialityCode.xslt +85 -0
  710. data/data/xml/XSLTs/2005/08/07/XML2EDI/Emessage_2_XML11.xslt +94 -0
  711. data/data/xml/XSLTs/2005/08/07/XML2EDI/GeneralTemplates.xslt +275 -0
  712. data/data/xml/XSLTs/2005/08/07/XML2EDI/Letters.xslt +41 -0
  713. data/data/xml/XSLTs/2005/08/07/XML2EDI/X0430M.xslt +8 -0
  714. data/data/xml/XSLTs/2005/08/07/XML2EDI/XA0132Z.xslt +529 -0
  715. data/data/xml/XSLTs/2005/08/07/XML2EDI/XB0130X.xslt +453 -0
  716. data/data/xml/XSLTs/2005/08/07/XML2EDI/XC0130Q.xslt +147 -0
  717. data/data/xml/XSLTs/2005/08/07/XML2EDI/XC0230Q.xslt +147 -0
  718. data/data/xml/XSLTs/2005/08/07/XML2EDI/XC0330Q.xslt +147 -0
  719. data/data/xml/XSLTs/2005/08/07/XML2EDI/XD0133L.xslt +1029 -0
  720. data/data/xml/XSLTs/2005/08/07/XML2EDI/XD0233L.xslt +1030 -0
  721. data/data/xml/XSLTs/2005/08/07/XML2EDI/XD0333L.xslt +1118 -0
  722. data/data/xml/XSLTs/2005/08/07/XML2EDI/XD0533L.xslt +1090 -0
  723. data/data/xml/XSLTs/2005/08/07/XML2EDI/XD1333L.xslt +596 -0
  724. data/data/xml/XSLTs/2005/08/07/XML2EDI/XD1431C.xslt +325 -0
  725. data/data/xml/XSLTs/2005/08/07/XML2EDI/XD1730C.xslt +308 -0
  726. data/data/xml/XSLTs/2005/08/07/XML2EDI/XD1930C.xslt +915 -0
  727. data/data/xml/XSLTs/2005/08/07/XML2EDI/XD2030C.xslt +310 -0
  728. data/data/xml/XSLTs/2005/08/07/XML2EDI/XD9133L.xslt +575 -0
  729. data/data/xml/XSLTs/2005/08/07/XML2EDI/XH0130R.xslt +971 -0
  730. data/data/xml/XSLTs/2005/08/07/XML2EDI/XH0230R.xslt +972 -0
  731. data/data/xml/XSLTs/2005/08/07/XML2EDI/XI0001D.xslt +176 -0
  732. data/data/xml/XSLTs/2005/08/07/XML2EDI/XLA1211203A.xslt +8 -0
  733. data/data/xml/XSLTs/2005/08/07/XML2EDI/XLA1251001A.xslt +8 -0
  734. data/data/xml/XSLTs/2005/08/07/XML2EDI/XLA1411001A.xslt +8 -0
  735. data/data/xml/XSLTs/2005/08/07/XML2EDI/XLA1451001A.xslt +8 -0
  736. data/data/xml/XSLTs/2005/08/07/XML2EDI/XLA1651001A.xslt +8 -0
  737. data/data/xml/XSLTs/2005/08/07/XML2EDI/XLA2011001A.xslt +8 -0
  738. data/data/xml/XSLTs/2005/08/07/XML2EDI/XLA2051001A.xslt +18 -0
  739. data/data/xml/XSLTs/2005/08/07/XML2EDI/XLA2111001A.xslt +8 -0
  740. data/data/xml/XSLTs/2005/08/07/XML2EDI/XLA2151001A.xslt +16 -0
  741. data/data/xml/XSLTs/2005/08/07/XML2EDI/XLMS016.xslt +1676 -0
  742. data/data/xml/XSLTs/2005/08/07/XML2EDI/XLMS0XX.xslt +1676 -0
  743. data/data/xml/XSLTs/2005/08/07/XML2EDI/XQ0130K.xslt +797 -0
  744. data/data/xml/XSLTs/2005/08/07/XML2EDI/XQ0230M.xslt +834 -0
  745. data/data/xml/XSLTs/2005/08/07/XML2EDI/XQ0330P.xslt +1161 -0
  746. data/data/xml/XSLTs/2005/08/07/XML2EDI/XQ0430M.xslt +8 -0
  747. data/data/xml/XSLTs/2005/08/07/XML2EDI/XR0130K.xslt +862 -0
  748. data/data/xml/XSLTs/2005/08/07/XML2EDI/XR0230M.xslt +1463 -0
  749. data/data/xml/XSLTs/2005/08/07/XML2EDI/XR0330P.xslt +1104 -0
  750. data/data/xml/XSLTs/2005/08/07/XML2EDI/XR0430P.xslt +1226 -0
  751. data/data/xml/XSLTs/2005/08/07/XML2EDI/XR6031W.xslt +1727 -0
  752. data/data/xml/XSLTs/2005/08/07/stylesheet/viewEmessage.xsl +4817 -0
  753. data/data/xml/XSLTs/2006/07/01/EDI2XML/A0135Z.xslt +396 -0
  754. data/data/xml/XSLTs/2006/07/01/EDI2XML/Breve.xslt +30 -0
  755. data/data/xml/XSLTs/2006/07/01/EDI2XML/D9134L.xslt +235 -0
  756. data/data/xml/XSLTs/2006/07/01/EDI2XML/GeneralTemplates.xslt +1016 -0
  757. data/data/xml/XSLTs/2006/07/01/EDI2XML/Q0131K.xslt +501 -0
  758. data/data/xml/XSLTs/2006/07/01/EDI2XML/XML11_2_Emessage.xslt +78 -0
  759. data/data/xml/XSLTs/2006/07/01/EDI2XML/req01.xml +101 -0
  760. data/data/xml/XSLTs/2006/07/01/XML2EDI/ConvertMedicalSpecialityCode.xslt +85 -0
  761. data/data/xml/XSLTs/2006/07/01/XML2EDI/Emessage_2_XML11.xslt +94 -0
  762. data/data/xml/XSLTs/2006/07/01/XML2EDI/GeneralTemplates.xslt +242 -0
  763. data/data/xml/XSLTs/2006/07/01/XML2EDI/Letters.xslt +7 -0
  764. data/data/xml/XSLTs/2006/07/01/XML2EDI/XA0135Z.xslt +630 -0
  765. data/data/xml/XSLTs/2006/07/01/XML2EDI/XD9134L.xslt +716 -0
  766. data/data/xml/XSLTs/2006/07/01/XML2EDI/XQ0131K.xslt +1132 -0
  767. data/data/xml/XSLTs/2006/07/01/stylesheet/viewEmessage.xsl +589 -0
  768. data/data/xml/XSLTs/2007/02/01/EDI2XML/A0132Z.xslt +346 -0
  769. data/data/xml/XSLTs/2007/02/01/EDI2XML/A0137Z.xslt +468 -0
  770. data/data/xml/XSLTs/2007/02/01/EDI2XML/B0130X.xslt +214 -0
  771. data/data/xml/XSLTs/2007/02/01/EDI2XML/Breve.xslt +17 -0
  772. data/data/xml/XSLTs/2007/02/01/EDI2XML/C0130Q.xslt +111 -0
  773. data/data/xml/XSLTs/2007/02/01/EDI2XML/C0230Q.xslt +111 -0
  774. data/data/xml/XSLTs/2007/02/01/EDI2XML/C0330Q.xslt +77 -0
  775. data/data/xml/XSLTs/2007/02/01/EDI2XML/D0133L.xslt +404 -0
  776. data/data/xml/XSLTs/2007/02/01/EDI2XML/D0233L.xslt +436 -0
  777. data/data/xml/XSLTs/2007/02/01/EDI2XML/D0333L.xslt +776 -0
  778. data/data/xml/XSLTs/2007/02/01/EDI2XML/D0533L.xslt +523 -0
  779. data/data/xml/XSLTs/2007/02/01/EDI2XML/D0633L.xslt +404 -0
  780. data/data/xml/XSLTs/2007/02/01/EDI2XML/D0733L.xslt +404 -0
  781. data/data/xml/XSLTs/2007/02/01/EDI2XML/D0833L.xslt +404 -0
  782. data/data/xml/XSLTs/2007/02/01/EDI2XML/D1033L.xslt +404 -0
  783. data/data/xml/XSLTs/2007/02/01/EDI2XML/D1333L.xslt +343 -0
  784. data/data/xml/XSLTs/2007/02/01/EDI2XML/D1430C.xslt +135 -0
  785. data/data/xml/XSLTs/2007/02/01/EDI2XML/D1431C.xslt +135 -0
  786. data/data/xml/XSLTs/2007/02/01/EDI2XML/D1630C.xslt +462 -0
  787. data/data/xml/XSLTs/2007/02/01/EDI2XML/D1730C.xslt +151 -0
  788. data/data/xml/XSLTs/2007/02/01/EDI2XML/D1830C.xslt +443 -0
  789. data/data/xml/XSLTs/2007/02/01/EDI2XML/D1930C.xslt +370 -0
  790. data/data/xml/XSLTs/2007/02/01/EDI2XML/D2030C.xslt +151 -0
  791. data/data/xml/XSLTs/2007/02/01/EDI2XML/D9133L.xslt +203 -0
  792. data/data/xml/XSLTs/2007/02/01/EDI2XML/GeneralTemplates.xslt +1045 -0
  793. data/data/xml/XSLTs/2007/02/01/EDI2XML/H0130R.xslt +415 -0
  794. data/data/xml/XSLTs/2007/02/01/EDI2XML/H0230R.xslt +408 -0
  795. data/data/xml/XSLTs/2007/02/01/EDI2XML/H0630R.xslt +424 -0
  796. data/data/xml/XSLTs/2007/02/01/EDI2XML/H0730R.xslt +518 -0
  797. data/data/xml/XSLTs/2007/02/01/EDI2XML/H1030R.xslt +473 -0
  798. data/data/xml/XSLTs/2007/02/01/EDI2XML/H1230R.xslt +518 -0
  799. data/data/xml/XSLTs/2007/02/01/EDI2XML/LMS016.xslt +411 -0
  800. data/data/xml/XSLTs/2007/02/01/EDI2XML/LMS0XX.xslt +411 -0
  801. data/data/xml/XSLTs/2007/02/01/EDI2XML/Q0130K.xslt +352 -0
  802. data/data/xml/XSLTs/2007/02/01/EDI2XML/Q0230M.xslt +398 -0
  803. data/data/xml/XSLTs/2007/02/01/EDI2XML/Q0330P.xslt +459 -0
  804. data/data/xml/XSLTs/2007/02/01/EDI2XML/R0130K.xslt +419 -0
  805. data/data/xml/XSLTs/2007/02/01/EDI2XML/R0230M.xslt +645 -0
  806. data/data/xml/XSLTs/2007/02/01/EDI2XML/R0330P.xslt +470 -0
  807. data/data/xml/XSLTs/2007/02/01/EDI2XML/R0430P.xslt +485 -0
  808. data/data/xml/XSLTs/2007/02/01/EDI2XML/R6031W.xslt +452 -0
  809. data/data/xml/XSLTs/2007/02/01/EDI2XML/XML11_2_Emessage.xslt +74 -0
  810. data/data/xml/XSLTs/2007/02/01/EDI2XML/xr0130k.xslt +919 -0
  811. data/data/xml/XSLTs/2007/02/01/XML2EDI/ConvertMedicalSpecialityCode.xslt +85 -0
  812. data/data/xml/XSLTs/2007/02/01/XML2EDI/Emessage_2_XML11.xslt +94 -0
  813. data/data/xml/XSLTs/2007/02/01/XML2EDI/GeneralTemplates.xslt +176 -0
  814. data/data/xml/XSLTs/2007/02/01/XML2EDI/Letters.xslt +17 -0
  815. data/data/xml/XSLTs/2007/02/01/XML2EDI/X0430M.xslt +8 -0
  816. data/data/xml/XSLTs/2007/02/01/XML2EDI/XA0137Z.xslt +708 -0
  817. data/data/xml/XSLTs/2007/02/01/XML2EDI/XC0130Q.xslt +154 -0
  818. data/data/xml/XSLTs/2007/02/01/XML2EDI/XC0230Q.xslt +153 -0
  819. data/data/xml/XSLTs/2007/02/01/XML2EDI/XC0330Q.xslt +147 -0
  820. data/data/xml/XSLTs/2007/02/01/XML2EDI/XD0633L.xslt +1091 -0
  821. data/data/xml/XSLTs/2007/02/01/XML2EDI/XD0733L.xslt +1091 -0
  822. data/data/xml/XSLTs/2007/02/01/XML2EDI/XD0833L.xslt +1091 -0
  823. data/data/xml/XSLTs/2007/02/01/XML2EDI/XD1033L.xslt +1091 -0
  824. data/data/xml/XSLTs/2007/02/01/XML2EDI/XD1630C.xslt +1072 -0
  825. data/data/xml/XSLTs/2007/02/01/XML2EDI/XD1830C.xslt +1069 -0
  826. data/data/xml/XSLTs/2007/02/01/XML2EDI/XH0630R.xslt +1079 -0
  827. data/data/xml/XSLTs/2007/02/01/XML2EDI/XH0730R.xslt +1165 -0
  828. data/data/xml/XSLTs/2007/02/01/XML2EDI/XH1030R.xslt +1136 -0
  829. data/data/xml/XSLTs/2007/02/01/XML2EDI/XH1230R.xslt +1169 -0
  830. data/data/xml/XSLTs/2007/02/01/XML2EDI/XI0001D.xslt +80 -0
  831. data/data/xml/XSLTs/2007/02/01/XML2EDI/XI0002D.xslt +100 -0
  832. data/data/xml/XSLTs/2007/02/01/XML2EDI/XLA1211203A.xslt +8 -0
  833. data/data/xml/XSLTs/2007/02/01/XML2EDI/XLA1251001A.xslt +8 -0
  834. data/data/xml/XSLTs/2007/02/01/XML2EDI/XLA1411001A.xslt +8 -0
  835. data/data/xml/XSLTs/2007/02/01/XML2EDI/XLA1451001A.xslt +8 -0
  836. data/data/xml/XSLTs/2007/02/01/XML2EDI/XLA1651001A.xslt +8 -0
  837. data/data/xml/XSLTs/2007/02/01/XML2EDI/XLA2011001A.xslt +8 -0
  838. data/data/xml/XSLTs/2007/02/01/XML2EDI/XLA2051001A.xslt +18 -0
  839. data/data/xml/XSLTs/2007/02/01/XML2EDI/XLA2111001A.xslt +8 -0
  840. data/data/xml/XSLTs/2007/02/01/XML2EDI/XLA2151001A.xslt +16 -0
  841. data/data/xml/XSLTs/2007/02/01/XML2EDI/XQ0130K.xslt +878 -0
  842. data/data/xml/XSLTs/2007/02/01/XML2EDI/XQ0430M.xslt +8 -0
  843. data/data/xml/XSLTs/2007/02/01/XML2EDI/XR0130K.xslt +906 -0
  844. data/data/xml/XSLTs/2007/02/01/XML2EDI/XR0230M.xslt +1541 -0
  845. data/data/xml/XSLTs/2007/02/01/XML2EDI/XR0530M.xslt +11 -0
  846. data/data/xml/XSLTs/2007/02/01/XML2EDI/m1.xslt +1082 -0
  847. data/data/xml/XSLTs/2007/02/01/XML2EDI/o1.xslt +573 -0
  848. data/data/xml/XSLTs/2007/02/01/XML2EDI/xa0132z.xslt +556 -0
  849. data/data/xml/XSLTs/2007/02/01/XML2EDI/xb0130x.xslt +504 -0
  850. data/data/xml/XSLTs/2007/02/01/XML2EDI/xd0133l.xslt +1081 -0
  851. data/data/xml/XSLTs/2007/02/01/XML2EDI/xd0233l.xslt +1082 -0
  852. data/data/xml/XSLTs/2007/02/01/XML2EDI/xd0333l.xslt +1197 -0
  853. data/data/xml/XSLTs/2007/02/01/XML2EDI/xd0533l.xslt +1197 -0
  854. data/data/xml/XSLTs/2007/02/01/XML2EDI/xd1333l.xslt +678 -0
  855. data/data/xml/XSLTs/2007/02/01/XML2EDI/xd1431c.xslt +380 -0
  856. data/data/xml/XSLTs/2007/02/01/XML2EDI/xd1730c.xslt +363 -0
  857. data/data/xml/XSLTs/2007/02/01/XML2EDI/xd1930c.xslt +996 -0
  858. data/data/xml/XSLTs/2007/02/01/XML2EDI/xd2030c.xslt +365 -0
  859. data/data/xml/XSLTs/2007/02/01/XML2EDI/xd9133l.xslt +628 -0
  860. data/data/xml/XSLTs/2007/02/01/XML2EDI/xh0130r.xslt +1036 -0
  861. data/data/xml/XSLTs/2007/02/01/XML2EDI/xh0230r.xslt +1042 -0
  862. data/data/xml/XSLTs/2007/02/01/XML2EDI/xlms016.xslt +1703 -0
  863. data/data/xml/XSLTs/2007/02/01/XML2EDI/xlms0xx.xslt +1703 -0
  864. data/data/xml/XSLTs/2007/02/01/XML2EDI/xq0230m.xslt +915 -0
  865. data/data/xml/XSLTs/2007/02/01/XML2EDI/xq0330p.xslt +1242 -0
  866. data/data/xml/XSLTs/2007/02/01/XML2EDI/xr0330p.xslt +1185 -0
  867. data/data/xml/XSLTs/2007/02/01/XML2EDI/xr0430p.xslt +1170 -0
  868. data/data/xml/XSLTs/2007/02/01/XML2EDI/xr6031w.xslt +1770 -0
  869. data/data/xml/XSLTs/2007/02/01/stylesheet/ParagraphedText.xsl +39 -0
  870. data/data/xml/XSLTs/2007/02/01/stylesheet/WebReport.xsl +607 -0
  871. data/data/xml/XSLTs/2007/02/01/stylesheet/viewEmessage.xsl +3765 -0
  872. data/data/xml/XSLTs/2008/09/17/EDI2XML/A0138Z.xslt +471 -0
  873. data/data/xml/XSLTs/2008/09/17/EDI2XML/Breve.xslt +6 -0
  874. data/data/xml/XSLTs/2008/09/17/EDI2XML/D1034L.xslt +404 -0
  875. data/data/xml/XSLTs/2008/09/17/EDI2XML/GeneralTemplates.xslt +1017 -0
  876. data/data/xml/XSLTs/2008/09/17/EDI2XML/XML11_2_Emessage.xslt +74 -0
  877. data/data/xml/XSLTs/2008/09/17/XML2EDI/Emessage_2_XML11.xslt +94 -0
  878. data/data/xml/XSLTs/2008/09/17/XML2EDI/GeneralTemplates.xslt +176 -0
  879. data/data/xml/XSLTs/2008/09/17/XML2EDI/Letters.xslt +6 -0
  880. data/data/xml/XSLTs/2008/09/17/XML2EDI/XA0138Z.xslt +711 -0
  881. data/data/xml/XSLTs/2008/09/17/XML2EDI/XD1034L.xslt +1082 -0
  882. data/data/xml/XSLTs/2008/09/17/XML2EDI/crap/m1.xslt +1072 -0
  883. data/data/xml/XSLTs/2008/09/17/XML2EDI/crap/o1.xslt +571 -0
  884. data/data/xml/XSLTs/2008/09/17/stylesheet/ParagraphedText.xsl +39 -0
  885. data/data/xml/XSLTs/2008/09/17/stylesheet/WebReport.xsl +607 -0
  886. data/data/xml/XSLTs/2008/09/17/stylesheet/viewEmessage.xsl +163 -0
  887. data/data/xml/XSLTs/2008/09/17/stylesheet/viewEmessage.xslt +2325 -0
  888. data/data/xml/XSLTs/2009/08/01/EDI2XML/Breve.xslt +5 -0
  889. data/data/xml/XSLTs/2009/08/01/EDI2XML/D9034L.xslt +235 -0
  890. data/data/xml/XSLTs/2009/08/01/EDI2XML/GeneralTemplates.xslt +1015 -0
  891. data/data/xml/XSLTs/2009/08/01/EDI2XML/XML11_2_Emessage.xslt +78 -0
  892. data/data/xml/XSLTs/2009/08/01/XML2EDI/ConvertMedicalSpecialityCode.xslt +85 -0
  893. data/data/xml/XSLTs/2009/08/01/XML2EDI/Emessage_2_XML11.xslt +94 -0
  894. data/data/xml/XSLTs/2009/08/01/XML2EDI/GeneralTemplates.xslt +241 -0
  895. data/data/xml/XSLTs/2009/08/01/XML2EDI/Letters.xslt +5 -0
  896. data/data/xml/XSLTs/2009/08/01/XML2EDI/XD9034L.xslt +714 -0
  897. data/data/xml/XSLTs/2009/08/01/stylesheet/viewEmessage.xsl +90 -0
  898. data/data/xml/XSLTs/2010/07/01/EDI2XML/A0139Z.xslt +471 -0
  899. data/data/xml/XSLTs/2010/07/01/EDI2XML/Breve.xslt +6 -0
  900. data/data/xml/XSLTs/2010/07/01/EDI2XML/GeneralTemplates.xslt +1057 -0
  901. data/data/xml/XSLTs/2010/07/01/EDI2XML/U0131U.xslt +606 -0
  902. data/data/xml/XSLTs/2010/07/01/EDI2XML/XML11_2_Emessage.xslt +74 -0
  903. data/data/xml/XSLTs/2010/07/01/XML2EDI/Emessage_2_XML11.xslt +93 -0
  904. data/data/xml/XSLTs/2010/07/01/XML2EDI/GeneralTemplates.xslt +220 -0
  905. data/data/xml/XSLTs/2010/07/01/XML2EDI/Letters.xslt +6 -0
  906. data/data/xml/XSLTs/2010/07/01/XML2EDI/XA0139Z.xslt +711 -0
  907. data/data/xml/XSLTs/2010/07/01/XML2EDI/XU0131U.xslt +1259 -0
  908. data/data/xml/XSLTs/2010/07/01/stylesheet/ParagraphedText.xsl +39 -0
  909. data/data/xml/XSLTs/2010/07/01/stylesheet/WebReport.xsl +607 -0
  910. data/data/xml/XSLTs/2010/07/01/stylesheet/viewEmessage.xsl +163 -0
  911. data/data/xml/XSLTs/2010/07/01/stylesheet/viewEmessage.xslt +2325 -0
  912. data/data/xml/XSLTs/2011/02/17/EDI2XML/Breve.xslt +5 -0
  913. data/data/xml/XSLTs/2011/02/17/EDI2XML/D3234L.xslt +591 -0
  914. data/data/xml/XSLTs/2011/02/17/EDI2XML/GeneralTemplates.xslt +1350 -0
  915. data/data/xml/XSLTs/2011/02/17/EDI2XML/XML11_2_Emessage.xslt +74 -0
  916. data/data/xml/XSLTs/2011/02/17/XML2EDI/Emessage_2_XML11.xslt +93 -0
  917. data/data/xml/XSLTs/2011/02/17/XML2EDI/GeneralTemplates.xslt +220 -0
  918. data/data/xml/XSLTs/2011/02/17/XML2EDI/Letters.xslt +5 -0
  919. data/data/xml/XSLTs/2011/02/17/XML2EDI/XD3234L.xslt +1978 -0
  920. data/data/xml/XSLTs/2011/02/17/stylesheet/BirthNotification2html.xsl +599 -0
  921. data/data/xml/XSLTs/2011/02/17/stylesheet/common.xsl +524 -0
  922. data/data/xml/XSLTs/2011/02/17/stylesheet/viewEmessage.xsl +175 -0
  923. data/data/xml/XSLTs/2012/03/28/EDI2XML/B0131X.xslt +236 -0
  924. data/data/xml/XSLTs/2012/03/28/EDI2XML/Breve.xslt +6 -0
  925. data/data/xml/XSLTs/2012/03/28/EDI2XML/GeneralTemplates.xslt +1043 -0
  926. data/data/xml/XSLTs/2012/03/28/EDI2XML/R0431P.xslt +507 -0
  927. data/data/xml/XSLTs/2012/03/28/EDI2XML/XML11_2_Emessage.xslt +74 -0
  928. data/data/xml/XSLTs/2012/03/28/XML2EDI/Emessage_2_XML11.xslt +98 -0
  929. data/data/xml/XSLTs/2012/03/28/XML2EDI/GeneralTemplates.xslt +203 -0
  930. data/data/xml/XSLTs/2012/03/28/XML2EDI/Letters.xslt +6 -0
  931. data/data/xml/XSLTs/2012/03/28/XML2EDI/XB0131X.xslt +455 -0
  932. data/data/xml/XSLTs/2012/03/28/XML2EDI/XR0431P.xslt +1226 -0
  933. data/data/xml/XSLTs/2012/03/28/stylesheet/viewEmessage.xsl +565 -0
  934. data/data/xml/XSLTs/2013/09/02/EDI2XML/Breve.xslt +5 -0
  935. data/data/xml/XSLTs/2013/09/02/EDI2XML/GeneralTemplates.xslt +1045 -0
  936. data/data/xml/XSLTs/2013/09/02/EDI2XML/H0731R.xslt +524 -0
  937. data/data/xml/XSLTs/2013/09/02/EDI2XML/XML11_2_Emessage.xslt +74 -0
  938. data/data/xml/XSLTs/2013/09/02/XML2EDI/ConvertMedicalSpecialityCode.xslt +85 -0
  939. data/data/xml/XSLTs/2013/09/02/XML2EDI/Emessage_2_XML11.xslt +94 -0
  940. data/data/xml/XSLTs/2013/09/02/XML2EDI/GeneralTemplates.xslt +176 -0
  941. data/data/xml/XSLTs/2013/09/02/XML2EDI/Letters.xslt +5 -0
  942. data/data/xml/XSLTs/2013/09/02/XML2EDI/XH0731R.xslt +1171 -0
  943. data/data/xml/XSLTs/2013/09/02/stylesheet/ParagraphedText.xsl +39 -0
  944. data/data/xml/XSLTs/2013/09/02/stylesheet/WebReport.xsl +607 -0
  945. data/data/xml/XSLTs/2013/09/02/stylesheet/viewEmessage.xsl +300 -0
  946. data/data/xml/XSLTs/2014/10/08/EDI2XML/A0140Z.xslt +474 -0
  947. data/data/xml/XSLTs/2014/10/08/EDI2XML/Breve.xslt +12 -0
  948. data/data/xml/XSLTs/2014/10/08/EDI2XML/GeneralTemplates.xslt +1066 -0
  949. data/data/xml/XSLTs/2014/10/08/EDI2XML/Q0331P.xslt +494 -0
  950. data/data/xml/XSLTs/2014/10/08/EDI2XML/R0130F.xslt +338 -0
  951. data/data/xml/XSLTs/2014/10/08/EDI2XML/R0131K.xslt +449 -0
  952. data/data/xml/XSLTs/2014/10/08/EDI2XML/R0231M.xslt +663 -0
  953. data/data/xml/XSLTs/2014/10/08/EDI2XML/R0331P.xslt +517 -0
  954. data/data/xml/XSLTs/2014/10/08/EDI2XML/R0432P.xslt +554 -0
  955. data/data/xml/XSLTs/2014/10/08/EDI2XML/R0730G.xslt +469 -0
  956. data/data/xml/XSLTs/2014/10/08/EDI2XML/XML11_2_Emessage.xslt +74 -0
  957. data/data/xml/XSLTs/2014/10/08/XML2EDI/Emessage_2_XML11.xslt +98 -0
  958. data/data/xml/XSLTs/2014/10/08/XML2EDI/GeneralTemplates.xslt +328 -0
  959. data/data/xml/XSLTs/2014/10/08/XML2EDI/Letters.xslt +13 -0
  960. data/data/xml/XSLTs/2014/10/08/XML2EDI/XA0140Z.xslt +728 -0
  961. data/data/xml/XSLTs/2014/10/08/XML2EDI/XQ0331P.xslt +1081 -0
  962. data/data/xml/XSLTs/2014/10/08/XML2EDI/XR0130F.xslt +660 -0
  963. data/data/xml/XSLTs/2014/10/08/XML2EDI/XR0131K.xslt +900 -0
  964. data/data/xml/XSLTs/2014/10/08/XML2EDI/XR0231M.xslt +1555 -0
  965. data/data/xml/XSLTs/2014/10/08/XML2EDI/XR0331P.xslt +1228 -0
  966. data/data/xml/XSLTs/2014/10/08/XML2EDI/XR0432P.xslt +1220 -0
  967. data/data/xml/XSLTs/2014/10/08/XML2EDI/XR0532M.xslt +11 -0
  968. data/data/xml/XSLTs/2014/10/08/XML2EDI/XR0730G.xslt +1035 -0
  969. data/data/xml/XSLTs/2014/10/08/stylesheet/WebReport.xsl +565 -0
  970. data/data/xml/XSLTs/2014/10/08/stylesheet/viewEmessage.xsl +2951 -0
  971. data/data/xml/XSLTs/2015/02/16/EDI2XML/Breve.xslt +5 -0
  972. data/data/xml/XSLTs/2015/02/16/EDI2XML/GeneralTemplates.xslt +1079 -0
  973. data/data/xml/XSLTs/2015/02/16/EDI2XML/U0131U.xslt +606 -0
  974. data/data/xml/XSLTs/2015/02/16/EDI2XML/XML11_2_Emessage.xslt +74 -0
  975. data/data/xml/XSLTs/2015/02/16/XML2EDI/Emessage_2_XML11.xslt +93 -0
  976. data/data/xml/XSLTs/2015/02/16/XML2EDI/GeneralTemplates.xslt +242 -0
  977. data/data/xml/XSLTs/2015/02/16/XML2EDI/Letters.xslt +5 -0
  978. data/data/xml/XSLTs/2015/02/16/XML2EDI/XU0131U.xslt +1259 -0
  979. data/data/xml/XSLTs/2015/02/16/stylesheet/viewEmessage.xsl +8 -0
  980. data/data/xml/examples/xrpt05/6092035412.xml +223 -0
  981. data/data/xml/examples/xrpt05/6092035418.xml +136 -0
  982. data/data/xml/examples/xrpt05/6092035422.xml +230 -0
  983. data/data/xml/examples/xrpt05/6092035424.xml +95 -0
  984. data/data/xml/examples/xrpt05/TekstEksempel.xml +13 -0
  985. data/data/xml/namespaces.xls +0 -0
  986. data/data/xml/viewCommon.xsl +32 -0
  987. data/data/xml/viewEmessage.xslt +1229 -0
  988. data/data/xml/xmledi.properties +171 -0
  989. data/edifact_converter.gemspec +27 -0
  990. data/lib/edifact_converter/abstract_syntax_tree.rb +97 -0
  991. data/lib/edifact_converter/binary.rb +69 -0
  992. data/lib/edifact_converter/command_line_parser.rb +72 -0
  993. data/lib/edifact_converter/comparator.rb +194 -0
  994. data/lib/edifact_converter/configuration/edifact_rule.rb +38 -0
  995. data/lib/edifact_converter/configuration/json_configurator.rb +91 -0
  996. data/lib/edifact_converter/configuration/xml_rule.rb +74 -0
  997. data/lib/edifact_converter/configuration/yaml_configurator.rb +91 -0
  998. data/lib/edifact_converter/configuration.rb +42 -0
  999. data/lib/edifact_converter/converter.rb +50 -0
  1000. data/lib/edifact_converter/converter_methods.rb +137 -0
  1001. data/lib/edifact_converter/debug_handler.rb +50 -0
  1002. data/lib/edifact_converter/difference.rb +36 -0
  1003. data/lib/edifact_converter/edi2xml11/brev_handler.rb +51 -0
  1004. data/lib/edifact_converter/edi2xml11/edi_reader.rb +185 -0
  1005. data/lib/edifact_converter/edi2xml11/hidden_group_handler.rb +47 -0
  1006. data/lib/edifact_converter/edi2xml11/locator.rb +28 -0
  1007. data/lib/edifact_converter/edi2xml11/parent_group_handler.rb +43 -0
  1008. data/lib/edifact_converter/edi2xml11/pipeline.rb +38 -0
  1009. data/lib/edifact_converter/edi2xml11/position.rb +20 -0
  1010. data/lib/edifact_converter/edi2xml11/position_io.rb +75 -0
  1011. data/lib/edifact_converter/edi2xml11/properties_handler.rb +101 -0
  1012. data/lib/edifact_converter/edi2xml11/segment_group_handler.rb +49 -0
  1013. data/lib/edifact_converter/edi2xml11/settings_handler.rb +31 -0
  1014. data/lib/edifact_converter/edi2xml11/xml_handler.rb +108 -0
  1015. data/lib/edifact_converter/edi2xml11.rb +19 -0
  1016. data/lib/edifact_converter/edifact.rb +110 -0
  1017. data/lib/edifact_converter/edifact_error.rb +19 -0
  1018. data/lib/edifact_converter/empty_handler.rb +28 -0
  1019. data/lib/edifact_converter/ftx_text.rb +153 -0
  1020. data/lib/edifact_converter/message.rb +30 -0
  1021. data/lib/edifact_converter/result.rb +39 -0
  1022. data/lib/edifact_converter/version.rb +3 -0
  1023. data/lib/edifact_converter/xml/paragraph.rb +183 -0
  1024. data/lib/edifact_converter/xml/xftx_parser.rb +153 -0
  1025. data/lib/edifact_converter/xml.rb +137 -0
  1026. data/lib/edifact_converter/xml112edi/checksum_handler.rb +42 -0
  1027. data/lib/edifact_converter/xml112edi/edi_handler.rb +86 -0
  1028. data/lib/edifact_converter/xml112edi/segment_checks.rb +42 -0
  1029. data/lib/edifact_converter/xml112edi/xml_reader.rb +88 -0
  1030. data/lib/edifact_converter/xml112edi.rb +10 -0
  1031. data/lib/edifact_converter.rb +62 -0
  1032. data/test/abstract_syntax_tree_test.rb +68 -0
  1033. data/test/comparator_test.rb +126 -0
  1034. data/test/complete/edifact_converter_test.rb +57 -0
  1035. data/test/complete/files/edifact/BIN01_1.edi +1403 -0
  1036. data/test/complete/files/edifact/BIN01_2.edi +917 -3
  1037. data/test/complete/files/edifact/BIN01_3.edi +1583 -3
  1038. data/test/complete/files/edifact/BIN01_4.edi +66 -0
  1039. data/test/complete/files/edifact/BIN01_5.edi +93 -0
  1040. data/test/complete/files/edifact/BIN01_6.edi +4819 -6
  1041. data/test/complete/files/edifact/CTL01_1.edi +10 -0
  1042. data/test/complete/files/edifact/CTL02_1.edi +9 -0
  1043. data/test/complete/files/edifact/CTL03_1.edi +8 -0
  1044. data/test/complete/files/edifact/DIS01_1.edi +55 -0
  1045. data/test/complete/files/edifact/DIS02_1.edi +44 -0
  1046. data/test/complete/files/edifact/DIS03_1.edi +1 -0
  1047. data/test/complete/files/edifact/DIS05_1.edi +41 -0
  1048. data/test/complete/files/edifact/DIS06_1.edi +37 -0
  1049. data/test/complete/files/edifact/DIS07_1.edi +39 -0
  1050. data/test/complete/files/edifact/DIS08_1.edi +40 -0
  1051. data/test/complete/files/edifact/DIS08_2.edi +1 -0
  1052. data/test/complete/files/edifact/DIS13_1.edi +1 -0
  1053. data/test/complete/files/edifact/DIS14_1.edi +50 -0
  1054. data/test/complete/files/edifact/DIS17_1.edi +29 -0
  1055. data/test/complete/files/edifact/DIS20_1.edi +29 -0
  1056. data/test/complete/files/edifact/DIS91_1.edi +33 -0
  1057. data/test/complete/files/edifact/DIS91_2.edi +32 -0
  1058. data/test/complete/files/edifact/DIS91_3.edi +37 -0
  1059. data/test/complete/files/edifact/PRE01_1.edi +1 -0
  1060. data/test/complete/files/edifact/PRE01_2.edi +1 -0
  1061. data/test/complete/files/edifact/PRE01_3.edi +1 -0
  1062. data/test/complete/files/edifact/PRE60_1.edi +1 -0
  1063. data/test/complete/files/edifact/PRE60_2.edi +1 -0
  1064. data/test/complete/files/edifact/PRE60_3.edi +1 -0
  1065. data/test/complete/files/edifact/REF01_1.edi +1 -0
  1066. data/test/complete/files/edifact/REF02_1.edi +54 -0
  1067. data/test/complete/files/edifact/REF06_1.edi +43 -0
  1068. data/test/complete/files/edifact/REF06_2.edi +45 -0
  1069. data/test/complete/files/edifact/REF06_3.edi +46 -0
  1070. data/test/complete/files/edifact/REF07_1.edi +46 -0
  1071. data/test/complete/files/edifact/REF07_2.edi +47 -0
  1072. data/test/complete/files/edifact/REF07_3.edi +48 -0
  1073. data/test/complete/files/edifact/REQ01_1.edi +1 -0
  1074. data/test/complete/files/edifact/REQ02_1.edi +57 -0
  1075. data/test/complete/files/edifact/REQ03_1.edi +65 -0
  1076. data/test/complete/files/edifact/REQ03_2.edi +64 -0
  1077. data/test/complete/files/edifact/RPT01_1.edi +146 -0
  1078. data/test/complete/files/edifact/RPT01_2.edi +41 -0
  1079. data/test/complete/files/edifact/RPT01_3.edi +42 -0
  1080. data/test/complete/files/edifact/RPT03_1.edi +63 -0
  1081. data/test/complete/files/edifact/RPT04_1.edi +76 -0
  1082. data/test/complete/files/edifact/RPT04_2.edi +81 -0
  1083. data/test/complete/files/xml/BIN01_1.xml +23295 -0
  1084. data/test/complete/files/xml/BIN01_2.xml +3372 -0
  1085. data/test/complete/files/xml/BIN01_3.xml +2061 -0
  1086. data/test/complete/files/xml/BIN01_4.xml +3327 -0
  1087. data/test/complete/files/xml/BIN01_5.xml +212 -0
  1088. data/test/complete/files/xml/BIN01_6.xml +21487 -0
  1089. data/test/complete/files/xml/CTL01_1.xml +2 -0
  1090. data/test/complete/files/xml/CTL02_1.xml +2 -0
  1091. data/test/complete/files/xml/CTL03_1.xml +2 -0
  1092. data/test/complete/files/xml/DIS01_1.xml +2 -0
  1093. data/test/complete/files/xml/DIS02_1.xml +2 -0
  1094. data/test/complete/files/xml/DIS03_1.xml +2 -0
  1095. data/test/complete/files/xml/DIS05_1.xml +2 -0
  1096. data/test/complete/files/xml/DIS06_1.xml +2 -0
  1097. data/test/complete/files/xml/DIS07_1.xml +2 -0
  1098. data/test/complete/files/xml/DIS08_1.xml +2 -0
  1099. data/test/complete/files/xml/DIS08_2.xml +2 -0
  1100. data/test/complete/files/xml/DIS13_1.xml +2 -0
  1101. data/test/complete/files/xml/DIS14_1.xml +2 -0
  1102. data/test/complete/files/xml/DIS17_1.xml +2 -0
  1103. data/test/complete/files/xml/DIS20_1.xml +2 -0
  1104. data/test/complete/files/xml/DIS91_1.xml +2 -0
  1105. data/test/complete/files/xml/DIS91_2.xml +2 -0
  1106. data/test/complete/files/xml/DIS91_3.xml +2 -0
  1107. data/test/complete/files/xml/PRE01_1.xml +2 -0
  1108. data/test/complete/files/xml/PRE01_2.xml +2 -0
  1109. data/test/complete/files/xml/PRE01_3.xml +2 -0
  1110. data/test/complete/files/xml/PRE60_1.xml +2 -0
  1111. data/test/complete/files/xml/PRE60_2.xml +2 -0
  1112. data/test/complete/files/xml/PRE60_3.xml +2 -0
  1113. data/test/complete/files/xml/REF01_1.xml +108 -0
  1114. data/test/complete/files/xml/REF02_1.xml +2 -0
  1115. data/test/complete/files/xml/REF06_1.xml +2 -0
  1116. data/test/complete/files/xml/REF06_2.xml +2 -0
  1117. data/test/complete/files/xml/REF06_3.xml +2 -0
  1118. data/test/complete/files/xml/REF07_1.xml +2 -0
  1119. data/test/complete/files/xml/REF07_2.xml +2 -0
  1120. data/test/complete/files/xml/REF07_3.xml +2 -0
  1121. data/test/complete/files/xml/REQ01_1.xml +2 -0
  1122. data/test/complete/files/xml/REQ02_1.xml +2 -0
  1123. data/test/complete/files/xml/REQ03_1.xml +2 -0
  1124. data/test/complete/files/xml/REQ03_2.xml +2 -0
  1125. data/test/complete/files/xml/RPT01_1.xml +2 -0
  1126. data/test/complete/files/xml/RPT01_2.xml +2 -0
  1127. data/test/complete/files/xml/RPT01_3.xml +2 -0
  1128. data/test/complete/files/xml/RPT03_1.xml +2 -0
  1129. data/test/complete/files/xml/RPT04_1.xml +2 -0
  1130. data/test/complete/files/xml/RPT04_2.xml +2 -0
  1131. data/test/converter_methods_test.rb +110 -0
  1132. data/test/edi2xml11/brev_handler_test.rb +84 -0
  1133. data/test/edi2xml11/edi_reader_test.rb +287 -0
  1134. data/test/edi2xml11/log_reader_handler.rb +109 -0
  1135. data/test/edi2xml11/postion_io_test.rb +87 -0
  1136. data/test/edi2xml11/postion_test.rb +19 -0
  1137. data/test/edi2xml11/segment_group_handler_test.rb +88 -0
  1138. data/test/edi2xml11/xml_handler_test.rb +76 -0
  1139. data/test/edifact_test.rb +235 -0
  1140. data/test/empty_handler_test.rb +34 -0
  1141. data/test/files/DIS14_ok.edi +50 -0
  1142. data/test/files/DIS14_ok.xml +460 -0
  1143. data/test/files/DIS17_ok.edi +29 -0
  1144. data/test/files/DIS20_ERROR_ENC0.edi +29 -0
  1145. data/test/files/DIS20_ERROR_UNB0.edi +29 -0
  1146. data/test/files/DIS20_ERROR_UNB1.edi +28 -0
  1147. data/test/files/DIS20_ERROR_UNB2.edi +30 -0
  1148. data/test/files/DIS20_ERROR_UNB3.edi +57 -0
  1149. data/test/files/DIS20_ERROR_UNH0.edi +29 -0
  1150. data/test/files/DIS20_ERROR_UNH1.edi +28 -0
  1151. data/test/files/DIS20_ERROR_UNH2.edi +29 -0
  1152. data/test/files/DIS20_ERROR_UNT0.edi +29 -0
  1153. data/test/files/DIS20_ERROR_UNT1.edi +28 -0
  1154. data/test/files/DIS20_ERROR_UNT2.edi +29 -0
  1155. data/test/files/DIS20_ERROR_UNZ0.edi +29 -0
  1156. data/test/files/DIS20_ERROR_UNZ1.edi +29 -0
  1157. data/test/files/DIS20_ERROR_UNZ2.edi +29 -0
  1158. data/test/files/DIS20_ERROR_UNZ3.edi +28 -0
  1159. data/test/files/DIS20_ERROR_XSL0.edi +29 -0
  1160. data/test/files/DIS20_ERROR_XSL1.edi +29 -0
  1161. data/test/files/DIS20_ERROR_XSL2.edi +29 -0
  1162. data/test/files/DIS20_ok.edi +29 -0
  1163. data/test/files/DIS20_ok_UNA.edi +28 -0
  1164. data/test/files/DIS91_ERROR_XSL0.edi +29 -0
  1165. data/test/files/DIS91_XFTX.xml +2 -0
  1166. data/test/files/DIS91_ok.edi +33 -0
  1167. data/test/files/PRE60_ok.edi +1 -0
  1168. data/test/files/UNA.xml +2 -0
  1169. data/test/files/XBIN_hello_World.edi +26 -0
  1170. data/test/files/XBIN_hello_World.xml +59 -0
  1171. data/test/files/XBIN_hofte.xml +2119 -0
  1172. data/test/files/korr_x9134.xml +61 -0
  1173. data/test/files/sygehushenv_ver30.edi +60 -0
  1174. data/test/files/test.edi +50 -0
  1175. data/test/files/test.xml +1039 -0
  1176. data/test/files/test.xsl +41 -0
  1177. data/test/files/text.edi +50 -0
  1178. data/test/xml/paragraph_test.rb +165 -0
  1179. data/test/xml/xftx_parser_test.rb +200 -0
  1180. metadata +1479 -0
@@ -0,0 +1,1978 @@
1
+ <?xml version="1.0"?>
2
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m="http://rep.oio.dk/medcom.dk/xml/schemas/2011/02/17/" version="1.0">
3
+ <xsl:output method="xml" indent="yes"/>
4
+ <!-- Fødselsanmeldelse -->
5
+ <xsl:template match="m:BirthNotification">
6
+ <xsl:variable name="Letter" select="m:Letter"/>
7
+ <xsl:variable name="Sender" select="m:Sender"/>
8
+ <xsl:variable name="Receiver" select="m:Receiver"/>
9
+ <xsl:variable name="OwnMaternityMother" select="m:OwnMaternityMother"/>
10
+ <xsl:variable name="Practitioner" select="m:Practitioner"/>
11
+ <xsl:variable name="BirthMaternityMother" select="m:BirthMaternityMother"/>
12
+ <xsl:variable name="Patient" select="m:Patient"/>
13
+ <xsl:variable name="Partner" select="m:PartnerRelation"/>
14
+ <xsl:variable name="Child" select="m:ChildRelation"/>
15
+ <xsl:variable name="Pregnancy" select="m:Pregnancy"/>
16
+ <xsl:variable name="Birth" select="m:Birth"/>
17
+ <xsl:variable name="ChildInfo" select="m:ChildInfo"/>
18
+
19
+ <Brev>
20
+ <UNH>
21
+ <Elm>
22
+ <SubElm>
23
+ <xsl:value-of select="$Letter/m:Identifier"/>
24
+ </SubElm>
25
+ </Elm>
26
+ <Elm>
27
+ <SubElm>MEDDIS</SubElm>
28
+ <SubElm>D</SubElm>
29
+ <SubElm>93A</SubElm>
30
+ <SubElm>UN</SubElm>
31
+ <SubElm>D3234L</SubElm>
32
+ </Elm>
33
+ <Elm>
34
+ <SubElm>DIS32</SubElm>
35
+ </Elm>
36
+ </UNH>
37
+ <BrevIndhold>
38
+ <BGM>
39
+ <Elm>
40
+ <SubElm>EPI</SubElm>
41
+ </Elm>
42
+ <Elm/>
43
+ <Elm>
44
+ <SubElm>9</SubElm>
45
+ </Elm>
46
+ <Elm>
47
+ <SubElm>NA</SubElm>
48
+ </Elm>
49
+ </BGM>
50
+ <DTM>
51
+ <Elm>
52
+ <SubElm>137</SubElm>
53
+ <SubElm>
54
+ <xsl:variable name="DT" select="$Letter/m:Authorisation"/>
55
+ <xsl:variable name="DT203"
56
+ select="concat(substring($DT/m:Date,1,4),substring($DT/m:Date,6,2),substring($DT/m:Date,9,2),substring($DT/m:Time,1,2),substring($DT/m:Time,4,2))"/>
57
+ <xsl:value-of select="$DT203"/>
58
+ </SubElm>
59
+ <SubElm>203</SubElm>
60
+ </Elm>
61
+ </DTM>
62
+
63
+ <!-- AFSENDER -->
64
+ <S01>
65
+ <xsl:variable name="Participant" select="$Sender"/>
66
+ <Elm>
67
+ <SubElm>01</SubElm>
68
+ </Elm>
69
+ <NAD>
70
+ <Elm>
71
+ <SubElm>SSP</SubElm>
72
+ </Elm>
73
+ <Elm>
74
+ <SubElm>
75
+ <xsl:value-of select="$Participant/m:Identifier"/>
76
+ </SubElm>
77
+ <SubElm>
78
+ <xsl:variable name="IC" select="$Participant/m:IdentifierCode"/>
79
+ <xsl:choose>
80
+ <xsl:when test="$IC='sygehusafdelingsnummer' ">SKS</xsl:when>
81
+ <xsl:when test="$IC='ydernummer' ">YNR</xsl:when>
82
+ <xsl:when test="$IC='lokationsnummer' "/>
83
+ <xsl:when test="count($IC)=0 "/>
84
+ <xsl:when test="$IC='kommunenummer' ">KOM</xsl:when>
85
+ <xsl:when test="$IC='sorkode'">SOR</xsl:when>
86
+ <xsl:otherwise>
87
+ <FEJL>Kan ikke oversætte IdentifierCodeType: <xsl:value-of select="$IC"/>
88
+ </FEJL>
89
+ </xsl:otherwise>
90
+ </xsl:choose>
91
+ </SubElm>
92
+ <SubElm>
93
+ <xsl:variable name="IC" select="$Participant/m:IdentifierCode"/>
94
+ <xsl:choose>
95
+ <xsl:when test="$IC='sygehusafdelingsnummer' ">SST</xsl:when>
96
+ <xsl:when test="$IC='ydernummer' ">SFU</xsl:when>
97
+ <xsl:when test="$IC='lokationsnummer' ">9</xsl:when>
98
+ <xsl:when test="count($IC)=0 ">9</xsl:when>
99
+ <xsl:when test="$IC='kommunenummer' ">IM</xsl:when>
100
+ <xsl:when test="$IC='sorkode'">SST</xsl:when>
101
+ <xsl:otherwise>
102
+ <FEJL>Kan ikke oversætte IdentifierCodeType: <xsl:value-of select="$IC"/>
103
+ </FEJL>
104
+ </xsl:otherwise>
105
+ </xsl:choose>
106
+ </SubElm>
107
+ </Elm>
108
+ <Elm/>
109
+ <Elm>
110
+ <SubElm>
111
+ <xsl:value-of select="$Participant/m:OrganisationName"/>
112
+ </SubElm>
113
+ <SubElm>
114
+ <xsl:value-of select="$Participant/m:DepartmentName"/>
115
+ </SubElm>
116
+ <SubElm>
117
+ <xsl:value-of select="$Participant/m:UnitName"/>
118
+ </SubElm>
119
+ <SubElm/>
120
+ <SubElm/>
121
+ <SubElm>US</SubElm>
122
+ </Elm>
123
+ </NAD>
124
+ <!-- Standard for ADR segments -->
125
+ <xsl:variable name="Adr" select="$Participant"/>
126
+ <xsl:if test="count($Adr/m:StreetName)+count($Adr/m:SuburbName)+count($Adr/m:DistrictName)+count($Adr/m:PostCodeIdentifier)>0">
127
+ <ADR>
128
+ <Elm/>
129
+ <Elm>
130
+ <SubElm>US</SubElm>
131
+ <SubElm>
132
+ <xsl:value-of select="$Adr//m:StreetName"/>
133
+ </SubElm>
134
+ <SubElm>
135
+ <xsl:value-of select="$Adr/m:SuburbName"/>
136
+ </SubElm>
137
+ </Elm>
138
+ <Elm>
139
+ <SubElm>
140
+ <xsl:value-of select="$Adr/m:DistrictName"/>
141
+ </SubElm>
142
+ </Elm>
143
+ <Elm>
144
+ <SubElm>
145
+ <xsl:value-of select="$Adr/m:PostCodeIdentifier"/>
146
+ </SubElm>
147
+ </Elm>
148
+ </ADR>
149
+ </xsl:if>
150
+ <xsl:if test="count($Sender/m:TelephoneSubscriberIdentifier)=1">
151
+ <CON>
152
+ <Elm/>
153
+ <Elm>
154
+ <SubElm>
155
+ <xsl:value-of select="$Sender/m:TelephoneSubscriberIdentifier"/>
156
+ </SubElm>
157
+ <SubElm>TE</SubElm>
158
+ </Elm>
159
+ </CON>
160
+ </xsl:if>
161
+ <SEQ>
162
+ <Elm> </Elm>
163
+ <Elm>
164
+ <SubElm>1</SubElm>
165
+ </Elm>
166
+ </SEQ>
167
+ <SPR>
168
+ <Elm>
169
+ <SubElm>ORG</SubElm>
170
+ </Elm>
171
+ <Elm>
172
+ <SubElm>
173
+ <xsl:if test="count($Participant/m:MedicalSpecialityCode)=0">99</xsl:if>
174
+ <xsl:if test="count($Participant/m:MedicalSpecialityCode)=1">
175
+ <xsl:variable name="MSC" select="$Participant/m:MedicalSpecialityCode"/>
176
+ <xsl:choose>
177
+ <xsl:when test=" $MSC='ikkeklassificeret'">99</xsl:when>
178
+ <xsl:when test=" $MSC='intern_medicin_sygehus'">1</xsl:when>
179
+ <xsl:when test=" $MSC='geriatri'">2</xsl:when>
180
+ <xsl:when test=" $MSC='hepatologi'">3</xsl:when>
181
+ <xsl:when test=" $MSC='haematologi'">4</xsl:when>
182
+ <xsl:when test=" $MSC='infektionsmedicin'">5</xsl:when>
183
+ <xsl:when test=" $MSC='kardiologi'">6</xsl:when>
184
+ <xsl:when test=" $MSC='med_allergologi'">7</xsl:when>
185
+ <xsl:when test=" $MSC='med_endokrinologi'">8</xsl:when>
186
+ <xsl:when test=" $MSC='med_gastroenterologi'">9</xsl:when>
187
+ <xsl:when test=" $MSC='med_lungesygdomme'">10</xsl:when>
188
+ <xsl:when test=" $MSC='nefrologi'">11</xsl:when>
189
+ <xsl:when test=" $MSC='reumatologi'">12</xsl:when>
190
+ <xsl:when test=" $MSC='dermato_venerologi_sygehus'">18</xsl:when>
191
+ <xsl:when test=" $MSC='neurologi'">20</xsl:when>
192
+ <xsl:when test=" $MSC='onkologi'">22</xsl:when>
193
+ <xsl:when test=" $MSC='kirurgi_sygehus'">30</xsl:when>
194
+ <xsl:when test=" $MSC='karkirurgi'">31</xsl:when>
195
+ <xsl:when test=" $MSC='kir_gastroenterologi'">32</xsl:when>
196
+ <xsl:when test=" $MSC='plastikkirurgi'">33</xsl:when>
197
+ <xsl:when test=" $MSC='thoraxkirurgi'">34</xsl:when>
198
+ <xsl:when test=" $MSC='urologi'">35</xsl:when>
199
+ <xsl:when test=" $MSC='gynaekologi_obstetrik_sygehus'">38</xsl:when>
200
+ <xsl:when test=" $MSC='neurokirurgi'">40</xsl:when>
201
+ <xsl:when test=" $MSC='ortopaedisk_kirurgi_sygehus'">42</xsl:when>
202
+ <xsl:when test=" $MSC='oftalmologi'">44</xsl:when>
203
+ <xsl:when test=" $MSC='oto_rhino_laryngologi'">46</xsl:when>
204
+ <xsl:when test=" $MSC='hospitalsodontologi'">48</xsl:when>
205
+ <xsl:when test=" $MSC='psykiatri_sygehus'">50</xsl:when>
206
+ <xsl:when test=" $MSC='boerne_ungdomspsykiatri'">52</xsl:when>
207
+ <xsl:when test=" $MSC='klin_biokemi'">60</xsl:when>
208
+ <xsl:when test=" $MSC='klin_fys_nuklearmedicin'">61</xsl:when>
209
+ <xsl:when test=" $MSC='klin_immunologi'">62</xsl:when>
210
+ <xsl:when test=" $MSC='klin_mikrobiologi'">63</xsl:when>
211
+ <xsl:when test=" $MSC='klin_neurofysiologi'">64</xsl:when>
212
+ <xsl:when test=" $MSC='patologisk_anatomi'">65</xsl:when>
213
+ <xsl:when test=" $MSC='diagnostisk_radiologi'">66</xsl:when>
214
+ <xsl:when test=" $MSC='klin_farmakologi'">67</xsl:when>
215
+ <xsl:when test=" $MSC='klin_genetik'">68</xsl:when>
216
+ <xsl:when test=" $MSC='anaestesiologi_sygehus'">84</xsl:when>
217
+ <xsl:when test=" $MSC='arbejdsmedicin'">86</xsl:when>
218
+ <xsl:when test=" $MSC='almen_medicin'">90</xsl:when>
219
+ <xsl:when test=" $MSC='samfundsmedicin'">91</xsl:when>
220
+ <xsl:when test=" $MSC='almenlaege_laegevagt'">580</xsl:when>
221
+ <xsl:when test=" $MSC='oejenlaege'">1519</xsl:when>
222
+ <xsl:when test=" $MSC='oere_naese_halslaege'">2021</xsl:when>
223
+ <xsl:when test=" $MSC='anaestesiologi_praksis'">2501</xsl:when>
224
+ <xsl:when test=" $MSC='roentgen_kbh'">2503</xsl:when>
225
+ <xsl:when test=" $MSC='dermato_venerologi_praksis'">2511</xsl:when>
226
+ <xsl:when test=" $MSC='roentgen'">2505</xsl:when>
227
+ <xsl:when test=" $MSC='reumatologi_fysiurgi'">2506</xsl:when>
228
+ <xsl:when test=" $MSC='gynaekologi_obstetrik_praksis'">2507</xsl:when>
229
+ <xsl:when test=" $MSC='intern_medicin_praksis'">2508</xsl:when>
230
+ <xsl:when test=" $MSC='kirurgi_praksis'">2509</xsl:when>
231
+ <xsl:when test=" $MSC='klinisk_kemi'">2511</xsl:when>
232
+ <xsl:when test=" $MSC='neuromedicin'">2518</xsl:when>
233
+ <xsl:when test=" $MSC='ortopaedisk_kirurgi_praksis'">2520</xsl:when>
234
+ <xsl:when test=" $MSC='patologi '">2522</xsl:when>
235
+ <xsl:when test=" $MSC='plastkirurgi'">2523</xsl:when>
236
+ <xsl:when test=" $MSC='psykiatri_praksis'">2524</xsl:when>
237
+ <xsl:when test=" $MSC='paediatri'">2525</xsl:when>
238
+ <xsl:when test=" $MSC='boernepsykiatri'">2526</xsl:when>
239
+ <xsl:when test=" $MSC='tropemedicin'">2528</xsl:when>
240
+ <xsl:when test=" $MSC='tandlaege'">4050</xsl:when>
241
+ <xsl:when test=" $MSC='fysioterapi'">4551</xsl:when>
242
+ <xsl:when test=" $MSC='kiropraktor'">5053</xsl:when>
243
+ <xsl:when test=" $MSC='briller'">5552</xsl:when>
244
+ <xsl:when test=" $MSC='fodterapi'">6054</xsl:when>
245
+ <xsl:when test=" $MSC='fodbehandlking'">6055</xsl:when>
246
+ <xsl:when test=" $MSC='med_laboratorier'">7045</xsl:when>
247
+ <xsl:when test=" $MSC='omegnslaboratorier'">7046</xsl:when>
248
+ <xsl:when test=" $MSC='psykolog'">9463</xsl:when>
249
+ <xsl:otherwise>
250
+ <FEJL>Kan ikke oversætte MedicalSpecialityCode: <xsl:value-of select="$MSC"/>
251
+ </FEJL>
252
+ </xsl:otherwise>
253
+ </xsl:choose>
254
+ </xsl:if>
255
+ </SubElm>
256
+ <SubElm>SKS</SubElm>
257
+ <SubElm>SST</SubElm>
258
+ </Elm>
259
+ <Elm>
260
+ <SubElm>DIS32</SubElm>
261
+ <SubElm>SKS</SubElm>
262
+ <SubElm>SST</SubElm>
263
+ </Elm>
264
+ </SPR>
265
+ </S01>
266
+
267
+ <!-- MODTAGER -->
268
+ <S01>
269
+ <xsl:variable name="Participant" select="$Receiver"/>
270
+ <Elm>
271
+ <SubElm>01</SubElm>
272
+ </Elm>
273
+ <NAD>
274
+ <Elm>
275
+ <SubElm>PO</SubElm>
276
+ </Elm>
277
+ <Elm>
278
+ <SubElm>
279
+ <xsl:value-of select="$Participant/m:Identifier"/>
280
+ </SubElm>
281
+ <SubElm>
282
+ <xsl:variable name="IC" select="$Participant/m:IdentifierCode"/>
283
+ <xsl:choose>
284
+ <xsl:when test="$IC='sygehusafdelingsnummer' ">SKS</xsl:when>
285
+ <xsl:when test="$IC='ydernummer' ">YNR</xsl:when>
286
+ <xsl:when test="$IC='lokationsnummer' "/>
287
+ <xsl:when test="count($IC)=0"/>
288
+ <xsl:when test="$IC='kommunenummer' ">KOM</xsl:when>
289
+ <xsl:when test="$IC='sorkode'">SOR</xsl:when>
290
+ <xsl:otherwise>
291
+ <FEJL>Kan ikke oversætte IdentifierCodeType: <xsl:value-of select="$IC"/>
292
+ </FEJL>
293
+ </xsl:otherwise>
294
+ </xsl:choose>
295
+ </SubElm>
296
+ <SubElm>
297
+ <xsl:variable name="IC" select="$Participant/m:IdentifierCode"/>
298
+ <xsl:choose>
299
+ <xsl:when test="$IC='sygehusafdelingsnummer' ">SST</xsl:when>
300
+ <xsl:when test="$IC='ydernummer' ">SFU</xsl:when>
301
+ <xsl:when test="$IC='lokationsnummer' ">9</xsl:when>
302
+ <xsl:when test="count($IC)=0">9</xsl:when>
303
+ <xsl:when test="$IC='kommunenummer' ">IM</xsl:when>
304
+ <xsl:when test="$IC='sorkode'">SST</xsl:when>
305
+ <xsl:otherwise>
306
+ <FEJL>Kan ikke oversætte IdentifierCodeType: <xsl:value-of select="$IC"/>
307
+ </FEJL>
308
+ </xsl:otherwise>
309
+ </xsl:choose>
310
+ </SubElm>
311
+ </Elm>
312
+ <Elm/>
313
+ <Elm>
314
+ <SubElm>
315
+ <xsl:if test="count($Participant/m:OrganisationName)=1">
316
+ <xsl:value-of select="$Participant/m:OrganisationName"/>
317
+ </xsl:if>
318
+ <xsl:if test="count($Participant/m:OrganisationName)=0">_</xsl:if>
319
+ </SubElm>
320
+ <SubElm>
321
+ <xsl:value-of select="$Participant/m:DepartmentName"/>
322
+ </SubElm>
323
+ <SubElm>
324
+ <xsl:value-of select="$Participant/m:UnitName"/>
325
+ </SubElm>
326
+ <SubElm/>
327
+ <SubElm/>
328
+ <SubElm>US</SubElm>
329
+ </Elm>
330
+ </NAD>
331
+ <!-- Standard for ADR segments -->
332
+ <xsl:variable name="Adr" select="$Participant"/>
333
+ <xsl:if test="count($Adr/m:StreetName)+count($Adr/m:SuburbName)+count($Adr/m:DistrictName)+count($Adr/m:PostCodeIdentifier)>0">
334
+ <ADR>
335
+ <Elm/>
336
+ <Elm>
337
+ <SubElm>US</SubElm>
338
+ <SubElm>
339
+ <xsl:value-of select="$Adr//m:StreetName"/>
340
+ </SubElm>
341
+ <SubElm>
342
+ <xsl:value-of select="$Adr/m:SuburbName"/>
343
+ </SubElm>
344
+ </Elm>
345
+ <Elm>
346
+ <SubElm>
347
+ <xsl:value-of select="$Adr/m:DistrictName"/>
348
+ </SubElm>
349
+ </Elm>
350
+ <Elm>
351
+ <SubElm>
352
+ <xsl:value-of select="$Adr/m:PostCodeIdentifier"/>
353
+ </SubElm>
354
+ </Elm>
355
+ </ADR>
356
+ </xsl:if>
357
+ <SEQ>
358
+ <Elm/>
359
+ <Elm>
360
+ <SubElm>2</SubElm>
361
+ </Elm>
362
+ </SEQ>
363
+ </S01>
364
+
365
+ <!-- Egen jordemoder -->
366
+ <S01>
367
+ <xsl:variable name="Participant" select="$OwnMaternityMother"/>
368
+ <Elm>
369
+ <SubElm>01</SubElm>
370
+ </Elm>
371
+ <NAD>
372
+ <Elm>
373
+ <SubElm>PRH</SubElm>
374
+ </Elm>
375
+ <Elm>
376
+ <SubElm>
377
+ <xsl:value-of select="$Participant/m:Identifier"/>
378
+ </SubElm>
379
+ <SubElm>
380
+ <xsl:variable name="IC" select="$Participant/m:IdentifierCode"/>
381
+ <xsl:choose>
382
+ <xsl:when test="$IC='lokalt_nummer' ">NCD</xsl:when>
383
+ <xsl:when test="$IC='sygehusafdelingsnummer' ">SKS</xsl:when>
384
+ <xsl:when test="$IC='ydernummer' ">YNR</xsl:when>
385
+ <xsl:when test="$IC='lokationsnummer' "/>
386
+ <xsl:when test="count($IC)=0"/>
387
+ <xsl:when test="$IC='kommunenummer' ">KOM</xsl:when>
388
+ <xsl:when test="$IC='sorkode'">SOR</xsl:when>
389
+ <xsl:otherwise>
390
+ <FEJL>Kan ikke oversætte IdentifierCodeType: <xsl:value-of select="$IC"/>
391
+ </FEJL>
392
+ </xsl:otherwise>
393
+ </xsl:choose>
394
+ </SubElm>
395
+ </Elm>
396
+ <Elm/>
397
+ <Elm>
398
+ <SubElm>
399
+ <xsl:if test="count($Participant/m:PersonName)=1">
400
+ <xsl:value-of select="$Participant/m:PersonName"/>
401
+ </xsl:if>
402
+ <xsl:if test="count($Participant/m:PersonName)=0">_</xsl:if>
403
+ </SubElm>
404
+ <SubElm>
405
+ <xsl:value-of select="$Participant/m:OrganisationName"/>
406
+ </SubElm>
407
+ <SubElm/>
408
+ <SubElm/>
409
+ <SubElm/>
410
+ <SubElm>US</SubElm>
411
+ </Elm>
412
+ </NAD>
413
+ <!-- Standard for ADR segments -->
414
+ <xsl:variable name="Adr" select="$Participant"/>
415
+ <xsl:if test="count($Adr/m:StreetName)+count($Adr/m:SuburbName)+count($Adr/m:DistrictName)+count($Adr/m:PostCodeIdentifier)>0">
416
+ <ADR>
417
+ <Elm/>
418
+ <Elm>
419
+ <SubElm>US</SubElm>
420
+ <xsl:if test="count($Adr/m:StreetName)>0">
421
+ <SubElm>
422
+ <xsl:value-of select="$Adr//m:StreetName"/>
423
+ </SubElm>
424
+ </xsl:if>
425
+ <xsl:if test="count($Adr/m:SuburbName)>0">
426
+ <SubElm>
427
+ <xsl:value-of select="$Adr/m:SuburbName"/>
428
+ </SubElm>
429
+ </xsl:if>
430
+ </Elm>
431
+ <Elm>
432
+ <SubElm>
433
+ <xsl:value-of select="$Adr/m:DistrictName"/>
434
+ </SubElm>
435
+ </Elm>
436
+ <Elm>
437
+ <SubElm>
438
+ <xsl:value-of select="$Adr/m:PostCodeIdentifier"/>
439
+ </SubElm>
440
+ </Elm>
441
+ </ADR>
442
+ </xsl:if>
443
+ <SEQ>
444
+ <Elm/>
445
+ <Elm>
446
+ <SubElm>3</SubElm>
447
+ </Elm>
448
+ </SEQ>
449
+ </S01>
450
+
451
+ <!-- Egen læge -->
452
+ <S01>
453
+ <xsl:variable name="Participant" select="$Practitioner"/>
454
+ <Elm>
455
+ <SubElm>01</SubElm>
456
+ </Elm>
457
+ <NAD>
458
+ <Elm>
459
+ <SubElm>UGP</SubElm>
460
+ </Elm>
461
+ <Elm>
462
+ <SubElm>
463
+ <xsl:value-of select="$Participant/m:Identifier"/>
464
+ </SubElm>
465
+ <SubElm>
466
+ <xsl:variable name="IC" select="$Participant/m:IdentifierCode"/>
467
+ <xsl:choose>
468
+ <xsl:when test="$IC='lokalt_nummer' ">NCD</xsl:when>
469
+ <xsl:when test="$IC='sygehusafdelingsnummer' ">SKS</xsl:when>
470
+ <xsl:when test="$IC='ydernummer' ">YNR</xsl:when>
471
+ <xsl:when test="$IC='lokationsnummer' "/>
472
+ <xsl:when test="count($IC)=0"/>
473
+ <xsl:when test="$IC='kommunenummer' ">KOM</xsl:when>
474
+ <xsl:when test="$IC='sorkode'">SOR</xsl:when>
475
+ <xsl:otherwise>
476
+ <FEJL>Kan ikke oversætte IdentifierCodeType: <xsl:value-of select="$IC"/>
477
+ </FEJL>
478
+ </xsl:otherwise>
479
+ </xsl:choose>
480
+ </SubElm>
481
+ <SubElm>
482
+ <xsl:variable name="IC" select="$Participant/m:IdentifierCode"/>
483
+ <xsl:choose>
484
+ <xsl:when test="$IC='sygehusafdelingsnummer' ">SST</xsl:when>
485
+ <xsl:when test="$IC='ydernummer' ">SFU</xsl:when>
486
+ <xsl:when test="$IC='lokationsnummer' ">9</xsl:when>
487
+ <xsl:when test="count($IC)=0 ">9</xsl:when>
488
+ <xsl:when test="$IC='kommunenummer' ">IM</xsl:when>
489
+ <xsl:when test="$IC='sorkode'">SST</xsl:when>
490
+ <xsl:otherwise>
491
+ <FEJL>Kan ikke oversætte IdentifierCodeType: <xsl:value-of select="$IC"/>
492
+ </FEJL>
493
+ </xsl:otherwise>
494
+ </xsl:choose>
495
+ </SubElm>
496
+ </Elm>
497
+ <Elm/>
498
+ <Elm>
499
+ <SubElm>
500
+ <xsl:if test="count($Participant/m:OrganisationName)=1">
501
+ <xsl:value-of select="$Participant/m:OrganisationName"/>
502
+ </xsl:if>
503
+ <xsl:if test="count($Participant/m:OrganisationName)=0">_</xsl:if>
504
+ </SubElm>
505
+ <SubElm/>
506
+ <SubElm/>
507
+ <SubElm/>
508
+ <SubElm/>
509
+ <SubElm>US</SubElm>
510
+ </Elm>
511
+ </NAD>
512
+ <!-- Standard for ADR segments -->
513
+ <xsl:variable name="Adr" select="$Participant"/>
514
+ <xsl:if test="count($Adr/m:StreetName)+count($Adr/m:SuburbName)+count($Adr/m:DistrictName)+count($Adr/m:PostCodeIdentifier)>0">
515
+ <ADR>
516
+ <Elm/>
517
+ <Elm>
518
+ <SubElm>US</SubElm>
519
+ <xsl:if test="count($Adr/m:StreetName)>0">
520
+ <SubElm>
521
+ <xsl:value-of select="$Adr//m:StreetName"/>
522
+ </SubElm>
523
+ </xsl:if>
524
+ <xsl:if test="count($Adr/m:SuburbName)>0">
525
+ <SubElm>
526
+ <xsl:value-of select="$Adr/m:SuburbName"/>
527
+ </SubElm>
528
+ </xsl:if>
529
+ </Elm>
530
+ <Elm>
531
+ <SubElm>
532
+ <xsl:value-of select="$Adr/m:DistrictName"/>
533
+ </SubElm>
534
+ </Elm>
535
+ <Elm>
536
+ <SubElm>
537
+ <xsl:value-of select="$Adr/m:PostCodeIdentifier"/>
538
+ </SubElm>
539
+ </Elm>
540
+ </ADR>
541
+ </xsl:if>
542
+ <SEQ>
543
+ <Elm/>
544
+ <Elm>
545
+ <SubElm>4</SubElm>
546
+ </Elm>
547
+ </SEQ>
548
+ </S01>
549
+
550
+ <!-- Fødselsjordemoder -->
551
+ <S01>
552
+ <xsl:variable name="Participant" select="$BirthMaternityMother"/>
553
+ <Elm>
554
+ <SubElm>01</SubElm>
555
+ </Elm>
556
+ <NAD>
557
+ <Elm>
558
+ <SubElm>BV</SubElm>
559
+ </Elm>
560
+ <Elm>
561
+ <SubElm>
562
+ <xsl:value-of select="$Participant/m:Identifier"/>
563
+ </SubElm>
564
+ <SubElm>
565
+ <xsl:variable name="IC" select="$Participant/m:IdentifierCode"/>
566
+ <xsl:choose>
567
+ <xsl:when test="$IC='lokalt_nummer' ">NCD</xsl:when>
568
+ <xsl:when test="$IC='sygehusafdelingsnummer' ">SKS</xsl:when>
569
+ <xsl:when test="$IC='ydernummer' ">YNR</xsl:when>
570
+ <xsl:when test="$IC='lokationsnummer' "/>
571
+ <xsl:when test="count($IC)=0"/>
572
+ <xsl:when test="$IC='kommunenummer' ">KOM</xsl:when>
573
+ <xsl:when test="$IC='sorkode'">SOR</xsl:when>
574
+ <xsl:otherwise>
575
+ <FEJL>Kan ikke oversætte IdentifierCodeType: <xsl:value-of select="$IC"/>
576
+ </FEJL>
577
+ </xsl:otherwise>
578
+ </xsl:choose>
579
+ </SubElm>
580
+ </Elm>
581
+ <Elm/>
582
+ <Elm>
583
+ <SubElm>
584
+ <xsl:if test="count($Participant/m:PersonName)=1">
585
+ <xsl:value-of select="$Participant/m:PersonName"/>
586
+ </xsl:if>
587
+ <xsl:if test="count($Participant/m:PersonName)=0">_</xsl:if>
588
+ </SubElm>
589
+ <SubElm>
590
+ <xsl:value-of select="$Participant/m:OrganisationName"/>
591
+ </SubElm>
592
+ <SubElm/>
593
+ <SubElm/>
594
+ <SubElm/>
595
+ <SubElm>US</SubElm>
596
+ </Elm>
597
+ </NAD>
598
+ <!-- Standard for ADR segments -->
599
+ <xsl:variable name="Adr" select="$Participant"/>
600
+ <xsl:if test="count($Adr/m:StreetName)+count($Adr/m:SuburbName)+count($Adr/m:DistrictName)+count($Adr/m:PostCodeIdentifier)>0">
601
+ <ADR>
602
+ <Elm/>
603
+ <Elm>
604
+ <SubElm>US</SubElm>
605
+ <xsl:if test="count($Adr/m:StreetName)>0">
606
+ <SubElm>
607
+ <xsl:value-of select="$Adr//m:StreetName"/>
608
+ </SubElm>
609
+ </xsl:if>
610
+ <xsl:if test="count($Adr/m:SuburbName)>0">
611
+ <SubElm>
612
+ <xsl:value-of select="$Adr/m:SuburbName"/>
613
+ </SubElm>
614
+ </xsl:if>
615
+ </Elm>
616
+ <Elm>
617
+ <SubElm>
618
+ <xsl:value-of select="$Adr/m:DistrictName"/>
619
+ </SubElm>
620
+ </Elm>
621
+ <Elm>
622
+ <SubElm>
623
+ <xsl:value-of select="$Adr/m:PostCodeIdentifier"/>
624
+ </SubElm>
625
+ </Elm>
626
+ </ADR>
627
+ </xsl:if>
628
+ <RFF>
629
+ <Elm>
630
+ <SubElm>AHL</SubElm>
631
+ <SubElm>1</SubElm>
632
+ </Elm>
633
+ </RFF>
634
+ <SEQ>
635
+ <Elm/>
636
+ <Elm>
637
+ <SubElm>5</SubElm>
638
+ </Elm>
639
+ </SEQ>
640
+ </S01>
641
+ <S02>
642
+ <Elm>
643
+ <SubElm>02</SubElm>
644
+ </Elm>
645
+ <xsl:call-template name="GetGIS">
646
+ <xsl:with-param name="StatusCode" select="$Letter/m:StatusCode"/>
647
+ </xsl:call-template>
648
+ <RFF>
649
+ <Elm>
650
+ <SubElm>SRI</SubElm>
651
+ <SubElm>
652
+ <xsl:value-of select="$Letter/m:Identifier"/>
653
+ </SubElm>
654
+ </Elm>
655
+ </RFF>
656
+ <DTM>
657
+ <Elm>
658
+ <SubElm>182</SubElm>
659
+ <SubElm>
660
+ <xsl:variable name="DT" select="$Letter/m:Authorisation"/>
661
+ <xsl:variable name="DT203"
662
+ select="concat(substring($DT/m:Date,1,4),substring($DT/m:Date,6,2),substring($DT/m:Date,9,2),substring($DT/m:Time,1,2),substring($DT/m:Time,4,2))"/>
663
+ <xsl:value-of select="$DT203"/>
664
+ </SubElm>
665
+ <SubElm>203</SubElm>
666
+ </Elm>
667
+ </DTM>
668
+ </S02>
669
+
670
+ <!-- Patient -->
671
+ <S07>
672
+ <xsl:if test="count($Patient//m:CivilRegistrationNumber)=1 and count($Patient/m:AlternativeIdentifier)=1">
673
+ <FEJL>Patient kan ikke både have et CivilRegistrationNumber og et AlternativeIdentifier</FEJL>
674
+ </xsl:if>
675
+ <xsl:if test="count($Patient//m:CivilRegistrationNumber)=0 and count($Patient/m:AlternativeIdentifier)=0">
676
+ <FEJL>Patient skal have et CivilRegistrationNumber eller et AlternativeIdentifier</FEJL>
677
+ </xsl:if>
678
+ <xsl:variable name="Person" select="$Patient"/>
679
+ <Elm>
680
+ <SubElm>07</SubElm>
681
+ </Elm>
682
+ <PNA>
683
+ <Elm>
684
+ <SubElm>PAT</SubElm>
685
+ </Elm>
686
+ <Elm>
687
+ <xsl:if test="count($Patient/m:CivilRegistrationNumber)=1">
688
+ <SubElm>
689
+ <xsl:value-of select="$Patient/m:CivilRegistrationNumber"/>
690
+ </SubElm>
691
+ <SubElm/>
692
+ <SubElm/>
693
+ <SubElm>CPR</SubElm>
694
+ <SubElm>IM</SubElm>
695
+ </xsl:if>
696
+ </Elm>
697
+ <Elm/>
698
+ <Elm/>
699
+ <Elm>
700
+ <SubElm>SU</SubElm>
701
+ <SubElm>
702
+ <xsl:value-of select="$Person/m:PersonSurnameName"/>
703
+ </SubElm>
704
+ </Elm>
705
+ <Elm>
706
+ <SubElm>
707
+ <xsl:if test="count($Person/m:PersonGivenName)=1">FO</xsl:if>
708
+ </SubElm>
709
+ <SubElm>
710
+ <xsl:value-of select="$Person/m:PersonGivenName"/>
711
+ </SubElm>
712
+ </Elm>
713
+ </PNA>
714
+ <xsl:if test="count($Patient/m:AlternativeIdentifier)=1">
715
+ <RFF>
716
+ <Elm>
717
+ <SubElm>XPI</SubElm>
718
+ <SubElm>
719
+ <xsl:value-of select="$Patient/m:AlternativeIdentifier"/>
720
+ </SubElm>
721
+ </Elm>
722
+ </RFF>
723
+ </xsl:if>
724
+ <!-- Standard for ADR segments -->
725
+ <xsl:variable name="Adr" select="$Person"/>
726
+ <xsl:if test="count($Adr/m:StreetName)+count($Adr/m:SuburbName)+count($Adr/m:DistrictName)+count($Adr/m:PostCodeIdentifier)>0">
727
+ <ADR>
728
+ <Elm/>
729
+ <Elm>
730
+ <SubElm>US</SubElm>
731
+ <SubElm>
732
+ <xsl:value-of select="$Adr//m:StreetName"/>
733
+ </SubElm>
734
+ <SubElm>
735
+ <xsl:value-of select="$Adr/m:SuburbName"/>
736
+ </SubElm>
737
+ </Elm>
738
+ <Elm>
739
+ <SubElm>
740
+ <xsl:value-of select="$Adr/m:DistrictName"/>
741
+ </SubElm>
742
+ </Elm>
743
+ <Elm>
744
+ <SubElm>
745
+ <xsl:value-of select="$Adr/m:PostCodeIdentifier"/>
746
+ </SubElm>
747
+ </Elm>
748
+ </ADR>
749
+ </xsl:if>
750
+
751
+ <!-- Moderens tlf.numre -->
752
+ <xsl:if test="count($Patient/m:TelephoneSubscriber)>0">
753
+ <xsl:if test="count($Patient/m:TelephoneSubscriber/m:PrivateSubscriberIdentifier)>0">
754
+ <CON>
755
+ <Elm>
756
+ <SubElm>HO</SubElm>
757
+ </Elm>
758
+ <Elm>
759
+ <SubElm>
760
+ <xsl:value-of select="$Patient/m:TelephoneSubscriber/m:PrivateSubscriberIdentifier"/>
761
+ </SubElm>
762
+ <SubElm>TE</SubElm>
763
+ </Elm>
764
+ </CON>
765
+ </xsl:if>
766
+ <xsl:if test="count($Patient/m:TelephoneSubscriber/m:MobileSubscriberIdentifier)>0">
767
+ <CON>
768
+ <Elm>
769
+ <SubElm>MO</SubElm>
770
+ </Elm>
771
+ <Elm>
772
+ <SubElm>
773
+ <xsl:value-of select="$Patient/m:TelephoneSubscriber/m:MobileSubscriberIdentifier"/>
774
+ </SubElm>
775
+ <SubElm>TE</SubElm>
776
+ </Elm>
777
+ </CON>
778
+ </xsl:if>
779
+ <xsl:if test="count($Patient/m:TelephoneSubscriber/m:WorkSubscriberIdentifier)>0">
780
+ <CON>
781
+ <Elm>
782
+ <SubElm>WO</SubElm>
783
+ </Elm>
784
+ <Elm>
785
+ <SubElm>
786
+ <xsl:value-of select="$Patient/m:TelephoneSubscriber/m:WorkSubscriberIdentifier"/>
787
+ </SubElm>
788
+ <SubElm>TE</SubElm>
789
+ </Elm>
790
+ </CON>
791
+ </xsl:if>
792
+ </xsl:if>
793
+
794
+ <!-- Moderens civilstand -->
795
+ <xsl:if test="count($Patient/m:MaritalStatus)>0">
796
+ <PDI>
797
+ <Elm>
798
+ <SubElm>2</SubElm>
799
+ </Elm>
800
+ <Elm>
801
+ <SubElm>
802
+ <xsl:variable name="MS" select="$Patient/m:MaritalStatus"/>
803
+ <xsl:choose>
804
+ <xsl:when test="$MS='gift' ">MA</xsl:when>
805
+ <xsl:when test="$MS='single' ">SI</xsl:when>
806
+ <xsl:when test="$MS='separeret' ">SP</xsl:when>
807
+ <xsl:when test="$MS='skilt' ">DI</xsl:when>
808
+ <xsl:when test="$MS='samboende' ">LI</xsl:when>
809
+ <xsl:when test="$MS='enke' ">WI</xsl:when>
810
+ <xsl:otherwise>
811
+ <FEJL>Kan ikke oversaette til MaritalStatus: <xsl:value-of select="$MS"/></FEJL>
812
+ </xsl:otherwise>
813
+ </xsl:choose>
814
+ </SubElm>
815
+ </Elm>
816
+ </PDI>
817
+ </xsl:if>
818
+
819
+ <!-- Moderens tolkebehov -->
820
+ <xsl:if test="count($Patient/m:InterpretationNeeds/m:InterpretationIsNeededCode)>0">
821
+ <LAN>
822
+ <Elm>
823
+ <SubElm>
824
+ <xsl:variable name="IC" select="$Patient/m:InterpretationNeeds/m:InterpretationIsNeededCode"/>
825
+ <xsl:choose>
826
+ <xsl:when test="$IC='tolkebehov_nej' ">TN</xsl:when>
827
+ <xsl:when test="$IC='tolkebehov_uafklaret' ">NO</xsl:when>
828
+ <xsl:otherwise>
829
+ <FEJL>Kan ikke oversaette til InterpretationIsNeededCode: <xsl:value-of select="$IC"/></FEJL>
830
+ </xsl:otherwise>
831
+ </xsl:choose>
832
+ </SubElm>
833
+ </Elm>
834
+ <Elm>
835
+ <SubElm></SubElm>
836
+ <SubElm></SubElm>
837
+ </Elm>
838
+ </LAN>
839
+ </xsl:if>
840
+ <xsl:if test="count($Patient/m:InterpretationNeeds/m:ISOLanguageCode)>0">
841
+ <LAN>
842
+ <Elm>
843
+ <SubElm>TJ</SubElm>
844
+ </Elm>
845
+ <Elm>
846
+ <SubElm>
847
+ <xsl:value-of select="$Patient/m:InterpretationNeeds/m:ISOLanguageCode"/>
848
+ </SubElm>
849
+ <SubElm>
850
+ <xsl:value-of select="$Patient/m:InterpretationNeeds/m:ISOLanguageCodeDescription"/>
851
+ </SubElm>
852
+ </Elm>
853
+ </LAN>
854
+ </xsl:if>
855
+ <!-- Moderens stillingsbetegnelse -->
856
+ <xsl:if test="count($Patient/m:OccupancyText)=1">
857
+ <EMP>
858
+ <Elm>
859
+ <SubElm>1</SubElm>
860
+ </Elm>
861
+ <Elm> </Elm>
862
+ <Elm>
863
+ <SubElm/>
864
+ <SubElm/>
865
+ <SubElm/>
866
+ <SubElm>
867
+ <xsl:value-of select="$Patient/m:OccupancyText"/>
868
+ </SubElm>
869
+ </Elm>
870
+ </EMP>
871
+ </xsl:if>
872
+ </S07>
873
+
874
+ <!-- Ægtefælle/samlever -->
875
+ <xsl:if test="count($Partner)>0">
876
+ <S09>
877
+ <Elm>
878
+ <SubElm>09</SubElm>
879
+ </Elm>
880
+ <REL>
881
+ <Elm>
882
+ <SubElm>PER</SubElm>
883
+ </Elm>
884
+ <Elm>
885
+ <SubElm>
886
+ <xsl:variable name="RC" select="$Partner/m:RelationCode"/>
887
+ <xsl:choose>
888
+ <xsl:when test="$RC='aegtefaelle' ">PA</xsl:when>
889
+ <xsl:when test="$RC='samboende' ">PA</xsl:when>
890
+ <xsl:when test="$RC='registreret_partner' ">PA</xsl:when>
891
+ <xsl:otherwise>
892
+ <FEJL>Kan ikke oversaette til Partner RelationCode: <xsl:value-of select="$RC"/></FEJL>
893
+ </xsl:otherwise>
894
+ </xsl:choose>
895
+ </SubElm>
896
+ </Elm>
897
+ </REL>
898
+ <PNA>
899
+ <Elm>
900
+ <SubElm>PAS</SubElm>
901
+ </Elm>
902
+ <Elm>
903
+ <SubElm>
904
+ <xsl:value-of select="$Partner/m:PersonIdentifier"/>
905
+ </SubElm>
906
+ <SubElm/>
907
+ <SubElm/>
908
+ <SubElm>CPR</SubElm>
909
+ <SubElm>IM</SubElm>
910
+ </Elm>
911
+ <Elm/>
912
+ <Elm/>
913
+ <Elm>
914
+ <SubElm>SU</SubElm>
915
+ <SubElm>
916
+ <xsl:value-of select="$Partner/m:PersonSurnameName"/>
917
+ </SubElm>
918
+ </Elm>
919
+ <Elm>
920
+ <SubElm>
921
+ <xsl:if test="count($Partner/m:PersonGivenName)=1">FO</xsl:if>
922
+ </SubElm>
923
+ <SubElm>
924
+ <xsl:value-of select="$Partner/m:PersonGivenName"/>
925
+ </SubElm>
926
+ </Elm>
927
+ </PNA>
928
+ <SEQ>
929
+ <Elm/>
930
+ <Elm>
931
+ <SubElm>1</SubElm>
932
+ </Elm>
933
+ </SEQ>
934
+
935
+ <!-- Partners stillingsbetegnelse -->
936
+ <xsl:if test="count($Partner/m:OccupancyText)=1">
937
+ <EMP>
938
+ <Elm>
939
+ <SubElm>1</SubElm>
940
+ </Elm>
941
+ <Elm> </Elm>
942
+ <Elm>
943
+ <SubElm/>
944
+ <SubElm/>
945
+ <SubElm/>
946
+ <SubElm>
947
+ <xsl:value-of select="$Partner/m:OccupancyText"/>
948
+ </SubElm>
949
+ </Elm>
950
+ </EMP>
951
+ </xsl:if>
952
+ </S09>
953
+ </xsl:if>
954
+
955
+ <!-- Børn stamdata -->
956
+ <xsl:for-each select="$Child">
957
+ <S09>
958
+ <xsl:variable name="NC" select="position()"/>
959
+
960
+ <Elm>
961
+ <SubElm>09</SubElm>
962
+ </Elm>
963
+ <REL>
964
+ <Elm>
965
+ <SubElm>PER</SubElm>
966
+ </Elm>
967
+ <Elm>
968
+ <SubElm>
969
+ <xsl:variable name="RC" select="$Child[$NC]/m:RelationCode"/>
970
+ <xsl:choose>
971
+ <xsl:when test="$RC='barn' ">SD</xsl:when>
972
+ <xsl:otherwise>
973
+ <FEJL>Kan ikke oversaette til Child RelationCode: <xsl:value-of select="$RC"/></FEJL>
974
+ </xsl:otherwise>
975
+ </xsl:choose>
976
+ </SubElm>
977
+ </Elm>
978
+ </REL>
979
+ <DTM>
980
+ <Elm>
981
+ <SubElm>PRS</SubElm>
982
+ <SubElm>
983
+ <xsl:variable name="DT" select="$Child[$NC]/m:TimeOfBirth"/>
984
+ <xsl:variable name="DT203"
985
+ select="concat(substring($DT/m:Date,1,4),substring($DT/m:Date,6,2),substring($DT/m:Date,9,2),substring($DT/m:Time,1,2),substring($DT/m:Time,4,2))"/>
986
+ <xsl:value-of select="$DT203"/>
987
+ </SubElm>
988
+ <SubElm>203</SubElm>
989
+ </Elm>
990
+ </DTM>
991
+ <PNA>
992
+ <Elm>
993
+ <SubElm>PAS</SubElm>
994
+ </Elm>
995
+ <Elm>
996
+ <SubElm>
997
+ <xsl:value-of select="$Child[$NC]/m:PersonIdentifier"/>
998
+ </SubElm>
999
+ <SubElm/>
1000
+ <SubElm/>
1001
+ <SubElm>CPR</SubElm>
1002
+ <SubElm>IM</SubElm>
1003
+ </Elm>
1004
+ </PNA>
1005
+ <RFF>
1006
+ <Elm>
1007
+ <SubElm>K01</SubElm>
1008
+ <SubElm>
1009
+ <xsl:value-of select="$Child[$NC]/m:BirthStatus1"/>
1010
+ </SubElm>
1011
+ </Elm>
1012
+ </RFF>
1013
+ <RFF>
1014
+ <Elm>
1015
+ <SubElm>K02</SubElm>
1016
+ <SubElm>
1017
+ <xsl:value-of select="$Child[$NC]/m:BirthStatus2"/>
1018
+ </SubElm>
1019
+ </Elm>
1020
+ </RFF>
1021
+ <SEQ>
1022
+ <Elm/>
1023
+ <Elm>
1024
+ <SubElm>
1025
+ <xsl:value-of select="$NC+1"/>
1026
+ </SubElm>
1027
+ </Elm>
1028
+ </SEQ>
1029
+ <PDI>
1030
+ <Elm>
1031
+ <SubElm>
1032
+ <xsl:variable name="GD" select="$Child[$NC]/m:Gender"/>
1033
+ <xsl:choose>
1034
+ <xsl:when test="$GD='pige' ">2</xsl:when>
1035
+ <xsl:when test="$GD='dreng' ">1</xsl:when>
1036
+ <xsl:otherwise>
1037
+ <FEJL>Kan ikke oversaette til Child Gender: <xsl:value-of select="$GD"/></FEJL>
1038
+ </xsl:otherwise>
1039
+ </xsl:choose>
1040
+ </SubElm>
1041
+ </Elm>
1042
+ </PDI>
1043
+ </S09>
1044
+ </xsl:for-each>
1045
+
1046
+ <!-- Graviditeten -->
1047
+ <S11>
1048
+ <Elm>
1049
+ <SubElm>11</SubElm>
1050
+ </Elm>
1051
+ <xsl:call-template name="GetGIS">
1052
+ <xsl:with-param name="StatusCode" select="$Letter/m:StatusCode"/>
1053
+ </xsl:call-template>
1054
+
1055
+ <xsl:call-template name="GetEpisodeOfCareIdentifier">
1056
+ <xsl:with-param name="EpisodeOfCareIdentifier" select="$Letter/m:EpisodeOfCareIdentifier"/>
1057
+ </xsl:call-template>
1058
+ <SEQ>
1059
+ <Elm/>
1060
+ <Elm>
1061
+ <SubElm>1</SubElm>
1062
+ </Elm>
1063
+ </SEQ>
1064
+
1065
+ <xsl:if test="count($Pregnancy/m:DateOfLastMenstruation)>0">
1066
+ <DTM>
1067
+ <Elm>
1068
+ <SubElm>90</SubElm>
1069
+ <SubElm>
1070
+ <xsl:variable name="DT" select="$Pregnancy/m:DateOfLastMenstruation"/>
1071
+ <xsl:variable name="DT203"
1072
+ select="concat(substring($DT/m:Date,1,4),substring($DT/m:Date,6,2),substring($DT/m:Date,9,2),substring($DT/m:Time,1,2),substring($DT/m:Time,4,2))"/>
1073
+ <xsl:value-of select="$DT203"/>
1074
+ </SubElm>
1075
+ <SubElm>203</SubElm>
1076
+ </Elm>
1077
+ </DTM>
1078
+ </xsl:if>
1079
+ <DTM>
1080
+ <Elm>
1081
+ <SubElm>91</SubElm>
1082
+ <SubElm>
1083
+ <xsl:variable name="DT" select="$Pregnancy/m:DateofDelivery"/>
1084
+ <xsl:variable name="DT203"
1085
+ select="concat(substring($DT/m:Date,1,4),substring($DT/m:Date,6,2),substring($DT/m:Date,9,2),substring($DT/m:Time,1,2),substring($DT/m:Time,4,2))"/>
1086
+ <xsl:value-of select="$DT203"/>
1087
+ </SubElm>
1088
+ <SubElm>203</SubElm>
1089
+ </Elm>
1090
+ </DTM>
1091
+
1092
+ <PAS>
1093
+ <Elm>
1094
+ <SubElm>
1095
+ <xsl:variable name="EOCSC" select="$Patient/m:EpisodeOfCareStatusCode"/>
1096
+ <xsl:choose>
1097
+ <xsl:when test="count($EOCSC)=0 ">POT</xsl:when>
1098
+ <xsl:when test="$EOCSC='forløb' ">POT</xsl:when>
1099
+ <xsl:when test="$EOCSC='direkte_hjem_fra_fødegang' ">HJ</xsl:when>
1100
+ <xsl:when test="$EOCSC='forventet_udskrevet_inden_24_timer_efter_fødslen' ">HK</xsl:when>
1101
+ <xsl:when test="$EOCSC='forventet_udskrevet_senere_end_24_timer_efter_fødslen' ">HL</xsl:when>
1102
+ <xsl:otherwise>
1103
+ <FEJL>Kan ikke oversaette til EpisodeOfCareStatusCode: <xsl:value-of select="$EOCSC"/></FEJL>
1104
+ </xsl:otherwise>
1105
+ </xsl:choose>
1106
+ </SubElm>
1107
+ </Elm>
1108
+ </PAS>
1109
+
1110
+ <!-- Graviditeten: Aktionsdiagnose-->
1111
+ <xsl:if test="count($Pregnancy/m:PregnancyPrincipalDiagnoses)>0">
1112
+ <CIN>
1113
+ <Elm>
1114
+ <SubElm>
1115
+ <xsl:call-template name="GetDiagnoseDescriptionCode">
1116
+ <xsl:with-param name="DiagnoseDescriptionCode"
1117
+ select="$Pregnancy/m:PregnancyPrincipalDiagnoses/m:DiagnoseDescriptionCode"/>
1118
+ </xsl:call-template>
1119
+ </SubElm>
1120
+ </Elm>
1121
+ <Elm>
1122
+ <SubElm>
1123
+ <xsl:value-of select="$Pregnancy/m:PregnancyPrincipalDiagnoses/m:DiagnoseCode"/>
1124
+ </SubElm>
1125
+ <xsl:call-template name="GetDiagnoseTypeCodeAndOrg">
1126
+ <xsl:with-param name="DiagnoseTypeCode" select="$Pregnancy/m:PregnancyPrincipalDiagnoses/m:DiagnoseTypeCode"/>
1127
+ </xsl:call-template>
1128
+ <SubElm>
1129
+ <xsl:value-of select="$Pregnancy/m:PregnancyPrincipalDiagnoses/m:DiagnoseText"/>
1130
+ </SubElm>
1131
+ </Elm>
1132
+ </CIN>
1133
+ </xsl:if>
1134
+
1135
+ <!-- Graviditeten: evt. tillægsdiagnoser-->
1136
+ <xsl:if test="count($Pregnancy/m:PregnancyAdditionalDiagnoses)>0">
1137
+ <xsl:for-each select="$Pregnancy/m:PregnancyAdditionalDiagnoses">
1138
+ <xsl:variable name="NC" select="position()"/>
1139
+ <xsl:variable name="NCMax" select="5"/>
1140
+ <xsl:if test="$NC &lt; $NCMax+1">
1141
+ <CIN>
1142
+ <Elm>
1143
+ <SubElm>
1144
+ <xsl:call-template name="GetDiagnoseDescriptionCode">
1145
+ <xsl:with-param name="DiagnoseDescriptionCode"
1146
+ select="$Pregnancy/m:PregnancyAdditionalDiagnoses[$NC]/m:DiagnoseDescriptionCode"/>
1147
+ </xsl:call-template>
1148
+ </SubElm>
1149
+ </Elm>
1150
+ <Elm>
1151
+ <SubElm>
1152
+ <xsl:value-of select="$Pregnancy/m:PregnancyAdditionalDiagnoses[$NC]/m:DiagnoseCode"/>
1153
+ </SubElm>
1154
+ <xsl:call-template name="GetDiagnoseTypeCodeAndOrg">
1155
+ <xsl:with-param name="DiagnoseTypeCode"
1156
+ select="$Pregnancy/m:PregnancyAdditionalDiagnoses[$NC]/m:DiagnoseTypeCode"/>
1157
+ </xsl:call-template>
1158
+ <SubElm>
1159
+ <xsl:value-of select="$Pregnancy/m:PregnancyAdditionalDiagnoses[$NC]/m:DiagnoseText"/>
1160
+ </SubElm>
1161
+ </Elm>
1162
+ </CIN>
1163
+ </xsl:if>
1164
+ <xsl:if test="$NC &gt; $NCMax">
1165
+ <xsl:variable name="TXT" select="concat('Max. antal CIN-segmenter=', string($NCMax),' er overskredet på dette sted!')"/>
1166
+ <FEJL>
1167
+ <xsl:value-of select="$TXT"/>
1168
+ </FEJL>
1169
+ </xsl:if>
1170
+
1171
+ </xsl:for-each>
1172
+ </xsl:if>
1173
+ </S11>
1174
+
1175
+ <!-- Graviditeten: evt. undersøgelser og behandlinger max. 10 rep.-->
1176
+ <xsl:if test="count($Pregnancy/m:PregnancyInvestigationAndTreatments)>0">
1177
+ <xsl:for-each select="$Pregnancy/m:PregnancyInvestigationAndTreatments">
1178
+ <xsl:variable name="NC" select="position()"/>
1179
+ <xsl:variable name="NCMax" select="10"/>
1180
+ <xsl:if test="$NC &lt; $NCMax+1">
1181
+ <S14>
1182
+ <Elm>
1183
+ <SubElm>14</SubElm>
1184
+ </Elm>
1185
+
1186
+ <xsl:if test="count($Pregnancy/m:PregnancyInvestigationAndTreatments[$NC]/m:InvestigationAndTreatmentDiagnoses)>0">
1187
+ <xsl:for-each select="$Pregnancy/m:PregnancyInvestigationAndTreatments[$NC]/m:InvestigationAndTreatmentDiagnoses">
1188
+ <xsl:variable name="ND" select="position()"/>
1189
+ <xsl:variable name="NDMax" select="9"/>
1190
+ <xsl:if test="$ND &lt; $NDMax+1">
1191
+ <CIN>
1192
+ <Elm>
1193
+ <SubElm>
1194
+ <xsl:call-template name="GetDiagnoseDescriptionCode">
1195
+ <xsl:with-param name="DiagnoseDescriptionCode"
1196
+ select="$Pregnancy/m:PregnancyInvestigationAndTreatments[$NC]/m:InvestigationAndTreatmentDiagnoses[$ND]/m:DiagnoseDescriptionCode"
1197
+ />
1198
+ </xsl:call-template>
1199
+ </SubElm>
1200
+ </Elm>
1201
+ <Elm>
1202
+ <SubElm>
1203
+ <xsl:value-of
1204
+ select="$Pregnancy/m:PregnancyInvestigationAndTreatments[$NC]/m:InvestigationAndTreatmentDiagnoses[$ND]/m:DiagnoseCode"
1205
+ />
1206
+ </SubElm>
1207
+ <xsl:call-template name="GetDiagnoseTypeCodeAndOrg">
1208
+ <xsl:with-param name="DiagnoseTypeCode"
1209
+ select="$Pregnancy/m:PregnancyInvestigationAndTreatments[$NC]/m:InvestigationAndTreatmentDiagnoses[$ND]/m:DiagnoseTypeCode"
1210
+ />
1211
+ </xsl:call-template>
1212
+ <SubElm>
1213
+ <xsl:value-of
1214
+ select="$Pregnancy/m:PregnancyInvestigationAndTreatments[$NC]/m:InvestigationAndTreatmentDiagnoses[$ND]/m:DiagnoseText"
1215
+ />
1216
+ </SubElm>
1217
+ </Elm>
1218
+
1219
+ </CIN>
1220
+ </xsl:if>
1221
+ <xsl:if test="$ND &gt; $NDMax">
1222
+ <xsl:variable name="TXT"
1223
+ select="concat('Max. antal CIN-segmenter=', string($NDMax),' er overskredet på dette sted!')"/>
1224
+ <FEJL>
1225
+ <xsl:value-of select="$TXT"/>
1226
+ </FEJL>
1227
+ </xsl:if>
1228
+
1229
+
1230
+ </xsl:for-each>
1231
+ </xsl:if>
1232
+
1233
+ <xsl:if test="count($Pregnancy/m:PregnancyInvestigationAndTreatments[$NC]/m:ClinicalInfoDate)>0">
1234
+ <DTM>
1235
+ <Elm>
1236
+ <SubElm>CIS</SubElm>
1237
+ <SubElm>
1238
+ <xsl:variable name="DT"
1239
+ select="$Pregnancy/m:PregnancyInvestigationAndTreatments[$NC]/m:ClinicalInfoDate"/>
1240
+ <xsl:variable name="DT203"
1241
+ select="concat(substring($DT/m:Date,1,4),substring($DT/m:Date,6,2),substring($DT/m:Date,9,2),substring($DT/m:Time,1,2),substring($DT/m:Time,4,2))"/>
1242
+ <xsl:value-of select="$DT203"/>
1243
+ </SubElm>
1244
+ <SubElm>203</SubElm>
1245
+ </Elm>
1246
+ </DTM>
1247
+ </xsl:if>
1248
+ <xsl:if test="count($Pregnancy/m:PregnancyInvestigationAndTreatments[$NC]/m:InvestigationAndTreatmentText)>0">
1249
+ <XFTX maxOccurs="5">
1250
+ <Elm>
1251
+ <SubElm>NC</SubElm>
1252
+ </Elm>
1253
+ <Elm/>
1254
+ <Elm/>
1255
+ <Elm>
1256
+ <SubElm>
1257
+ <xsl:for-each select="m:InvestigationAndTreatmentText">
1258
+ <xsl:for-each select="text() | *">
1259
+ <xsl:apply-templates select="."/>
1260
+ </xsl:for-each>
1261
+ </xsl:for-each>
1262
+ </SubElm>
1263
+ </Elm>
1264
+ </XFTX>
1265
+ </xsl:if>
1266
+ </S14>
1267
+ </xsl:if>
1268
+ <xsl:if test="$NC &gt; $NCMax">
1269
+ <xsl:variable name="TXT" select="concat('Max. antal S14-segmenter=', string($NCMax),' er overskredet på dette sted!')"/>
1270
+ <FEJL>
1271
+ <xsl:value-of select="$TXT"/>
1272
+ </FEJL>
1273
+ </xsl:if>
1274
+ </xsl:for-each>
1275
+ </xsl:if>
1276
+
1277
+ <!-- Fødslen-->
1278
+ <S11>
1279
+ <Elm>
1280
+ <SubElm>11</SubElm>
1281
+ </Elm>
1282
+ <xsl:call-template name="GetGIS">
1283
+ <xsl:with-param name="StatusCode" select="$Letter/m:StatusCode"/>
1284
+ </xsl:call-template>
1285
+ <xsl:call-template name="GetEpisodeOfCareIdentifier">
1286
+ <xsl:with-param name="EpisodeOfCareIdentifier" select="$Letter/m:EpisodeOfCareIdentifier"/>
1287
+ </xsl:call-template>
1288
+ <SEQ>
1289
+ <Elm/>
1290
+ <Elm>
1291
+ <SubElm>2</SubElm>
1292
+ </Elm>
1293
+ </SEQ>
1294
+ <DTM>
1295
+ <Elm>
1296
+ <SubElm>K03</SubElm>
1297
+ <SubElm>
1298
+ <xsl:value-of select="concat('00',$Birth/m:PregnancyDuration/m:Weeks,$Birth/m:PregnancyDuration/m:Days)"/>
1299
+ </SubElm>
1300
+ <SubElm>103</SubElm>
1301
+ </Elm>
1302
+ </DTM>
1303
+
1304
+ <!-- Fødslen: aktionsdiagnose -->
1305
+ <xsl:if test="count($Birth/m:BirthPrincipalDiagnoses)>0">
1306
+ <CIN>
1307
+ <Elm>
1308
+ <SubElm>
1309
+ <xsl:call-template name="GetDiagnoseDescriptionCode">
1310
+ <xsl:with-param name="DiagnoseDescriptionCode"
1311
+ select="$Birth/m:BirthPrincipalDiagnoses/m:DiagnoseDescriptionCode"/>
1312
+ </xsl:call-template>
1313
+ </SubElm>
1314
+ </Elm>
1315
+ <Elm>
1316
+ <SubElm>
1317
+ <xsl:value-of select="$Birth/m:BirthPrincipalDiagnoses/m:DiagnoseCode"/>
1318
+ </SubElm>
1319
+ <xsl:call-template name="GetDiagnoseTypeCodeAndOrg">
1320
+ <xsl:with-param name="DiagnoseTypeCode" select="$Birth/m:BirthPrincipalDiagnoses/m:DiagnoseTypeCode"/>
1321
+ </xsl:call-template>
1322
+ <SubElm>
1323
+ <xsl:value-of select="$Birth/m:BirthPrincipalDiagnoses/m:DiagnoseText"/>
1324
+ </SubElm>
1325
+ </Elm>
1326
+ </CIN>
1327
+ </xsl:if>
1328
+
1329
+ <!-- Fødslen: evt. tillægsdiagnoser-->
1330
+ <xsl:if test="count($Birth/m:BirthAdditionalDiagnoses)>0">
1331
+ <xsl:for-each select="$Birth/m:BirthAdditionalDiagnoses">
1332
+ <xsl:variable name="NC" select="position()"/>
1333
+ <xsl:variable name="NCMax" select="5"/>
1334
+ <xsl:if test="$NC &lt; $NCMax+1">
1335
+ <CIN>
1336
+ <Elm>
1337
+ <SubElm>
1338
+ <xsl:call-template name="GetDiagnoseDescriptionCode">
1339
+ <xsl:with-param name="DiagnoseDescriptionCode"
1340
+ select="$Birth/m:BirthAdditionalDiagnoses[$NC]/m:DiagnoseDescriptionCode"/>
1341
+ </xsl:call-template>
1342
+ </SubElm>
1343
+ </Elm>
1344
+ <Elm>
1345
+ <SubElm>
1346
+ <xsl:value-of select="$Birth/m:BirthAdditionalDiagnoses[$NC]/m:DiagnoseCode"/>
1347
+ </SubElm>
1348
+ <xsl:call-template name="GetDiagnoseTypeCodeAndOrg">
1349
+ <xsl:with-param name="DiagnoseTypeCode" select="$Birth/m:BirthAdditionalDiagnoses[$NC]/m:DiagnoseTypeCode"
1350
+ />
1351
+ </xsl:call-template>
1352
+ <SubElm>
1353
+ <xsl:value-of select="$Birth/m:BirthAdditionalDiagnoses[$NC]/m:DiagnoseText"/>
1354
+ </SubElm>
1355
+ </Elm>
1356
+ </CIN>
1357
+ </xsl:if>
1358
+ <xsl:if test="$NC &gt; $NCMax">
1359
+ <xsl:variable name="TXT" select="concat('Max. antal CIN-segmenter=', string($NCMax),' er overskredet på dette sted!')"/>
1360
+ <FEJL>
1361
+ <xsl:value-of select="$TXT"/>
1362
+ </FEJL>
1363
+ </xsl:if>
1364
+
1365
+ </xsl:for-each>
1366
+ </xsl:if>
1367
+ </S11>
1368
+
1369
+ <!-- Fødslen: evt. undersøgelser og behandlinger max. 5 S14-rep. a max. 9 CIN-segmenter-->
1370
+ <xsl:if test="count($Birth/m:BirthInvestigationAndTreatmentDiagnoses)>0">
1371
+ <xsl:for-each select="$Birth/m:BirthInvestigationAndTreatmentDiagnoses">
1372
+ <xsl:variable name="NC" select="position()"/>
1373
+ <xsl:variable name="NCMax" select="45"/>
1374
+ <xsl:variable name="Modtest" select="position() mod 9"/>
1375
+ <xsl:if test="$NC &lt; $NCMax+1">
1376
+ <xsl:choose>
1377
+ <xsl:when test="($Modtest=0 or $NC=1) and $NC != count($Birth/m:BirthInvestigationAndTreatmentDiagnoses)">
1378
+ <xsl:variable name="Segments" select="$Birth/m:BirthInvestigationAndTreatmentDiagnoses"/>
1379
+
1380
+ <xsl:call-template name="MakeSegmentGroup">
1381
+ <xsl:with-param name="StartNbr" select="$NC"/>
1382
+ <xsl:with-param name="MaxPerGroup" select="9"/>
1383
+ <xsl:with-param name="NodeVar" select="$Birth/m:BirthInvestigationAndTreatmentDiagnoses"/>
1384
+ </xsl:call-template>
1385
+ </xsl:when>
1386
+ <xsl:otherwise></xsl:otherwise>
1387
+ </xsl:choose>
1388
+ </xsl:if>
1389
+
1390
+ <xsl:if test="$NC &gt; $NCMax">
1391
+ <xsl:variable name="TXT" select="concat('Max. antal CIN-segmenter=', string($NCMax),' er overskredet på dette sted!')"/>
1392
+ <FEJL>
1393
+ <xsl:value-of select="$TXT"/>
1394
+ </FEJL>
1395
+ </xsl:if>
1396
+
1397
+ </xsl:for-each>
1398
+ </xsl:if>
1399
+
1400
+ <!-- Fødslen: Blødningsmængde og fostervand-->
1401
+ <S14>
1402
+ <Elm>
1403
+ <SubElm>14</SubElm>
1404
+ </Elm>
1405
+ <FTX maxOccurs="5">
1406
+ <Elm>
1407
+ <SubElm>K04</SubElm>
1408
+ </Elm>
1409
+ <Elm/>
1410
+ <Elm/>
1411
+ <Elm>
1412
+ <SubElm><xsl:for-each select="$Birth/m:BleedingVolume"><xsl:for-each select="text() | *"><xsl:apply-templates select="."/></xsl:for-each></xsl:for-each></SubElm>
1413
+ </Elm>
1414
+ </FTX>
1415
+ <!--
1416
+ <XFTX maxOccurs="9">
1417
+ <Elm>
1418
+ <SubElm>NC</SubElm>
1419
+ </Elm>
1420
+ <Elm/>
1421
+ <Elm/>
1422
+ <Elm>
1423
+ <SubElm>
1424
+ <xsl:for-each select="$ClinicalInfos[$index]/m:Text01">
1425
+ <xsl:for-each select="text() | *">
1426
+ <xsl:apply-templates select="."/>
1427
+ </xsl:for-each></xsl:for-each>
1428
+ </SubElm>
1429
+ </Elm>
1430
+ </XFTX>
1431
+ -->
1432
+ <FTX maxOccurs="5">
1433
+ <Elm>
1434
+ <SubElm>K05</SubElm>
1435
+ </Elm>
1436
+ <Elm/>
1437
+ <Elm/>
1438
+ <Elm>
1439
+ <SubElm>
1440
+ <xsl:for-each select="$Birth/m:AmnioticFluidDescription">
1441
+ <xsl:for-each select="text() | *">
1442
+ <xsl:apply-templates select="."/>
1443
+ </xsl:for-each>
1444
+ </xsl:for-each>
1445
+ </SubElm>
1446
+ </Elm>
1447
+ </FTX>
1448
+ </S14>
1449
+
1450
+ <!-- Fødslen: Andre oplysninger og Aftalt tid til jordemoderbesøg-->
1451
+ <xsl:if test="count($Birth/m:BirthAdditionalInfo)>0 or count($Birth/m:MaternityMotherAppointment)>0">
1452
+ <S14>
1453
+ <Elm>
1454
+ <SubElm>14</SubElm>
1455
+ </Elm>
1456
+ <xsl:if test="count($Birth/m:BirthAdditionalInfo)>0">
1457
+ <XFTX maxOccurs="9">
1458
+ <Elm>
1459
+ <SubElm>NC</SubElm>
1460
+ </Elm>
1461
+ <Elm/>
1462
+ <Elm/>
1463
+ <Elm>
1464
+ <SubElm>
1465
+ <xsl:for-each select="$Birth/m:BirthAdditionalInfo">
1466
+ <xsl:for-each select="text() | *">
1467
+ <xsl:apply-templates select="."/>
1468
+ </xsl:for-each>
1469
+ </xsl:for-each>
1470
+ </SubElm>
1471
+ </Elm>
1472
+ </XFTX>
1473
+ </xsl:if>
1474
+ <xsl:if test="count($Birth/m:MaternityMotherAppointment)>0">
1475
+ <FTX>
1476
+ <Elm>
1477
+ <SubElm>AFT</SubElm>
1478
+ </Elm>
1479
+ <Elm>
1480
+ <SubElm>P00</SubElm>
1481
+ </Elm>
1482
+ <Elm>
1483
+ <SubElm>
1484
+ <xsl:value-of select="$Birth/m:MaternityMotherAppointment"/>
1485
+ </SubElm>
1486
+ </Elm>
1487
+ </FTX>
1488
+ </xsl:if>
1489
+ </S14>
1490
+ </xsl:if>
1491
+
1492
+ <!-- Børneoplysninger max. 5 rep.-->
1493
+ <xsl:for-each select="$ChildInfo">
1494
+ <xsl:variable name="NC" select="position()"/>
1495
+ <xsl:call-template name="GetChildInfo">
1496
+ <xsl:with-param name="ChildNbr" select="$NC"/>
1497
+ <xsl:with-param name="ChildInfo" select="$ChildInfo[$NC]"/>
1498
+ <xsl:with-param name="Letter" select="$Letter"/>
1499
+ </xsl:call-template>
1500
+
1501
+ </xsl:for-each>
1502
+
1503
+ </BrevIndhold>
1504
+ <UNT>
1505
+ <Elm>
1506
+ <SubElm>1</SubElm>
1507
+ </Elm>
1508
+ <Elm>
1509
+ <SubElm>
1510
+ <xsl:value-of select="$Letter/m:Identifier"/>
1511
+ </SubElm>
1512
+ </Elm>
1513
+ </UNT>
1514
+ </Brev>
1515
+ </xsl:template>
1516
+
1517
+ <xsl:template name="MakeSegmentGroup">
1518
+ <xsl:param name="StartNbr"/>
1519
+ <xsl:param name="MaxPerGroup"/>
1520
+ <xsl:param name="NodeVar"/>
1521
+ <S14>
1522
+ <Elm>
1523
+ <SubElm>14</SubElm>
1524
+ </Elm>
1525
+
1526
+ <xsl:for-each select="$NodeVar">
1527
+ <xsl:variable name="NC" select="position()"/>
1528
+
1529
+ <xsl:if test="$StartNbr=1">
1530
+ <xsl:variable name="NCStart" select="$StartNbr - 1"/>
1531
+ <xsl:variable name="NCEnd" select="$StartNbr+$MaxPerGroup"/>
1532
+
1533
+ <xsl:if test="$NC &gt; $NCStart and $NC &lt; $NCEnd">
1534
+ <xsl:call-template name="GetBirthCIN">
1535
+ <xsl:with-param name="NC" select="$NC"/>
1536
+ </xsl:call-template>
1537
+ </xsl:if>
1538
+ </xsl:if>
1539
+
1540
+ <xsl:if test="$StartNbr>1">
1541
+ <xsl:variable name="NCStart" select="$StartNbr"/>
1542
+ <xsl:variable name="NCEnd" select="$StartNbr+$MaxPerGroup+1"/>
1543
+
1544
+ <xsl:if test="$NC &gt; $NCStart and $NC &lt; $NCEnd">
1545
+ <xsl:call-template name="GetBirthCIN">
1546
+ <xsl:with-param name="NC" select="$NC"/>
1547
+ </xsl:call-template>
1548
+ </xsl:if>
1549
+ </xsl:if>
1550
+ </xsl:for-each>
1551
+ </S14>
1552
+ </xsl:template>
1553
+
1554
+ <xsl:template name="GetBirthCIN">
1555
+ <xsl:param name="NC"/>
1556
+ <CIN>
1557
+ <Elm>
1558
+ <SubElm>
1559
+ <xsl:call-template name="GetDiagnoseDescriptionCode">
1560
+ <xsl:with-param name="DiagnoseDescriptionCode"
1561
+ select="//m:BirthInvestigationAndTreatmentDiagnoses[$NC]/m:DiagnoseDescriptionCode"/>
1562
+ </xsl:call-template>
1563
+ </SubElm>
1564
+ </Elm>
1565
+ <Elm>
1566
+ <SubElm>
1567
+ <xsl:value-of select="//m:BirthInvestigationAndTreatmentDiagnoses[$NC]/m:DiagnoseCode"/>
1568
+ </SubElm>
1569
+ <xsl:call-template name="GetDiagnoseTypeCodeAndOrg">
1570
+ <xsl:with-param name="DiagnoseTypeCode" select="//m:BirthInvestigationAndTreatmentDiagnoses[$NC]/m:DiagnoseTypeCode"/>
1571
+ </xsl:call-template>
1572
+ <SubElm>
1573
+ <xsl:value-of select="//m:BirthInvestigationAndTreatmentDiagnoses[$NC]/m:DiagnoseText"/>
1574
+ </SubElm>
1575
+ </Elm>
1576
+ </CIN>
1577
+ </xsl:template>
1578
+
1579
+
1580
+ <xsl:template name="GetGIS">
1581
+ <xsl:param name="StatusCode"/>
1582
+ <GIS>
1583
+ <Elm>
1584
+ <SubElm>
1585
+ <xsl:choose>
1586
+ <xsl:when test="$StatusCode='nytbrev' ">N</xsl:when>
1587
+ <xsl:when test="$StatusCode='rettetbrev' ">M</xsl:when>
1588
+ <xsl:otherwise>
1589
+ <FEJL> Kan ikke oversaette fra StatusCode til GIS: <xsl:value-of select="$StatusCode"/>
1590
+ </FEJL>
1591
+ </xsl:otherwise>
1592
+ </xsl:choose>
1593
+ </SubElm>
1594
+ </Elm>
1595
+ </GIS>
1596
+ </xsl:template>
1597
+
1598
+ <xsl:template name="GetEpisodeOfCareIdentifier">
1599
+ <xsl:param name="EpisodeOfCareIdentifier"/>
1600
+ <xsl:if test="count(EpisodeOfCareIdentifier)=1">
1601
+ <RFF>
1602
+ <Elm>
1603
+ <SubElm>REI</SubElm>
1604
+ <SubElm>
1605
+ <xsl:value-of select="EpisodeOfCareIdentifier"/>
1606
+ </SubElm>
1607
+ </Elm>
1608
+ </RFF>
1609
+ </xsl:if>
1610
+ <xsl:if test="count(EpisodeOfCareIdentifier)=0">
1611
+ <RFF>
1612
+ <Elm>
1613
+ <SubElm>AHI</SubElm>
1614
+ <SubElm>1</SubElm>
1615
+ </Elm>
1616
+ </RFF>
1617
+ </xsl:if>
1618
+ </xsl:template>
1619
+
1620
+
1621
+ <xsl:template name="GetDiagnoseDescriptionCode">
1622
+ <xsl:param name="DiagnoseDescriptionCode"/>
1623
+ <xsl:choose>
1624
+ <xsl:when test="$DiagnoseDescriptionCode='uspec_diagnose' ">DI</xsl:when>
1625
+ <xsl:when test="$DiagnoseDescriptionCode='henv_diagnose' ">H</xsl:when>
1626
+ <xsl:when test="$DiagnoseDescriptionCode='bidiagnose' ">B</xsl:when>
1627
+ <xsl:when test="$DiagnoseDescriptionCode='aktionsdiagnose' ">A</xsl:when>
1628
+ <xsl:when test="$DiagnoseDescriptionCode='tillaegsdiagnose' ">DM</xsl:when>
1629
+ <xsl:when test="$DiagnoseDescriptionCode='midlertidig_diagnose' ">M</xsl:when>
1630
+ <xsl:when test="$DiagnoseDescriptionCode='forloebsdiagnose' ">S</xsl:when>
1631
+ <xsl:when test="$DiagnoseDescriptionCode='operation' ">TR</xsl:when>
1632
+ <xsl:when test="$DiagnoseDescriptionCode='roentgenundersoegelse' ">IN</xsl:when>
1633
+ <xsl:otherwise>
1634
+ <FEJL>Kan ikke oversaette DiagnoseDescriptionCode: <xsl:value-of select="$DiagnoseDescriptionCode"/></FEJL>
1635
+ </xsl:otherwise>
1636
+ </xsl:choose>
1637
+
1638
+ </xsl:template>
1639
+
1640
+ <xsl:template name="GetDiagnoseTypeCodeAndOrg">
1641
+ <xsl:param name="DiagnoseTypeCode"/>
1642
+ <SubElm>
1643
+ <xsl:choose>
1644
+ <xsl:when test="$DiagnoseTypeCode='SKSdiagnosekode' ">SKS</xsl:when>
1645
+ <xsl:when test="$DiagnoseTypeCode='uspecificeretkode' ">USP</xsl:when>
1646
+ <xsl:when test="$DiagnoseTypeCode='ICPCkode' ">ICP</xsl:when>
1647
+ </xsl:choose>
1648
+ </SubElm>
1649
+ <SubElm>
1650
+ <xsl:choose>
1651
+ <xsl:when test="$DiagnoseTypeCode='SKSdiagnosekode' ">SST</xsl:when>
1652
+ <xsl:when test="$DiagnoseTypeCode='uspecificeretkode' ">NCD</xsl:when>
1653
+ <xsl:when test="$DiagnoseTypeCode='ICPCkode' ">ICP</xsl:when>
1654
+ </xsl:choose>
1655
+ </SubElm>
1656
+ </xsl:template>
1657
+
1658
+ <xsl:template name="GetChildCIN">
1659
+ <xsl:param name="ChildInfo"/>
1660
+ <xsl:param name="OD"/>
1661
+ <CIN>
1662
+ <Elm>
1663
+ <SubElm>
1664
+ <xsl:call-template name="GetDiagnoseDescriptionCode">
1665
+ <xsl:with-param name="DiagnoseDescriptionCode" select="$ChildInfo/m:ChildOtherDiagnoses[$OD]/m:DiagnoseDescriptionCode"/>
1666
+ </xsl:call-template>
1667
+ </SubElm>
1668
+ </Elm>
1669
+ <Elm>
1670
+ <SubElm>
1671
+ <xsl:value-of select="$ChildInfo/m:ChildOtherDiagnoses[$OD]/m:DiagnoseCode"/>
1672
+ </SubElm>
1673
+ <xsl:call-template name="GetDiagnoseTypeCodeAndOrg">
1674
+ <xsl:with-param name="DiagnoseTypeCode" select="$ChildInfo/m:ChildOtherDiagnoses[$OD]/m:DiagnoseTypeCode"/>
1675
+ </xsl:call-template>
1676
+ <SubElm>
1677
+ <xsl:value-of select="$ChildInfo/m:ChildOtherDiagnoses[$OD]/m:DiagnoseText"/>
1678
+ </SubElm>
1679
+ </Elm>
1680
+ </CIN>
1681
+ </xsl:template>
1682
+
1683
+
1684
+ <!-- Børn: Diagnoser mm. -->
1685
+ <xsl:template name="GetChildInfo">
1686
+ <xsl:param name="ChildNbr"/>
1687
+ <xsl:param name="ChildInfo"/>
1688
+ <xsl:param name="Letter"/>
1689
+
1690
+ <S11>
1691
+ <Elm>
1692
+ <SubElm>11</SubElm>
1693
+ </Elm>
1694
+ <xsl:call-template name="GetGIS">
1695
+ <xsl:with-param name="StatusCode" select="$Letter/m:StatusCode"/>
1696
+ </xsl:call-template>
1697
+ <xsl:call-template name="GetEpisodeOfCareIdentifier">
1698
+ <xsl:with-param name="EpisodeOfCareIdentifier" select="$Letter/m:EpisodeOfCareIdentifier"/>
1699
+ </xsl:call-template>
1700
+ <RFF>
1701
+ <Elm>
1702
+ <SubElm>PER</SubElm>
1703
+ <SubElm>1</SubElm>
1704
+ </Elm>
1705
+ </RFF>
1706
+ <SEQ>
1707
+ <Elm/>
1708
+ <Elm>
1709
+ <SubElm>
1710
+ <xsl:value-of select="$ChildNbr+2"/>
1711
+ </SubElm>
1712
+ </Elm>
1713
+ </SEQ>
1714
+
1715
+ <!-- Børn: Aktionsdiagnose -->
1716
+ <xsl:if test="count($ChildInfo/m:ChildPrincipalDiagnoses)>0">
1717
+ <CIN>
1718
+ <Elm>
1719
+ <SubElm>
1720
+ <xsl:call-template name="GetDiagnoseDescriptionCode">
1721
+ <xsl:with-param name="DiagnoseDescriptionCode" select="$ChildInfo/m:ChildPrincipalDiagnoses/m:DiagnoseDescriptionCode"
1722
+ />
1723
+ </xsl:call-template>
1724
+ </SubElm>
1725
+ </Elm>
1726
+ <Elm>
1727
+ <SubElm>
1728
+ <xsl:value-of select="$ChildInfo/m:ChildPrincipalDiagnoses/m:DiagnoseCode"/>
1729
+ </SubElm>
1730
+ <xsl:call-template name="GetDiagnoseTypeCodeAndOrg">
1731
+ <xsl:with-param name="DiagnoseTypeCode" select="$ChildInfo/m:ChildPrincipalDiagnoses/m:DiagnoseTypeCode"/>
1732
+ </xsl:call-template>
1733
+ <SubElm>
1734
+ <xsl:value-of select="$ChildInfo/m:ChildPrincipalDiagnoses/m:DiagnoseText"/>
1735
+ </SubElm>
1736
+ </Elm>
1737
+ </CIN>
1738
+ </xsl:if>
1739
+
1740
+ <!-- Børn: Tillægsdiagnoser -->
1741
+ <xsl:if test="count($ChildInfo/m:ChildAdditionalDiagnoses)>0">
1742
+ <xsl:for-each select="$ChildInfo/m:ChildAdditionalDiagnoses">
1743
+ <xsl:variable name="NC" select="position()"/>
1744
+ <xsl:variable name="NCMax" select="5"/>
1745
+ <xsl:if test="$NC &lt; $NCMax+1">
1746
+ <CIN>
1747
+ <Elm>
1748
+ <SubElm>
1749
+ <xsl:call-template name="GetDiagnoseDescriptionCode">
1750
+ <xsl:with-param name="DiagnoseDescriptionCode"
1751
+ select="$ChildInfo/m:ChildAdditionalDiagnoses[$NC]/m:DiagnoseDescriptionCode"/>
1752
+ </xsl:call-template>
1753
+ </SubElm>
1754
+ </Elm>
1755
+ <Elm>
1756
+ <SubElm>
1757
+ <xsl:value-of select="$ChildInfo/m:ChildAdditionalDiagnoses[$NC]/m:DiagnoseCode"/>
1758
+ </SubElm>
1759
+ <xsl:call-template name="GetDiagnoseTypeCodeAndOrg">
1760
+ <xsl:with-param name="DiagnoseTypeCode" select="$ChildInfo/m:ChildAdditionalDiagnoses[$NC]/m:DiagnoseTypeCode"/>
1761
+ </xsl:call-template>
1762
+ <SubElm>
1763
+ <xsl:value-of select="$ChildInfo/m:ChildAdditionalDiagnoses[$NC]/m:DiagnoseText"/>
1764
+ </SubElm>
1765
+ </Elm>
1766
+ </CIN>
1767
+ </xsl:if>
1768
+ <xsl:if test="$NC &gt; $NCMax">
1769
+ <xsl:variable name="TXT" select="concat('Max. antal CIN-segmenter=', string($NCMax),' er overskredet på dette sted!')"/>
1770
+ <FEJL>
1771
+ <xsl:value-of select="$TXT"/>
1772
+ </FEJL>
1773
+ </xsl:if>
1774
+ </xsl:for-each>
1775
+ </xsl:if>
1776
+
1777
+ <!-- Børn: Øvrige diagnoser -->
1778
+ <xsl:if test="count($ChildInfo/m:ChildOtherDiagnoses)>0">
1779
+ <xsl:for-each select="$ChildInfo/m:ChildOtherDiagnoses">
1780
+ <xsl:variable name="NC" select="position()"/>
1781
+ <xsl:variable name="NCMax" select="27"/>
1782
+ <xsl:variable name="Modtest" select="position() mod 9"/>
1783
+ <xsl:variable name="MaxPerGroup" select="9"/>
1784
+ <xsl:if test="$NC &lt; $NCMax+1">
1785
+ <xsl:choose>
1786
+ <xsl:when test="($Modtest=0 or $NC=1) and $NC != count($ChildInfo/m:ChildOtherDiagnoses)">
1787
+ <S14>
1788
+ <Elm>
1789
+ <SubElm>14</SubElm>
1790
+ </Elm>
1791
+
1792
+ <xsl:for-each select="$ChildInfo/m:ChildOtherDiagnoses">
1793
+ <xsl:variable name="OD" select="position()"/>
1794
+ <xsl:if test="$NC=1">
1795
+ <xsl:variable name="NCStart" select="$NC - 1"/>
1796
+ <xsl:variable name="NCEnd" select="$NC+$MaxPerGroup"/>
1797
+
1798
+ <xsl:if test="$OD &gt; $NCStart and $OD &lt; $NCEnd">
1799
+ <xsl:call-template name="GetChildCIN">
1800
+ <xsl:with-param name="ChildInfo" select="$ChildInfo"/>
1801
+ <xsl:with-param name="OD" select="$OD"/>
1802
+ </xsl:call-template>
1803
+ </xsl:if>
1804
+ </xsl:if>
1805
+
1806
+ <xsl:if test="$NC>1">
1807
+ <xsl:variable name="NCStart" select="$NC"/>
1808
+ <xsl:variable name="NCEnd" select="$NC+$MaxPerGroup+1"/>
1809
+
1810
+ <xsl:if test="$OD &gt; $NCStart and $OD &lt; $NCEnd">
1811
+ <xsl:call-template name="GetChildCIN">
1812
+ <xsl:with-param name="ChildInfo" select="$ChildInfo"/>
1813
+ <xsl:with-param name="OD" select="$OD"/>
1814
+ </xsl:call-template>
1815
+ </xsl:if>
1816
+ </xsl:if>
1817
+ </xsl:for-each>
1818
+ </S14>
1819
+
1820
+ </xsl:when>
1821
+ <xsl:otherwise> </xsl:otherwise>
1822
+ </xsl:choose>
1823
+ </xsl:if>
1824
+
1825
+ <xsl:if test="$NC &gt; $NCMax">
1826
+ <xsl:variable name="TXT" select="concat('Max. antal CIN-segmenter=', string($NCMax),' er overskredet på dette sted!')"/>
1827
+ <FEJL>
1828
+ <xsl:value-of select="$TXT"/>
1829
+ </FEJL>
1830
+ </xsl:if>
1831
+
1832
+ </xsl:for-each>
1833
+
1834
+ </xsl:if>
1835
+ <!-- Børn: Vægt, længde, hovedomfang og Apgarscore -->
1836
+ <xsl:if test="count($ChildInfo/m:ChildDimensions)>0 or count($ChildInfo/m:ApgarScore)>0">
1837
+ <S14>
1838
+ <Elm>
1839
+ <SubElm>14</SubElm>
1840
+ </Elm>
1841
+ <xsl:if test="count($ChildInfo/m:ChildDimensions)>0">
1842
+ <FTX>
1843
+ <Elm>
1844
+ <SubElm>K06</SubElm>
1845
+ </Elm>
1846
+ <Elm>
1847
+ <SubElm>P00</SubElm>
1848
+ </Elm>
1849
+ <Elm/>
1850
+ <Elm>
1851
+ <SubElm>
1852
+ <xsl:value-of select="$ChildInfo/m:ChildDimensions/m:Weight"/>
1853
+ </SubElm>
1854
+ <SubElm>
1855
+ <xsl:value-of select="$ChildInfo/m:ChildDimensions/m:Length"/>
1856
+ </SubElm>
1857
+ <SubElm>
1858
+ <xsl:value-of select="$ChildInfo/m:ChildDimensions/m:HeadCircumference"/>
1859
+ </SubElm>
1860
+ </Elm>
1861
+ </FTX>
1862
+ </xsl:if>
1863
+ <xsl:if test="count($ChildInfo/m:ApgarScore)>0">
1864
+ <FTX>
1865
+ <Elm>
1866
+ <SubElm>K07</SubElm>
1867
+ </Elm>
1868
+ <Elm>
1869
+ <SubElm>P00</SubElm>
1870
+ </Elm>
1871
+ <Elm>
1872
+ <SubElm>
1873
+ <xsl:value-of select="$ChildInfo/m:ApgarScore/m:ScoreAfterOneMin"/>
1874
+ </SubElm>
1875
+ <SubElm>
1876
+ <xsl:value-of select="$ChildInfo/m:ApgarScore/m:ScoreAfterFiveMin"/>
1877
+ </SubElm>
1878
+ <SubElm>
1879
+ <xsl:value-of select="$ChildInfo/m:ApgarScore/m:ScoreAfterTenMin"/>
1880
+ </SubElm>
1881
+ <SubElm>
1882
+ <xsl:value-of select="$ChildInfo/m:ApgarScore/m:MinutesAtScoreTen"/>
1883
+ </SubElm>
1884
+ </Elm>
1885
+ </FTX>
1886
+ </xsl:if>
1887
+ </S14>
1888
+ </xsl:if>
1889
+ <!-- Børn: Øvrige oplysninger -->
1890
+ <xsl:if test="count($ChildInfo/m:ChildAdditionalInfo)>0 or count($ChildInfo/m:ChildTransferral)>0">
1891
+ <S14>
1892
+ <Elm>
1893
+ <SubElm>14</SubElm>
1894
+ </Elm>
1895
+ <xsl:if test="count($ChildInfo/m:ChildAdditionalInfo)>0">
1896
+ <XFTX maxOccurs="9">
1897
+ <Elm>
1898
+ <SubElm>NC</SubElm>
1899
+ </Elm>
1900
+ <Elm/>
1901
+ <Elm/>
1902
+ <Elm>
1903
+ <SubElm>
1904
+ <xsl:for-each select="$ChildInfo/m:ChildAdditionalInfo">
1905
+ <xsl:for-each select="text() | *">
1906
+ <xsl:apply-templates select="."/>
1907
+ </xsl:for-each>
1908
+ </xsl:for-each>
1909
+ </SubElm>
1910
+ </Elm>
1911
+ </XFTX>
1912
+ </xsl:if>
1913
+ <xsl:if test="count($ChildInfo/m:ChildTransferral)>0">
1914
+ <FTX>
1915
+ <Elm>
1916
+ <SubElm>OVF</SubElm>
1917
+ </Elm>
1918
+ <Elm>
1919
+ <SubElm>P00</SubElm>
1920
+ </Elm>
1921
+ <Elm>
1922
+ <SubElm>
1923
+ <xsl:value-of select="$ChildInfo/m:ChildTransferral"/>
1924
+ </SubElm>
1925
+ </Elm>
1926
+ </FTX>
1927
+ </xsl:if>
1928
+ </S14>
1929
+ </xsl:if>
1930
+ </S11>
1931
+ </xsl:template>
1932
+
1933
+ <!-- FTX formatted -->
1934
+ <xsl:template match="m:Space">
1935
+ <Space/>
1936
+ </xsl:template>
1937
+ <xsl:template match="m:Break">
1938
+ <Break/>
1939
+ </xsl:template>
1940
+ <xsl:template match="m:Bold">
1941
+ <Bold>
1942
+ <xsl:for-each select="text() | *">
1943
+ <xsl:apply-templates select="."/>
1944
+ </xsl:for-each>
1945
+ </Bold>
1946
+ </xsl:template>
1947
+ <xsl:template match="m:Italic">
1948
+ <Italic>
1949
+ <xsl:for-each select="text() | *">
1950
+ <xsl:apply-templates select="."/>
1951
+ </xsl:for-each>
1952
+ </Italic>
1953
+ </xsl:template>
1954
+ <xsl:template match="m:Underline">
1955
+ <Underline>
1956
+ <xsl:for-each select="text() | *">
1957
+ <xsl:apply-templates select="."/>
1958
+ </xsl:for-each>
1959
+ </Underline>
1960
+ </xsl:template>
1961
+ <xsl:template match="m:Right">
1962
+ <Right>
1963
+ <xsl:for-each select="text() | *">
1964
+ <xsl:apply-templates select="."/>
1965
+ </xsl:for-each>
1966
+ </Right>
1967
+ </xsl:template>
1968
+ <xsl:template match="m:Center">
1969
+ <Center>
1970
+ <xsl:for-each select="text() | *">
1971
+ <xsl:apply-templates select="."/>
1972
+ </xsl:for-each>
1973
+ </Center>
1974
+ </xsl:template>
1975
+ <xsl:template match="m:FixedFont"><FixedFont><xsl:for-each select="text() | *"><xsl:apply-templates select="."/></xsl:for-each></FixedFont>
1976
+ </xsl:template>
1977
+
1978
+ </xsl:stylesheet>