2015-05-31 16:52:31 -04:00
#!/bin/sh
2015-07-05 17:14:15 -04:00
2015-07-08 17:57:53 -04:00
FHIRTRUNK = ~/workspace/fhir/trunk
2015-07-05 17:14:15 -04:00
# Model
2015-08-31 08:20:24 -04:00
rm hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/*.java
2015-07-08 17:57:53 -04:00
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/model/*.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/model/valuesets/*.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/
2015-08-31 08:20:24 -04:00
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/formats/FormatUtilities.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/formats/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/formats/ParserType.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/formats/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/formats/IParser.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/formats/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/utils/EOperationOutcome.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/utils/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/utils/INarrativeGenerator.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/utils/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/utils/IWorkerContext.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/utils/
2015-07-08 17:57:53 -04:00
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/utils/ProfileUtilities.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/utils/
2015-08-31 08:20:24 -04:00
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/terminologies/ValueSetExpansionCache.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/terminologies/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/terminologies/ValueSetExpander.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/terminologies/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/terminologies/ValueSetExpanderFactory.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/terminologies/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/terminologies/ValueSetChecker.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/terminologies/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/terminologies/ValueSetExpanderSimple.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/terminologies/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/terminologies/ValueSetCheckerSimple.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/terminologies/
2015-07-08 17:57:53 -04:00
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/utils/WorkerContext.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/utils/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/utils/NameResolver.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/utils/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/validation/BaseValidator.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/validation/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/validation/InstanceValidator.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/validation/
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/validation/ValidationMessage.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/validation/ValidationMessage.java
2015-07-14 18:08:06 -04:00
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/validation/IResourceValidator.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/validation/
2015-07-08 17:57:53 -04:00
cp -vp $FHIRTRUNK /build/implementations/java/org.hl7.fhir.utilities/src/org/hl7/fhir/utilities/xhtml/HeirarchicalTableGenerator.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/utilities/xhtml/
2015-07-14 18:08:06 -04:00
cp -av $FHIRTRUNK /build/implementations/java/org.hl7.fhir.utilities/src/org/hl7/fhir/utilities/Utilities.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/utilities/
2015-07-21 10:58:02 -04:00
cp -av $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/utils/ToolingExtensions.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/utils/
2015-08-09 11:18:04 -04:00
cp -av $FHIRTRUNK /build/implementations/java/org.hl7.fhir.instance/src/org/hl7/fhir/instance/client/IFHIRClient.java hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/client/
2015-07-05 17:14:15 -04:00
2015-07-14 18:08:06 -04:00
# Profiles
2015-09-03 08:07:43 -04:00
for i in $( find $FHIRTRUNK /build/publish | grep -E " publish\/[a-z]+\.profile.xml $" ) ; do echo $i ; cp $i hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/profile/; done
rm hapi-tinder-plugin/src/main/resources/res/dstu2/*
for i in $( find $FHIRTRUNK /build/source -name *-spreadsheet.xml | egrep "/[a-z0-9]+-spreadsheet" ) ; do cp -v $i hapi-tinder-plugin/src/main/resources/res/dstu2/; done
rm hapi-tinder-plugin/src/main/resources/dt/dstu2/*
for i in $( find $FHIRTRUNK /build/source/datatypes | grep xml | grep -v spreadsheet | grep -v -) ; do cp -v $i hapi-tinder-plugin/src/main/resources/dt/dstu2/; done
cp $FHIRTRUNK /build/publish/valuesets.xml hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/valueset/
cp $FHIRTRUNK /build/publish/v3-codesystems.xml hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/valueset/
cp $FHIRTRUNK /build/publish/v2-codesystems.xml hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/valueset/
# Schematron
rm hapi-fhir-structures-dstu2/src/main/resources/ca/uhn/fhir/model/dstu2/schema/*.sch
for i in $( ls $FHIRTRUNK /build/publish/*.sch | grep -v -) ; do cp -v $i hapi-fhir-structures-dstu2/src/main/resources/ca/uhn/fhir/model/dstu2/schema/; done
# Schema
cp $FHIRTRUNK /build/publish/fhir-single.xsd hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/schema/
cp $FHIRTRUNK /build/publish/fhir-xhtml.xsd hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/schema/
cp $FHIRTRUNK /build/publish/xml.xsd hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/schema/
for i in $( ls $FHIRTRUNK /build/publish/*.sch | grep -vp - ) ; do cp $i hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/schema; done
2015-07-14 18:08:06 -04:00
2015-09-03 08:07:43 -04:00
# find hapi-tinder-plugin/src/main/resources/res/dstu2 | sed "s|.*/|<baseResourceName>|" | sed "s/-spread.*/<\/baseResourceName>/" | grep -v "Name.domainresource..base" | grep -v "Name.protocol..base" | grep -v "Name.resource..base" | grep -v "Name.template..base" | sort