Difference between revisions of "IHE FHIR Profile Publication/Creating new Profiles"
Line 25: | Line 25: | ||
<?xml version="1.0" encoding="utf-16"?> | <?xml version="1.0" encoding="utf-16"?> | ||
<ImplementationGuide xmlns="http://hl7.org/fhir"> | <ImplementationGuide xmlns="http://hl7.org/fhir"> | ||
− | <id value="base" /> | + | <id value="base" /> |
− | + | <url value="http://ihe.net/fhir/base" /> | |
− | <name value="ImplementationGuide5" /> | + | <name value="ImplementationGuide5" /> |
− | <status value="draft" /> | + | <status value="draft" /> |
... | ... | ||
Line 36: | Line 36: | ||
<?xml version="1.0" encoding="utf-16"?> | <?xml version="1.0" encoding="utf-16"?> | ||
<ImplementationGuide xmlns="http://hl7.org/fhir"> | <ImplementationGuide xmlns="http://hl7.org/fhir"> | ||
− | + | <id value="'''mmm'''" /> | |
− | + | <url value="http://ihe.net/fhir/mmm" /> | |
− | + | <name value="'''Mobile Medication Management'''" /> | |
− | + | <status value="draft" /> | |
... | ... | ||
Line 57: | Line 57: | ||
=== Add an entry in the implementationGuide (mmm.xml) to point to the file you added. === | === Add an entry in the implementationGuide (mmm.xml) to point to the file you added. === | ||
− | + | ||
− | + | <page> | |
− | + | <nameUrl value="toc.html" /> | |
+ | <title value="Table of Contents" /> | ||
+ | <generation value="html" /> | ||
+ | <page> | ||
+ | <nameUrl value="index.html" /> | ||
+ | <title value="Main Page" /> | ||
+ | <generation value="html" /> | ||
+ | </page> | ||
+ | <page> | ||
+ | <nameUrl value="welcome.html" /> | ||
+ | <title value="Welcome Page" /> | ||
<generation value="html" /> | <generation value="html" /> | ||
− | + | </page> | |
− | + | <page> | |
− | + | <nameUrl value="artifacts.html" /> | |
− | + | <title value="Artifacts" /> | |
− | + | <generation value="html" /> | |
− | + | </page> | |
− | + | </page> | |
− | + | ||
− | + | == Adding resources == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | === place the resource as an XML file in the content\resources folder, === | |
− | |||
− | |||
− | |||
− | |||
− | |||
<blockquote>[[File:media/image3.png|402x201px]] | <blockquote>[[File:media/image3.png|402x201px]] | ||
Line 92: | Line 90: | ||
Just add a section like this. Make sure you point to a package that exists in the mmm.xml file. | Just add a section like this. Make sure you point to a package that exists in the mmm.xml file. | ||
− | + | <resource> | |
<reference> | <reference> | ||
<reference value="CapabilityStatement/ihe-mmm-requestplacer" /> | <reference value="CapabilityStatement/ihe-mmm-requestplacer" /> |
Revision as of 05:20, 30 September 2018
Getting Started – Using the default content
These are the steps to create another implementation guide from the base profile. To provide an example, we describe how to change the profile “base” to a new profile called “mmm”. Of course you can use an name as long as the file names match the references.
- Copying / renaming implementation guide
- Adding pages
- Adding resources
The details:
Copying / renaming implementation guide
Rename (or copy) the “base” folder to “mmm”
Rename the file “base.xml” to “mmm.xml”. Compared to the “base” profile, we end up with this:
Edit the mmm.xml and change the id, url, and optionally name as appropriate:
Original:
<?xml version="1.0" encoding="utf-16"?> <ImplementationGuide xmlns="http://hl7.org/fhir%22> <id value="base" /> <url value="http://ihe.net/fhir/base%22 /> <name value="ImplementationGuide5" /> <status value="draft" />
...
Updated:
<?xml version="1.0" encoding="utf-16"?> <ImplementationGuide xmlns="http://hl7.org/fhir%22> <id value="mmm" /> <url value="http://ihe.net/fhir/mmm%22 /> <name value="Mobile Medication Management" /> <status value="draft" />
...
At this moment you can rebuild to make sure things still work ok.
Adding pages
You can add pages under the top page, which is the Table of Contents.
It is recommended to keep page named “index” – you can change the existing index.xml page if you want.
Add the x(ht)ml file in the content\pagecontent folder, for example a “welcome” page.
Add an entry in the implementationGuide (mmm.xml) to point to the file you added.
<page>
<nameUrl value="toc.html" />
<title value="Table of Contents" /> <generation value="html" /> <page> <nameUrl value="index.html" /> <title value="Main Page" />
<generation value="html" /> </page>
<page> <nameUrl value="welcome.html" /> <title value="Welcome Page" />
<generation value="html" /> </page> <page>
<nameUrl value="artifacts.html" /> <title value="Artifacts" /> <generation value="html" /> </page> </page>
Adding resources
place the resource as an XML file in the content\resources folder,
place a reference in the implementation guide file (mmm.xml).
Just add a section like this. Make sure you point to a package that exists in the mmm.xml file.
<resource>
<reference> <reference value="CapabilityStatement/ihe-mmm-requestplacer" /> </reference> <name value="IHE MMM Request placer" /> <description value="Request Placer Specifications" /> <package value="Package1" /> </resource>
<?xml version="1.0" encoding="utf-16"?> <ImplementationGuide xmlns="http://hl7.org/fhir%22>
<id value="base" /> <url value="http://ihe.net/fhir/base%22 /> <name value="Base Profile" /> <version value="0.2.1" /> <status value="draft" /> <experimental value="false" /> <date value="2018-01-01T00:00:00.000+02:00" /> <jurisdiction> <coding> <system value="urn:iso:std:iso:3166%22 /> <code value="US" /> </coding> </jurisdiction> <packageId value="ihe.fhir.base" /> <license value="Apache-2.0" /> <fhirVersion value="3.5.0" /> <definition> <package> <name value="Package1" /> <description value="Package" /> </package> <resource> <reference> <reference value="CapabilityStatement/ihe-base-requestplacer" /> </reference> <name value="ihe-base-requestplacer" /> <description value="Request Placer Specifications" /> <package value="Package1" /> </resource> <resource> <reference> <reference value="StructureDefinition/medication-request" /> </reference> <name value="Medication Request" /> <description value="Medication Request Specifications" /> <exampleBoolean value="false" /> <package value="Package1" /> </resource> <page> <nameUrl value="toc.html" /> <title value="Table of Contents" /> <generation value="html" /> <page> <nameUrl value="index.html" /> <title value="Main Page" /> <generation value="html" /> </page> <page> <nameUrl value="artifacts.html" /> <title value="Artifacts" /> <generation value="html" /> </page> </page> </definition>
</ImplementationGuide>