Skip to content
Permalink
Browse files

Functionality for a "find patient" app, for App Framework tutorial

  • Loading branch information
djazayeri committed Jun 5, 2013
1 parent 1e51c37 commit dcc2f7bf9473c9ee22af278b1a45edf06140436b
@@ -4,9 +4,13 @@
.settings
.project
.classpath
*.sass-cache
target

# Package Files #
*.jar
*.war
*.ear
*.ear

*.css
omod/src/main/compass/sass-external/*
@@ -1,7 +1,12 @@
${project.parent.artifactId}.title=Core Apps Module
${project.parent.artifactId}.patientDashboard.description=Patient Dashboard Application
${project.parent.artifactId}.patientDashboard.extension.visits.description=Visit Actions
${project.parent.artifactId}.patientDashboard.extension.actions.description=General Patient Actions
coreapps.title=Core Apps Module
coreapps.patientDashboard.description=Patient Dashboard Application
coreapps.patientDashboard.extension.visits.description=Visit Actions
coreapps.patientDashboard.extension.actions.description=General Patient Actions

${project.parent.artifactId}.activeVisits.app.label=Active Visits
${project.parent.artifactId}.activeVisits.app.description=Lists patients who have active visits
coreapps.activeVisits.app.label=Active Visits
coreapps.activeVisits.app.description=Lists patients who have active visits

coreapps.findPatient.app.label=Find Patient Record
coreapps.findPatient.search.placeholder=Search by ID or Name
coreapps.findPatient.search.button=Search
coreapps.findPatient.result.view=View
@@ -118,6 +118,13 @@

<!-- End OpenMRS modules -->

<dependency>
<groupId>rubygems</groupId>
<artifactId>compass</artifactId>
<version>0.11.7</version>
<type>gem</type>
</dependency>

</dependencies>

<build>
@@ -244,7 +251,76 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>Fetch SASS sources from uicommons</id>
<goals>
<goal>unpack</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.openmrs.module</groupId>
<artifactId>uicommons-scss</artifactId>
<version>${uicommonsVersion}</version>
<type>zip</type>
<overWrite>true</overWrite>
<outputDirectory>src/main/compass/sass-external</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
<phase>generate-resources</phase>
</execution>
</executions>
<configuration>
<execArgs>${project.build.directory}/rubygems/bin/compass compile ${basedir}/src/main/compass</execArgs>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>watch-sass</id>
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
<phase>generate-resources</phase>
</execution>
</executions>
<configuration>
<execArgs>${project.build.directory}/rubygems/bin/compass watch ${basedir}/src/main/compass</execArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
@@ -0,0 +1,25 @@
# Require any additional compass plugins here.

# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "../webapp/resources/styles"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
add_import_path "sass-external/uicommons-scss"

# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed

# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true

# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = false


# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
@@ -0,0 +1,47 @@
@import "variables";

#patient-search-form {
input {
display: inline;
}
}

#patient-search-results {
margin-top: 1em;

.patient-search-result {
padding: 10px 5px;
cursor: pointer;

&:nth-child(odd) {
background-color: $bodyBackground;
}

.patient-identifier {
display: inline-block;
.identifier-type {
display: block;
font-size: 0.6em;
text-decoration: underline;
}
.identifier {
display: block;
}
}

.preferred-name {
display: inline-block;
font-size: 1.5em;
padding: 5px;
width: 50%;
}

.age, .gender {
font-size: 1.2em;
}

a {
float: right;
}
}
}
17 pom.xml
@@ -41,6 +41,8 @@
<appuiVersion>1.0-SNAPSHOT</appuiVersion>
<idgenVersion>2.6-SNAPSHOT</idgenVersion>
<addresshierarchyVersion>2.2.9</addresshierarchyVersion>
<webservicesRestVersion>2.1</webservicesRestVersion>
<uicommonsVersion>1.0-SNAPSHOT</uicommonsVersion>
</properties>

<dependencyManagement>
@@ -159,6 +161,21 @@
<type>jar</type>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.openmrs.module</groupId>
<artifactId>webservices.rest-api</artifactId>
<version>${webservicesRestVersion}</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.openmrs.module</groupId>
<artifactId>webservices.rest-omod</artifactId>
<version>${webservicesRestVersion}</version>
<type>jar</type>
<scope>provided</scope>
</dependency>

<!-- End OpenMRS modules -->

0 comments on commit dcc2f7b

Please sign in to comment.
You can’t perform that action at this time.